Skip to content

Commit 8aae159

Browse files
committed
fixed settings.py
1 parent efa7681 commit 8aae159

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn costingpro.wsgi --log-file -

costingpro/settings.py

+21-1
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,24 @@
141141
)
142142

143143
LOGIN_URL = 'django.contrib.auth.views.login'
144-
LOGIN_REDIRECT_URL = '/business_profile'
144+
LOGIN_REDIRECT_URL = '/menu'
145+
146+
# # Parse database configuration from $DATABASE_URL
147+
# import dj_database_url
148+
# DATABASES['default'] = dj_database_url.config()
149+
150+
# # Honor the 'X-Forwarded-Proto' header for request.is_secure()
151+
# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
152+
153+
# # Allow all host headers
154+
# ALLOWED_HOSTS = ['*']
155+
156+
# # Static asset configuration
157+
# import os
158+
# BASE_DIR = os.path.dirname(os.path.abspath(__file__))
159+
# STATIC_ROOT = 'staticfiles'
160+
# STATIC_URL = '/static/'
161+
162+
# STATICFILES_DIRS = (
163+
# os.path.join(BASE_DIR, 'static'),
164+
# )

costingpro/wsgi.py

+4
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212

1313
from django.core.wsgi import get_wsgi_application
1414
application = get_wsgi_application()
15+
16+
from dj_static import Cling
17+
18+
application = Cling(get_wsgi_application())

dashboard/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def login(request):
5555
if user:
5656
if user.is_active:
5757
login(request, user)
58-
return RediectView(url='/dashboard/business_profile.html')
58+
return RediectView(url='/dashboard/menu.html')
5959
else:
6060
return HttpResponse("Your account is disabled.")
6161
else:

requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
Django==1.7.1
2+
dj-database-url==0.3.0
3+
dj-static==0.0.6
24
django-allauth==0.18.0
35
django-extensions==1.4.5
6+
django-reg-noact==0.1.2
7+
django-toolbelt==0.0.1
8+
extensions==0.4
9+
gunicorn==19.1.1
410
oauthlib==0.7.1
511
psycopg2==2.5.4
612
python-openid==2.2.5
713
requests==2.4.3
814
requests-oauthlib==0.4.2
915
six==1.8.0
16+
static3==0.5.1

0 commit comments

Comments
 (0)