Abstract User, User Profile and Signals in Django
To start, create a new Django project from the command line. We need to do several things:
create and navigate into a dedicated directory called accounts for our code install Django make a new Django project called django_project make a new app accounts start the local web server Here are the commands to run:
cd onedrive\desktop\code mkdir pages cd pages python -m venv .venv .venv\Scripts\Activate.ps1 (.venv) > python -m pip install django~=4.0.0 (.venv) > django-admin startproject django_project . (.venv) > python manage.py startapp accounts (.venv) > python manage.py runserver
% cd ~/desktop/code % mkdir pages % cd pages % python3 -m venv .venv % source .venv/bin/activate (.venv) % python3 -m pip install django~=4.0.0 (.venv) % django-admin startproject django_project . (.venv) % python3 manage.py startapp accounts (.vent) % python3 manage.py runserver