Skip to content

Commit

Permalink
Heroku hosting commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondu7297 committed Jun 27, 2021
1 parent 1542a68 commit cf846c4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
Binary file modified Ecotracker/Ecotracker/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file modified Ecotracker/Ecotracker/__pycache__/urls.cpython-38.pyc
Binary file not shown.
5 changes: 3 additions & 2 deletions Ecotracker/Ecotracker/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
SECRET_KEY = 'django-insecure-s64*60ef#2=iabh2=u=p6d6e19drd4!r6mx3k(+1azz1d-us+)'

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

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['127.0.0.1','']

GOOGLE_MAPS_API_KEY = 'AIzaSyDgIWNVzeFWWr0ecFoBuEI-qDSyImx7cYk'

Expand All @@ -49,6 +49,7 @@

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
6 changes: 6 additions & 0 deletions Ecotracker/Ecotracker/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
from django.contrib import admin
from django.urls import path, include

from django.views.static import serve
from django.conf.urls import url

urlpatterns = [
path('admin/', admin.site.urls),
path('',include('main.urls')),

url(r'^media/(?P<path>.*)$', serve,{'document_root': settings.MEDIA_ROOT}),
url(r'^static/(?P<path>.*)$', serve,{'document_root': settings.STATIC_ROOT}),
]
1 change: 1 addition & 0 deletions Ecotracker/procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn CCMS.wsgi --log-file -
Binary file added Ecotracker/requirements.txt
Binary file not shown.

0 comments on commit cf846c4

Please sign in to comment.