Our first Django project will be a complete blog site. Django provides a command that allows you to easily create an initial project file structure. Run the following command from your shell:
django-admin startproject mysite
This will create a Django project with the name
Let's take a look at the generated project structure:
mysite/ manage.py mysite/ __init__.py settings.py urls.py wsgi.py
These files are as follows:
manage.py: A command-line utility to interact with your project. It is a thin wrapper around the
django-admin.pytool. You don't need to edit this file.
mysite/: Your project directory consist of the following files:
__init__.py: An empty file that tells Python to treat the
mysitedirectory as a Python ...