diff --git a/book_management_system/book_management_system/Procfile b/book_management_system/book_management_system/Procfile new file mode 100644 index 0000000000000000000000000000000000000000..00124dfd903be3874fe789ffa4804a99c955f924 --- /dev/null +++ b/book_management_system/book_management_system/Procfile @@ -0,0 +1 @@ +web: gunicorn myproject.wsgi \ No newline at end of file diff --git a/book_management_system/book_management_system/settings.py b/book_management_system/book_management_system/settings.py index 5c66114455f54ece8fd1d5d6375be0c536e061de..acb98ff2da3bfee193ec4f8822861a18a787ba48 100644 --- a/book_management_system/book_management_system/settings.py +++ b/book_management_system/book_management_system/settings.py @@ -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 diff --git a/book_management_system/book_management_system/wsgi.py b/book_management_system/book_management_system/wsgi.py index bff50f8bd04c77cef98213604a0e5af62c9c4df1..918462b38759f7e000021fb57b6a6f527c72ceca 100644 --- a/book_management_system/book_management_system/wsgi.py +++ b/book_management_system/book_management_system/wsgi.py @@ -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()) diff --git a/requirements.txt b/requirements.txt index 2120504b523de18d605cb740c483acfefddf93f9..6cf94ae60618fdf6c3ba49062e46ef1c935b4fef 100644 Binary files a/requirements.txt and b/requirements.txt differ