catapam / investnest

Project 04 - Code Institute
1 stars 2 forks source link

[TASK 1.1.1] Install Django and set up a virtual environment #112

Closed catapam closed 2 months ago

catapam commented 2 months ago

Install Django within a Python virtual environment to ensure an isolated and controlled development environment.

Acceptance Criteria:

Steps:

  1. Create a Python virtual environment using venv.
  2. Activate the virtual environment.
  3. Install Django using pip install django ..
  4. Create env.py file in the root and import os
  5. Import os on the settings.py file
  6. Protect SECRET_KEY, by moving it from the settings file and referencing it from the env.py file
  7. Add dynamic check to the DEBUG option on settings.py file, by referencing the env.py DEVELOPMENT var
  8. Create the DEVELOPMENT var inside env.py
  9. Make the venv create as selected Python interpreter, so that is auto solected when opening new sessions
  10. Verify the installation by creating a basic Django project.

Linked Issues:

Next task:
catapam commented 2 months ago

All set and tested Commit