- Firstly, you need to make an local environment and activate it
python -m venv venv source venv/bin/activate
- Insall packages
pip install -r requirements.txt
- Create a ".env" file at the root of the directory with params
DEBUG=True or False # ALL SETTINGS FOR !POSTGRESQL! DB_USER='your postgres user' DB_PASS='your password for user' DB_NAME='your name of db' DB_HOST='127.0.0.1' or 'localhost' DB_PORT='5432'
- After that, make migrations and do migrate to your DB
python manage.py makemigrations python manage.py migrate
- Finally, you can start the project due a command
python manage.py runserver
As well as, you can start tests
python manage.py test <'name_folder'> ( without (),<> and '' )