Skip to content
Snippets Groups Projects
Commit ed6de6d3 authored by hiruthikj's avatar hiruthikj
Browse files

add procfile

parent 290365d7
No related branches found
No related tags found
No related merge requests found
web: gunicorn myproject.wsgi
\ No newline at end of file
......@@ -138,3 +138,21 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
LOGIN_URL = '/accounts/login/'
LOGIN_REDIRECT_URL = '/online_books/home/'
# Allow all host hosts/domain names for this site
ALLOWED_HOSTS = ['*']
# Parse database configuration from $DATABASE_URL
import dj_database_url
DATABASES = { 'default' : dj_database_url.config()}
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# try to load local_settings.py if it exists
try:
from local_settings import *
except Exception as e:
pass
......@@ -14,3 +14,8 @@ from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'book_management_system.settings')
application = get_wsgi_application()
# from django.core.wsgi import get_wsgi_application
# from dj_static import Cling
# application = Cling(get_wsgi_application())
File suppressed by a .gitattributes entry, the file's encoding is unsupported, or the file size exceeds the limit.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment