Use .venv, the tool provides isolated Python environments, which are more practical than installing packages systemwide. It also allows installing packages without administrator privileges.
start venv
source demo-env/bin/activate
exit from venv
deactivate
Install dependencies
Create a requirements.txt file where to add all dependencies, make sure you already started the venv.
pip install -r requirements.txt
Create a new project
execute the following command to create the base app. [Official doc]
django-admin startproject YOUR_PROJECT_NAME
*Replace YOUR_PROJECT_NAME with your desired name for the projecte.
After the execution a new folder will be created having the name YOUR_PROJECT_NAME.
Create a virtual environment
How to install Django official documentation.
Use .venv, the tool provides isolated Python environments, which are more practical than installing packages systemwide. It also allows installing packages without administrator privileges.
start venv
exit from venv
Install dependencies
Create a
requirements.txt
file where to add all dependencies, make sure you already started the venv.Create a new project
execute the following command to create the base app. [Official doc]
*Replace YOUR_PROJECT_NAME with your desired name for the projecte.
After the execution a new folder will be created having the name YOUR_PROJECT_NAME.
Run server
Create new app
Create migrations
Execute migrations
Create an admin user
Then insert the username and password.