Starting a Project
Once you’ve installed Python and Django, you can take the first step in developing a Django application by creating a Django project.
A Django project is a collection of settings and files for a single Django website. To create a new Django project, we’ll be using a special command to auto-generate the folders, files and code that make up a Django project. This includes a collection of settings for an instance of Django, database configuration, Django-specific options and application-specific settings.
I am assuming you are still running the virtual environment from the previous installation step. If not, start it again with env_myclub\scripts\activate\
.
From your virtual environment command line, run the following command:
(env_myclub) ...\myclub_project>django-admin startproject myclub_site
This command will automatically create a myclub_site
folder in your project folder, and all the necessary files for a basic, but fully functioning Django website. Feel free to explore what startproject
created now if you wish, however, we will go into greater detail on the structure of a Django project in the next chapter.