To run this repo you will need:
- Python 3.6 or later
- pip
pip install -r requirements.txt
- Make a virtual enviroment for python
- Have a postgres(first load will be faster)
- You will also need to change some settings in the ./juniordev/settings.py file in the DATABASES varible, around line 80. Like the name, user, password, host (if you are not hosting it localy the db), and port (If you are using some other port for the db)
'name': name_of_the_db,
'user': username_for_the_user,
'password': password_for_the_user,
This will create all of the tabels in the database
python manage.py migrate
python manage.py runserver
(127.0.0.1:8000) the server will run on port 8000 if it's not in use then it will give you an error and you will need to run
python manage.py runserver 127.0.0.1:A_port_that_is_not_in_use_example 8005
If you make changes to the models file you will need to run to get them writen to the database
python manage.py makemigrations
python manage.py migrate
Export to os enviroment a SECRET_KEY == "A random string" and DEBUG_VALUE == 'False'
python manage.py collectstatic
python manage.py runserver 0.0.0.0: The_port_you_want_it_to_run_on