Files
codeql/python/ql/test/library-tests/frameworks/django-v2-v3
Joe Farebrother ebaab89933 Formatting updates
2024-12-09 19:57:25 +00:00
..
2024-12-09 19:57:25 +00:00

Tests for Django in version 2.x and 3.x.

This folder contains a runable django application generated with django-admin startproject testproj and django-admin startapp testapp.

To run the development server, install django (in venv), and run python manage.py runserver

To understand how things work, see


Note that from Django 2.0 only Python 3 is supported (enforced by options file).

As I see it, from a QL modeling perspective, the important part of Django 3.0 was the added support for ASGI (Asynchronous Server Gateway Interface), and Django 3.1 added support for async views, async middleware.

We currently don't have any tests specific to Django 3.0, since it's very compatible with Django 2.0 in general, but we could split the tests in the future.