
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
django-simple-cookie-consent
Advanced tools
Django Simple Cookie Consent is a simple Django app to display a custom cookie message. Each visitor to the site will get a popup to say that the site uses cookies.
Detailed documentation is in the "docs" directory.
Add "django_simple_cookie_consent.apps.DjangoSimpleCookieConsentConfig" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... #Django >= 1.7 'django_simple_cookie_consent.apps.DjangoSimpleCookieConsentConfig', #Django > 1.7 'django_simple_cookie_consent', ]
If using Django South place the following in your SOUTH_MIGRATION_MODULES like this::
SOUTH_MIGRATION_MODULES = { 'django_simple_cookie_consent': 'django_simple_cookie_consent.south_migrations.0001_initial.py', }
Add "{% load django_simple_cookie_consent_tags %}" to your base template then place "{% display_cookie_consent %}" somewhere in the head tag like this::
...other loads {% load django_simple_cookie_consent_tags %}
...other links/scripts {% display_cookie_consent %}Run python manage.py migrate
to create the CookieConsentSettings model.
Start the development server and visit http://127.0.0.1:8000/admin/ to create a settings instance (you'll need the Admin app enabled).
Visit http://127.0.0.1:8000/ to see the cookie message.
This package is using https://github.com/insites/cookieconsent but does not support all features at the current time (this may happen later on if the other features are needed).
FAQs
A simple Django app to display a custom cookie message.
We found that django-simple-cookie-consent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.