Metadata-Version: 2.1
Name: django-cookie-consent-gutsh
Version: 1.0.2
Summary: Cookie consent component for any Django web-site
Home-page: https://www.barskiylab.com/
Author: Artem Barskii
Author-email: Artem Barskii <artemiy.barskiy@gmail.com>
License: MIT  # Will be changed later perhaps
Project-URL: Homepage, https://github.com/gutsh/django-cookie-consent
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django (>=4.0)

# Cookie consent

Cookie consent is a Django app to show consent component for web-cookies.

## Quick start

1. Add "cookie\_consent" to your `INSTALLED_APPS` setting like this:
```
    INSTALLED_APPS = [
        "cookie_consent",
        ...,
    ]
```
2. Include the cookie\_consent URLconf in your project urls.py like this:
```
    path("cookie_consent/", include("cookie_consent.urls")),
```
3. Run `python manage.py migrate` to create the models.
4. Include consent template in your web-site templates.
  
  For example, I've included that text in my base template:

  ```
  {% block cookie_consent %}
    <link rel="stylesheet" href="{% static 'cookie_consent/css/index.css' %}">
    {% include 'cookie_consent/includes/consent.html' %}
    <script defer src="{% static 'cookie_consent/js/main.js' %}"></script>
  {% endblock %}
  ```

  Don't forget to serve that script and css files! You can find them in distribution, css and js are in both source and compiled forms and is are fine (as long as you run `collectstatic` command).

5. Start the development server and visit necessary pages.
