The first thing to do is to clone the repository:
$ git clone https://github.com/rijfas/projectman.git
$ cd projectman
Create a virtual environment to install dependencies in and activate it:
$ python -m venv env
$ source env/bin/activate
Then install the dependencies:
(projectman)$ pip install -r requirements.txt
Note the (env)
in front of the prompt. This indicates that this terminal
session operates in a virtual environment set up by virtualenv2
.
Once pip
has finished downloading the dependencies:
create secret_settings.py with a random SECRET_KEY
using the following command
(projectman)$ python manage.py shell -c 'from django.core.management import utils; secret_key = utils.get_random_secret_key(); file = open("projectman/secret_settings_1.py", "w");file.write(f"SECRET_KEY = \"{secret_key}\"");file.close()'
Then run the server using
(projectman)$ python manage.py runserver
And navigate to http://127.0.0.1:8000/
.