-
Notifications
You must be signed in to change notification settings - Fork 0
django
richard donovan edited this page Dec 27, 2015
·
4 revisions
creating a site
django-admin startproject mysite
and the default project can be started with
python manage.py runserver
or
python manage.py runserver 0.0.0.0:8000
mysite/
manage.py
mysite/
__init__.py
settings.py
urls.py
wsgi.py
These files are:
- manage.py: A command-line utility that lets you interact with this Django
- mysite/init.py: An empty file that tells Python that this directory should be considered a Python package.
- mysite/settings.py: Settings/configuration for this Django project.
- mysite/urls.py: The URL declarations for this Django project; a “table of contents” of your Django-powered site.
- mysite/wsgi.py: An entry-point for WSGI-compatible web servers to serve your project.