Skip to content

Developer: Set Up

Hao Wei Huang edited this page Jun 26, 2020 · 4 revisions

Python

pip install all of requirements.txt. Project is built with Python 3.8. You can run "pip install -r requirements.txt" on the top level of the repo.

Django

Make sure local database is setup under django_projects/settings.py under var DATABASES (Verify localhost, port, username password is correct to the DB you want to work with)

Open UWPathWebsite on cmd and run the following commands:

python manage.py makemigrations

python manage.py migrate

python manage.py runserver

Email notifications:

Setup env variable for under variable name UWPath_Email_Account and UWPath_Email_Password to any email and password combinations you desire.

PyCharm:

Please initialize Django Server under add configuration with the following settings:

Enviorment Variables: PYTHONUNBUFFERED=1;DJANGO_SETTINGS_MODULE=django_projects.settings

Check Run Browser for dev: http://127.0.0.1:8000/

Python Interpreter: Project Default (Python)

Clone this wiki locally