Python: Django test: Enable app

and add a bits of use docs
This commit is contained in:
Rasmus Wriedt Larsen
2020-10-08 12:46:25 +02:00
parent 6506e5d646
commit 44b9b7f084
2 changed files with 5 additions and 0 deletions

View File

@@ -4,6 +4,10 @@ This folder contains a runable django application generated with `django-admin s
To run the development server, install django (in venv), and run `python manage.py runserver`
To understand how things work, see
- https://docs.djangoproject.com/en/3.1/intro/tutorial01/#creating-a-project
- https://docs.djangoproject.com/en/3.1/intro/tutorial02/#activating-models
---
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).

View File

@@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'testapp.apps.TestappConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',