-
Create virtual env
python -m venv env
-
Activate env
source env/bin/activate -
Install requirements
pip install -r requirements.txt -
cd to example project
cd example -
Run migrations
python manage.py migrate -
Create superuser
python manage.py createsuperuser -
Start the server
python manage.py runserver -
Open
http://localhost:8000/in your browserImportant: Use
localhostnot127.0.0.1— WebAuthn requires the domain to matchFIDO_SERVER_IDin settings.
For passkeys in production, you need to use HTTPS. After the above steps are done:
- Stop the server
- Install SSL requirements
pip install django-sslserver
- Start the SSL server
python manage.py runsslserver