File tree 5 files changed +34
-2
lines changed
5 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ web : gunicorn costingpro.wsgi --log-file -
Original file line number Diff line number Diff line change 141
141
)
142
142
143
143
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
+ # )
Original file line number Diff line number Diff line change 12
12
13
13
from django .core .wsgi import get_wsgi_application
14
14
application = get_wsgi_application ()
15
+
16
+ from dj_static import Cling
17
+
18
+ application = Cling (get_wsgi_application ())
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def login(request):
55
55
if user :
56
56
if user .is_active :
57
57
login (request , user )
58
- return RediectView (url = '/dashboard/business_profile .html' )
58
+ return RediectView (url = '/dashboard/menu .html' )
59
59
else :
60
60
return HttpResponse ("Your account is disabled." )
61
61
else :
Original file line number Diff line number Diff line change 1
1
Django == 1.7.1
2
+ dj-database-url == 0.3.0
3
+ dj-static == 0.0.6
2
4
django-allauth == 0.18.0
3
5
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
4
10
oauthlib == 0.7.1
5
11
psycopg2 == 2.5.4
6
12
python-openid == 2.2.5
7
13
requests == 2.4.3
8
14
requests-oauthlib == 0.4.2
9
15
six == 1.8.0
16
+ static3 == 0.5.1
You can’t perform that action at this time.
0 commit comments