Skip to content

Commit 05df9d5

Browse files
Added index page. configured gunicorn
1 parent 7c6def5 commit 05df9d5

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ django-cors-headers==1.1.0
88
django-oauth-toolkit==0.9.0
99
django-recaptcha==1.0.4
1010
djangorestframework==3.1.3
11+
gevent==1.0.2
12+
greenlet==0.4.9
13+
gunicorn==19.3.0
1114
oauthlib==1.0.1
1215
python-ldap==2.4.20
1316
six==1.9.0

scripts/dev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ "$KILL" = true ] ; then
2020
exit 1
2121
fi
2222

23-
gunicorn iitbapp.wsgi \
23+
gunicorn sso.wsgi \
2424
--bind=0.0.0.0:$PORT \
2525
-c gunicorn_conf.py \
2626
--log-level=info \

scripts/prod.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ "$KILL" = true ] ; then
2020
exit 1
2121
fi
2222

23-
gunicorn iitbapp.wsgi \
23+
gunicorn sso.wsgi \
2424
--bind=0.0.0.0:$PORT \
2525
-c gunicorn_conf.py \
2626
--log-level=info \

sso/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
LOGIN_URL = 'account:login'
115115

116116
# TODO: Fix this! Use named url
117-
LOGIN_REDIRECT_URL = '/'
117+
LOGIN_REDIRECT_URL = 'oauth:list'
118118

119119
STATICFILES_DIRS = (
120120
# Add all static files here. use os.path.join(BASE_DIR, 'your/staticfile/path')

sso/urls.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
import application.urls
2222
import oauth2_provider.urls
2323
import user_resource.urls
24+
from .views import IndexRedirectView
2425

2526
urlpatterns = [
27+
url(r'^$', IndexRedirectView.as_view(), name='index'),
2628
url(r'^admin/', include(admin.site.urls)),
2729
url(r'^oauth/', include(application.urls, namespace='oauth')),
2830
url(r'^oauth/', include(oauth2_provider.urls, namespace='oauth2_provider')),

sso/views.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
__author__ = 'dheerendra'
1+
from django.views.generic import RedirectView
2+
3+
4+
class IndexRedirectView(RedirectView):
5+
6+
pattern_name = 'account:login'

0 commit comments

Comments
 (0)