
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
django-cookie-consent-gutsh
Advanced tools
Cookie consent is a Django app to show consent component for web-cookies.
settings.py
: ...
INSTALLED_APPS = [
...,
"cookie_consent",
...,
]
...
path("cookie_consent/", include("cookie_consent.urls")),
python manage.py migrate cookie_consent
to create the models.For example, I've included the following near the end of my base template:
{% block cookie_consent %}
<link rel="stylesheet" href="{% static 'cookie_consent/css/index.css' %}">
{% include 'cookie_consent/includes/consent.html' with consent_text='We use cookies to understand your interactions with this web-site.' %}
{# the default for `consent_text` is 'We are using cookies to make this website fully functional.' #}
<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 are fine (as long as you run collectstatic
command).
FAQs
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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.