I've looked up the commands I need to get started with django myself, so I'll summarize them here.
Below are the commands for Mac os / Linux. Creating an application
python manage.py startapp sample
Server startup
python manage.py runserver
Launch and enable virtual environment
python3 -m venv env
source env/bin/activate
Creating a migration file
python manage.py makemigrations
Run DB migration
python manage.py migrate
Create database administrator user
python manage.py createsuperuser
The above are the commands you often use. I'm glad if you can use it as a reference.
Recommended Posts