Files
codeql/python/ql/test/library-tests/frameworks/django-v2-v3
Rasmus Wriedt Larsen 8d0f6086af Python: Model django forms/fields
I'm not feeling 100% confident about `SelfRefMixin`, but since I needed it for
both DjangoViewClass and DjangoFormClass, I wanted to avoid copy-pasting this
code around. However, I'm not so opitimistic about it that I want to add it to a
sharable utility qll file :D
2021-03-23 13:57:38 +01: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.