Skip to content

Commit

Permalink
deploy stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PazBazak committed Dec 9, 2020
1 parent d45b327 commit 6c4dc8f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 59 deletions.
Binary file modified HeroloDjango/__pycache__/settings.cpython-38.pyc
Binary file not shown.
11 changes: 9 additions & 2 deletions HeroloDjango/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"""
import os
from pathlib import Path
import sys
import django_heroku
from decouple import config

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
Expand All @@ -19,10 +22,10 @@
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'f!17-04_f*$w++8!gn#6b(8jkx1=9^bp^*@nzwi(24gd*o+2j8'
SECRET_KEY = config('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = config('DEBUG')

ALLOWED_HOSTS = []

Expand Down Expand Up @@ -129,3 +132,7 @@
# https://docs.djangoproject.com/en/3.1/howto/static-files/

STATIC_URL = '/static/'

# Activate Django-Heroku when not on test!.
if sys.argv[1] != 'test':
django_heroku.settings(locals())
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
djangorestframework
django==3.1.4

django-heroku
python-decouple

1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.8.6
2 changes: 0 additions & 2 deletions venv/Lib/site-packages/easy-install.pth
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
./setuptools-40.8.0-py3.8.egg
./pip-19.0.3-py3.8.egg
Binary file removed venv/Lib/site-packages/setuptools-40.8.0-py3.8.egg
Binary file not shown.
12 changes: 0 additions & 12 deletions venv/Scripts/easy_install-3.8-script.py

This file was deleted.

Binary file modified venv/Scripts/easy_install-3.8.exe
Binary file not shown.
15 changes: 0 additions & 15 deletions venv/Scripts/easy_install-3.8.exe.manifest

This file was deleted.

12 changes: 0 additions & 12 deletions venv/Scripts/easy_install-script.py

This file was deleted.

Binary file modified venv/Scripts/easy_install.exe
Binary file not shown.
15 changes: 0 additions & 15 deletions venv/Scripts/easy_install.exe.manifest

This file was deleted.

0 comments on commit 6c4dc8f

Please sign in to comment.