Setup
How to prepare your app to use Sockpuppet
pip install django-sockpuppet
# If performance is important you can take advantage lxml parsing
# It will typically speed up the round trip by 30-90ms depending on the html
pip install django-sockpuppet[lxml]
# Add these into INSTALLED_APPS in settings.py
INSTALLED_APPS = [
'channels',
'sockpuppet'
]
# generates scaffolding for webpack.config.js and installs required js dependencies
# if you prefer to do that manually read on below.
python manage.py initial_sockpuppet
# scaffolds a new reflex with everything that's needed.
python manage.py generate_reflex app_name name_of_reflexConfiguration
Javascript configuration
Session storage
Last updated