From 537795bf1641c40a25d105fc82fa3378d415ad06 Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Tue, 7 Feb 2017 22:26:44 -0500 Subject: [PATCH] get app ready for heroku --- Procfile | 1 + {fincom/committee => committee}/__init__.py | 0 {fincom/committee => committee}/admin.py | 0 {fincom/committee => committee}/apps.py | 0 {fincom/committee => committee}/models.py | 0 {fincom/committee => committee}/tests.py | 0 {fincom/committee => committee}/views.py | 0 fincom/{fincom => }/__init__.py | 0 fincom/{fincom => }/settings.py | 1 + fincom/{fincom => }/urls.py | 0 fincom/{fincom => }/views.py | 0 fincom/{fincom => }/wsgi.py | 2 ++ {fincom/items => items}/__init__.py | 0 {fincom/items => items}/admin.py | 0 {fincom/items => items}/apps.py | 0 {fincom/items => items}/models.py | 0 {fincom/items => items}/tests.py | 0 {fincom/items => items}/urls.py | 0 {fincom/items => items}/views.py | 0 fincom/manage.py => manage.py | 0 requirements.txt | 29 +++++++++++++++++++ {fincom/static => static}/sass/Makefile | 0 {fincom/static => static}/sass/details.scss | 0 {fincom/static => static}/sass/globals.scss | 0 {fincom/static => static}/sass/include.scss | 0 {fincom/static => static}/sass/items.scss | 0 {fincom/static => static}/sass/login.scss | 0 {fincom/static => static}/sass/new.scss | 0 .../templates => templates}/boilerplate.html | 0 .../templates => templates}/fincom/index.html | 0 .../items/details.html | 0 .../templates => templates}/items/edit.html | 0 .../templates => templates}/items/item.html | 0 .../templates => templates}/items/list.html | 0 .../templates => templates}/items/new.html | 0 .../items/section.html | 0 36 files changed, 33 insertions(+) create mode 100644 Procfile rename {fincom/committee => committee}/__init__.py (100%) rename {fincom/committee => committee}/admin.py (100%) rename {fincom/committee => committee}/apps.py (100%) rename {fincom/committee => committee}/models.py (100%) rename {fincom/committee => committee}/tests.py (100%) rename {fincom/committee => committee}/views.py (100%) rename fincom/{fincom => }/__init__.py (100%) rename fincom/{fincom => }/settings.py (98%) rename fincom/{fincom => }/urls.py (100%) rename fincom/{fincom => }/views.py (100%) rename fincom/{fincom => }/wsgi.py (81%) rename {fincom/items => items}/__init__.py (100%) rename {fincom/items => items}/admin.py (100%) rename {fincom/items => items}/apps.py (100%) rename {fincom/items => items}/models.py (100%) rename {fincom/items => items}/tests.py (100%) rename {fincom/items => items}/urls.py (100%) rename {fincom/items => items}/views.py (100%) rename fincom/manage.py => manage.py (100%) create mode 100644 requirements.txt rename {fincom/static => static}/sass/Makefile (100%) rename {fincom/static => static}/sass/details.scss (100%) rename {fincom/static => static}/sass/globals.scss (100%) rename {fincom/static => static}/sass/include.scss (100%) rename {fincom/static => static}/sass/items.scss (100%) rename {fincom/static => static}/sass/login.scss (100%) rename {fincom/static => static}/sass/new.scss (100%) rename {fincom/templates => templates}/boilerplate.html (100%) rename {fincom/templates => templates}/fincom/index.html (100%) rename {fincom/templates => templates}/items/details.html (100%) rename {fincom/templates => templates}/items/edit.html (100%) rename {fincom/templates => templates}/items/item.html (100%) rename {fincom/templates => templates}/items/list.html (100%) rename {fincom/templates => templates}/items/new.html (100%) rename {fincom/templates => templates}/items/section.html (100%) diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..47d616b --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn fincom.wsgi --log-file - diff --git a/fincom/committee/__init__.py b/committee/__init__.py similarity index 100% rename from fincom/committee/__init__.py rename to committee/__init__.py diff --git a/fincom/committee/admin.py b/committee/admin.py similarity index 100% rename from fincom/committee/admin.py rename to committee/admin.py diff --git a/fincom/committee/apps.py b/committee/apps.py similarity index 100% rename from fincom/committee/apps.py rename to committee/apps.py diff --git a/fincom/committee/models.py b/committee/models.py similarity index 100% rename from fincom/committee/models.py rename to committee/models.py diff --git a/fincom/committee/tests.py b/committee/tests.py similarity index 100% rename from fincom/committee/tests.py rename to committee/tests.py diff --git a/fincom/committee/views.py b/committee/views.py similarity index 100% rename from fincom/committee/views.py rename to committee/views.py diff --git a/fincom/fincom/__init__.py b/fincom/__init__.py similarity index 100% rename from fincom/fincom/__init__.py rename to fincom/__init__.py diff --git a/fincom/fincom/settings.py b/fincom/settings.py similarity index 98% rename from fincom/fincom/settings.py rename to fincom/settings.py index a69fd76..0e14d2f 100644 --- a/fincom/fincom/settings.py +++ b/fincom/settings.py @@ -159,6 +159,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.10/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) diff --git a/fincom/fincom/urls.py b/fincom/urls.py similarity index 100% rename from fincom/fincom/urls.py rename to fincom/urls.py diff --git a/fincom/fincom/views.py b/fincom/views.py similarity index 100% rename from fincom/fincom/views.py rename to fincom/views.py diff --git a/fincom/fincom/wsgi.py b/fincom/wsgi.py similarity index 81% rename from fincom/fincom/wsgi.py rename to fincom/wsgi.py index 268f207..d4ce40d 100644 --- a/fincom/fincom/wsgi.py +++ b/fincom/wsgi.py @@ -10,7 +10,9 @@ https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ import os from django.core.wsgi import get_wsgi_application +from whitenoise.django import DjangoWhiteNoise os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fincom.settings") application = get_wsgi_application() +application = DjangoWhiteNoise(application) diff --git a/fincom/items/__init__.py b/items/__init__.py similarity index 100% rename from fincom/items/__init__.py rename to items/__init__.py diff --git a/fincom/items/admin.py b/items/admin.py similarity index 100% rename from fincom/items/admin.py rename to items/admin.py diff --git a/fincom/items/apps.py b/items/apps.py similarity index 100% rename from fincom/items/apps.py rename to items/apps.py diff --git a/fincom/items/models.py b/items/models.py similarity index 100% rename from fincom/items/models.py rename to items/models.py diff --git a/fincom/items/tests.py b/items/tests.py similarity index 100% rename from fincom/items/tests.py rename to items/tests.py diff --git a/fincom/items/urls.py b/items/urls.py similarity index 100% rename from fincom/items/urls.py rename to items/urls.py diff --git a/fincom/items/views.py b/items/views.py similarity index 100% rename from fincom/items/views.py rename to items/views.py diff --git a/fincom/manage.py b/manage.py similarity index 100% rename from fincom/manage.py rename to manage.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c3ec602 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,29 @@ +appdirs==1.4.0 +boto3==1.4.4 +botocore==1.5.7 +Django==1.10.5 +django-cleanup==0.4.2 +django-stdimage==2.4.1 +django-storages==1.5.2 +docutils==0.13.1 +futures==3.0.5 +gunicorn==19.6.0 +jmespath==0.9.1 +oauthlib==2.0.1 +olefile==0.44 +packaging==16.8 +Pillow==4.0.0 +progressbar2==3.12.0 +psycopg2==2.6.2 +PyJWT==1.4.2 +pyparsing==2.1.10 +python-dateutil==2.6.0 +python-openid==2.2.5 +python-utils==2.0.1 +requests==2.13.0 +requests-oauthlib==0.7.0 +s3transfer==0.1.10 +six==1.10.0 +social-auth-app-django==1.0.1 +social-auth-core==1.1.0 +whitenoise==3.3.0 diff --git a/fincom/static/sass/Makefile b/static/sass/Makefile similarity index 100% rename from fincom/static/sass/Makefile rename to static/sass/Makefile diff --git a/fincom/static/sass/details.scss b/static/sass/details.scss similarity index 100% rename from fincom/static/sass/details.scss rename to static/sass/details.scss diff --git a/fincom/static/sass/globals.scss b/static/sass/globals.scss similarity index 100% rename from fincom/static/sass/globals.scss rename to static/sass/globals.scss diff --git a/fincom/static/sass/include.scss b/static/sass/include.scss similarity index 100% rename from fincom/static/sass/include.scss rename to static/sass/include.scss diff --git a/fincom/static/sass/items.scss b/static/sass/items.scss similarity index 100% rename from fincom/static/sass/items.scss rename to static/sass/items.scss diff --git a/fincom/static/sass/login.scss b/static/sass/login.scss similarity index 100% rename from fincom/static/sass/login.scss rename to static/sass/login.scss diff --git a/fincom/static/sass/new.scss b/static/sass/new.scss similarity index 100% rename from fincom/static/sass/new.scss rename to static/sass/new.scss diff --git a/fincom/templates/boilerplate.html b/templates/boilerplate.html similarity index 100% rename from fincom/templates/boilerplate.html rename to templates/boilerplate.html diff --git a/fincom/templates/fincom/index.html b/templates/fincom/index.html similarity index 100% rename from fincom/templates/fincom/index.html rename to templates/fincom/index.html diff --git a/fincom/templates/items/details.html b/templates/items/details.html similarity index 100% rename from fincom/templates/items/details.html rename to templates/items/details.html diff --git a/fincom/templates/items/edit.html b/templates/items/edit.html similarity index 100% rename from fincom/templates/items/edit.html rename to templates/items/edit.html diff --git a/fincom/templates/items/item.html b/templates/items/item.html similarity index 100% rename from fincom/templates/items/item.html rename to templates/items/item.html diff --git a/fincom/templates/items/list.html b/templates/items/list.html similarity index 100% rename from fincom/templates/items/list.html rename to templates/items/list.html diff --git a/fincom/templates/items/new.html b/templates/items/new.html similarity index 100% rename from fincom/templates/items/new.html rename to templates/items/new.html diff --git a/fincom/templates/items/section.html b/templates/items/section.html similarity index 100% rename from fincom/templates/items/section.html rename to templates/items/section.html