Skip to content

Commit 44b9b7f

Browse files
committed
Python: Django test: Enable app
and add a bits of use docs
1 parent 6506e5d commit 44b9b7f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

python/ql/test/experimental/library-tests/frameworks/django-v2-v3/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This folder contains a runable django application generated with `django-admin s
44

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

7+
To understand how things work, see
8+
- https://docs.djangoproject.com/en/3.1/intro/tutorial01/#creating-a-project
9+
- https://docs.djangoproject.com/en/3.1/intro/tutorial02/#activating-models
10+
711
---
812

913
Note that from [Django 2.0 only Python 3 is supported](https://docs.djangoproject.com/en/stable/releases/2.0/#python-compatibility) (enforced by `options` file).

python/ql/test/experimental/library-tests/frameworks/django-v2-v3/testproj/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
# Application definition
3232

3333
INSTALLED_APPS = [
34+
'testapp.apps.TestappConfig',
3435
'django.contrib.admin',
3536
'django.contrib.auth',
3637
'django.contrib.contenttypes',

0 commit comments

Comments
 (0)