diff --git a/README.md b/README.md index 18e6422..3f7a36a 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,17 @@ Automate the process of transferring your semester's calendar from your university's end to your personal calendar (google calendar/outlook calendar/etc) # Virtual Environment -- python3 -m venv venv -- source venv/bin/activate +- `python3 -m venv venv` +- `source venv/bin/activate` To deactivate, simply enter `deactivate` # Dependencies -- python3 -m pip install -r requirements.txt -then lock the requirements -- pip freeze > requirements.txt +- `python3 -m pip install -r requirements.txt` then lock the requirements +- `pip freeze > requirements.txt` # Starting the server & stuff -- cd web_app -- python3 manage.py runserver +- `cd web_app` +- `python3 manage.py runserver` Since we're working with a MongoDB, we don't have to worry about migrations :smiley: diff --git a/requirements.txt b/requirements.txt index 67fc859..5f123eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ Django==2.2.13 git+https://github.com/django-nonrel/mongodb-engine git+https://github.com/django-nonrel/djangotoolbox -git+https://github.com/django-nonrel/django@nonrel-1.5 \ No newline at end of file +git+https://github.com/django-nonrel/django@nonrel-1.5 +python-dotenv \ No newline at end of file diff --git a/web_app/web_app/__pycache__/settings.cpython-36.pyc b/web_app/web_app/__pycache__/settings.cpython-36.pyc index ccc0e5e..7a6895f 100644 Binary files a/web_app/web_app/__pycache__/settings.cpython-36.pyc and b/web_app/web_app/__pycache__/settings.cpython-36.pyc differ diff --git a/web_app/web_app/settings.py b/web_app/web_app/settings.py index c2941db..11d8a80 100644 --- a/web_app/web_app/settings.py +++ b/web_app/web_app/settings.py @@ -24,7 +24,7 @@ # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = os.environ['SECRET_KEY'] +SECRET_KEY = os.getenv("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True