From 6745e0c1d839ce5e0559e111750dbd668ffb92f7 Mon Sep 17 00:00:00 2001 From: Nishant Pandey Date: Thu, 27 Jun 2019 22:19:19 +0530 Subject: [PATCH] Procfile added --- Procfile | 1 + qujini/settings.py | 8 +++++++- requirements.txt | 3 ++- runtime.txt | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Procfile create mode 100644 runtime.txt diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..41429bd --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn Qujini.wsgi --log-file - diff --git a/qujini/settings.py b/qujini/settings.py index d53cfb1..e5fea28 100644 --- a/qujini/settings.py +++ b/qujini/settings.py @@ -11,6 +11,8 @@ """ import os +import django_heroku +django_heroku.settings(locals()) # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -56,7 +58,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -120,3 +122,7 @@ # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATIC_URL = '/static/' +STATICFILES_DIRS= [ + os.path.join(BASE_DIR, 'static'), +] +STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") diff --git a/requirements.txt b/requirements.txt index f6371ee..3a79302 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ Django==2.2.1 django-ckeditor==5.7.1 +django-js-asset==1.2.2 +gunicorn==19.9.0 pytz==2019.1 sqlparse==0.3.0 - diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..34b35b7 --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.6.7