Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

GLUE api access denied

login_url for access denied decorator.
  • Loading branch information...
commit 1665604d995887824bce2a18d79642a579ef4be8 1 parent e8fc3d9
Daniele Guido authored March 11, 2013
2  glue/api.py
@@ -63,7 +63,7 @@ def page_by_slug( request, page_slug, page_language ):
63 63
 	return Epoxy( request ).single( Page, {'slug':page_slug,'language':page_language} ).json()
64 64
 
65 65
 
66  
-@login_required
  66
+@login_required( login_url=settings.GLUE_ACCESS_DENIED_URL )
67 67
 def series( request ):
68 68
 	response = Epoxy( request )
69 69
 
3  walt/local_settings.py.sample
@@ -35,7 +35,8 @@ LANGUAGES = (
35 35
 LOGIN_URL = '/walt/login/'
36 36
 LOGOUT_URL = '/walt/logout/'
37 37
 
38  
-GLUE_LOG_PATH = '/pth/to/walt/logs/glue.log'
  38
+GLUE_LOG_PATH = '/path/to/walt/logs/glue.log'
  39
+GLUE_ACCESS_DENIED_URL ='/api/access-denied/'
39 40
 
40 41
 # alchemy api deeloper key
41 42
 ALCHEMY_API_KEY = 'if desired'

0 notes on commit 1665604

Please sign in to comment.
Something went wrong with that request. Please try again.