We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
# Mac/Linux
source ./venv/bin/activate
# Windows
venv\Scripts\activate.bat - May need to add full path (c:\users\....venv\Scripts\activate.bat)
deactivate
pip freeze
pip install django
django-admin startproject PROJECTNAME
Run Server (http://127.0.0.1:8000) CTRL+C to stop
python manage.py runserver
python manage.py start app APPNAME
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
Working from the console with Python:
python manage.py shell
Create new object
from APPNAME.models import CLASSNAME
CLASSNAME.objects.create(key_1 = value_1, key_2 = value_2, key_n = value_n)