djangosnippets.org: Latest snippets posted by vemubaluhttp://djangosnippets.org/users/vemubalu/2011-04-19T12:43:58.154828-05:00vemubaludjango_production.wsgi
2011-04-19T12:43:58.154828-05:00vemubaluhttp://djangosnippets.org/snippets/2418/<p>The above conf file the easiest way to point the env and the settings together , the user has to point the django.wsgi file with the correct path and it should work fine and one can directly run it in apache</p>
Freely redistributableDecorator to logout user based on a test and/or redirect to another url
2010-12-08T07:45:44.923806-06:00vemubaluhttp://djangosnippets.org/snippets/2284/<p>This decorator is for views that one wants only users of the site to logout based on few conditions
</p>
<p>Just add the decorator and it should logout anyuser who doestnot match the condition
</p>
<p>btw I borrowed the code from django`s source code
</p>
Freely redistributable