๐ก
Learning Django create a virtual environment
- create
python -m venv ./venv
. this virtualenv file will be excluded by .gitignore
- activate the virtualenv
- in windows 10
.\venv\Scripts\activate
.
- in windows 10
create django project
django-admin startproject HelloWorld
migrations
before running runserver
make sure to makemigration
and migrate
create a superuser
py manage.py makemigrations
as it's clear that number of users are infinity but there is an only possible superuser.
add models
make sure to makemigration
and migrate
the app specificly where new models are created.
python manage.py migrate HelloWorld
python manage.py makemigrations HelloWorld