
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
strynova-dj-hotreload
Advanced tools
Adds browser hot reloading to a Django project. When you make changes to your HTML, CSS, or JavaScript files, the browser will automatically reload to show the changes.
pip install strynova-dj-hotreload
strynova_dj_hotreload
to your INSTALLED_APPS
in your Django settings.py file:INSTALLED_APPS = [
# ... other apps
'strynova_dj_hotreload',
]
{% load strynova_hot_reload %}
<!DOCTYPE html>
<html>
<head>
<!-- Your head content -->
{% hot_reload_js %}
</head>
<body>
<!-- Your body content -->
</body>
</html>
python manage.py runserver
Now your Django project has browser hot reloading! Make changes to your HTML, CSS, or JavaScript files, and the browser will automatically reload to show the changes.
You can configure the hot reload functionality in your Django settings:
# Enable hot reload even in production (not recommended)
STRYNOVA_HOT_RELOAD_FORCE = True
# Configure WebSocket server
STRYNOVA_HOT_RELOAD_HOST = '127.0.0.1' # Default
STRYNOVA_HOT_RELOAD_PORT = 8765 # Default
# Specify which directories to watch (by default, it watches all template and static directories)
STRYNOVA_HOT_RELOAD_DIRS = [
'/path/to/templates',
'/path/to/static',
]
# Specify which file types to watch
STRYNOVA_HOT_RELOAD_FILE_TYPES = ['html', 'css', 'js'] # Default
# How often to check for changes (in seconds)
STRYNOVA_HOT_RELOAD_INTERVAL = 1.0 # Default
{% hot_reload_js %}
template tag adds a JavaScript client to your page that connects to the WebSocket server.FAQs
Add hot reloading to Django apps.
We found that strynova-dj-hotreload 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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.