Getting started with Django roadmap — Part 1
Have you ever started learning Django and are completely confused about the various steps to take. For example, when to run the migrate command, when to run the makemigrations command etc. If this is you, you are in the right place. So let’s get started.
1. Creating a project
django-admin startproject
This is the first action you need to take when creating a Django project and yuo will only ever need to run it once in the project’s lifecycle.
2. Modify settings.py file
After you have created your project, it is always recommended to go to modify your settings.py
file. There you will see a lot of things you can customise. See Django 4.0 Api reference for more information.
A list of settings you may want to play around with in the settings.py
files are:
SECRET_KEYALLOWED_HOSTSDATABASES["NAME"]LANGUAGE_CODETIMEZONE
Once satisfied the next thing you want to do is run the python manage.py migrate
command.