Loading lesson path
Concept visual
Start at both ends
Once you have come up with a suitable name for your Django project, like mine: my_tennis_club, navigate to where in the file system you want to store the code (in the virtual environment), I will navigate to the myworld folder, and run this command in the command prompt:
Formula
django - admin startproject my_tennis_clubDjango creates a my_tennis_club folder on my computer, with this content: my_tennis_club manage.py my_tennis_club/ init.py asgi.py settings.py urls.py wsgi.py These are all files and folders with a specific meaning, you will learn about some of them later in this tutorial, but for now, it is more important to know that this is the location of your project, and that you can start building applications in it.
Now that you have a Django project, you can run it, and see what it looks like in a browser.
/my_tennis_club folder and execute this command in the command prompt: python manage.py runserver
Performing system checks... System check identified no issues (0 silenced). You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them.
Formula
March 19, 2025 - 14:19:38Django version 5.1.7, using settings 'my_tennis_club.settings' Starting development server at http://127.0.0.1:8000/
Formula
Quit the server with CTRL - BREAK.127.0.0.1:8000 in the address bar.
We have a Django project! The next step is to make an app in your project. You cannot have a web page created with Django without an app.