Getting Started
Requirements
- Python 3.9+
- Django 4.2+ (for Django integration)
Installation
Install with pip:
pip install superreload[django]
Or with uv:
uv add superreload[django]
Or with poetry:
poetry add superreload[django]
Django Setup
1. Add to INSTALLED_APPS
# settings.py
INSTALLED_APPS = [
# ...
'superreload.frameworks.django',
# ...
]
2. Add the Middleware
Add the middleware at the top of your middleware list:
# settings.py
MIDDLEWARE = [
'superreload.frameworks.django.SuperReloadMiddleware',
'django.middleware.security.SecurityMiddleware',
# ... other middleware
]
3. Run the Development Server
Instead of runserver, use:
python manage.py superreload
With a specific address:
python manage.py superreload 0.0.0.0:8000
What Gets Watched
By default, superreload watches for changes to:
.py- Python files (triggers module reload + page refresh).html- Templates (triggers page refresh).css- Stylesheets (hot reload without page refresh).js- JavaScript (triggers page refresh)
Verify It's Working
- Open your Django app in the browser
- Open browser DevTools console
- You should see:
[superreload] Connected - Edit a Python file and save
- The browser should refresh automatically
Manual Reload
You can also trigger a manual reload at any time:
- Browser: Press
Ctrl+Shift+R(orCmd+Shift+Ron Mac) - Console: Press
r+Enterin the terminal running superreload
Next Steps
- Django Configuration - Detailed Django setup
- CSS Hot Reload - How CSS hot reload works
- Error Overlay - Understanding the error overlay