diff urls.py @ 107:2bca07be6e51

Add login popup box So you can log in and immediately be redirected to the same page. Sort of like what reddit has. If Javascript is disabled, the user is simply taken to the standard login page.
author dellsystem <ilostwaldo@gmail.com>
date Tue, 11 Sep 2012 20:23:51 -0400
parents 17bc502c65a4
children 8da14d503af8
line wrap: on
line diff
--- a/urls.py	Tue Sep 11 18:06:01 2012 -0400
+++ b/urls.py	Tue Sep 11 20:23:51 2012 -0400
@@ -25,10 +25,14 @@
     url(r'^code$',
         'views.code',
         name='code'),
+    url(r'^login',
+        'views.login_register',
+        name='login'),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/', include(admin.site.urls)),
     url(r'^accounts/logout/', 'django.contrib.auth.views.logout',
-        {'template_name' : 'index.djhtml', 'next_page' : '/'}),
+        {'template_name' : 'index.djhtml', 'next_page' : '/'}
+    ),
     url(r'^accounts/', include('registration.urls')),
     url(r'^licenses/', include('agora.apps.free_license.urls')),
     url(r'^users/', include('agora.apps.profile.urls')),