Files
codeql/python/ql/test/library-tests/frameworks/rest_framework
Rasmus Wriedt Larsen 37d03ee0f3 Python: Accept .expected changes
Note that in this case, since there is a known `django.urls.path`
route-setup, we know that the request-handler will only be passed
keyword arguments, so it is not a mistake that `*args` is not considered
a routed-parameter here (although it certainly wouldn't have hurt us if
we did consider it a routed-parameter either).
2023-11-21 13:46:55 +01:00
..
2023-11-21 13:46:55 +01:00

See README for django-v2-v3 which described how the project was set up.

Since this test project uses models (and a DB), you generally need to run there 3 commands:

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Then visit http://127.0.0.1:8000/

References

Editing data

To edit data you should add an admin user (will prompt for password)

python manage.py createsuperuser --email admin@example.com --username admin