Permalink
Browse files

GLUE api access denied

login_url for access denied decorator.
  • Loading branch information...
danieleguido committed Mar 11, 2013
1 parent e8fc3d9 commit 1665604d995887824bce2a18d79642a579ef4be8
Showing with 3 additions and 2 deletions.
  1. +1 −1 glue/api.py
  2. +2 −1 walt/local_settings.py.sample
View
@@ -63,7 +63,7 @@ def page_by_slug( request, page_slug, page_language ):
return Epoxy( request ).single( Page, {'slug':page_slug,'language':page_language} ).json()
-@login_required
+@login_required( login_url=settings.GLUE_ACCESS_DENIED_URL )
def series( request ):
response = Epoxy( request )
@@ -35,7 +35,8 @@ LANGUAGES = (
LOGIN_URL = '/walt/login/'
LOGOUT_URL = '/walt/logout/'
-GLUE_LOG_PATH = '/pth/to/walt/logs/glue.log'
+GLUE_LOG_PATH = '/path/to/walt/logs/glue.log'
+GLUE_ACCESS_DENIED_URL ='/api/access-denied/'
# alchemy api deeloper key
ALCHEMY_API_KEY = 'if desired'

0 comments on commit 1665604

Please sign in to comment.