Next steps
- Open
mysite/urls.pyand start mapping URL patterns to views. - Run
python manage.py startapp pollsto scaffold your first app. - Define models in
polls/models.py, then run migrations. - Switch
DEBUG=Falsebefore deploying to production.
Try the tutorial
Django comes with a polls tutorial that walks through models, views, templates, the admin site, and tests. The minimum settings file looks like this:
# mysite/settings.py DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ]
You're seeing this because
DEBUG=True tells Django to render a friendly default page when no URLs match the request. Once you add your own URL patterns, this page will go away on its own.