This is my first Django project, so i'll write a guide with some important steps and commands for Django development
- Good to run the application in an isolated environment
- Create and manage separete environments for each Python project on the same computer
- use venv module (one option) on the root of yout project
python3 -m venv .venv
source .venv/bin/activate
To leave the virtual environment type deactivate
(.venv) % deactivate
Inside the virtual environment type
(.venv) > python -m pip install django
(.venv) > django-admin startproject CRM .
The bellow command will run the Django's internal web server, this is suitable for local development purposes
(.venv) % python3 manage.py runserver
Each Django project has many apps and each app should have a pourpose like autenticate users and handle payments
(.venv) % python3 manage.py startapp accounts
(.venv) > python manage.py migrate
https://docs.djangoproject.com/en/4.0/topics/class-based-views/intro/