diff options
author | katkamrachana <katkam.rachana@gmail.com> | 2015-06-25 14:57:03 +0530 |
---|---|---|
committer | katkamrachana <katkam.rachana@gmail.com> | 2015-06-25 14:57:03 +0530 |
commit | 39b763a731be81ac4ac1a8ad156c1579c44fbedf (patch) | |
tree | 3428ff5aa192b0d2e200cfdfe94c322170284ded /gnowsys-ndf/gnowsys_ndf/ndf/urls | |
parent | bdd6be13df1540f040d2fe99c8d53918b27227e9 (diff) | |
parent | c35332317d14906f5d9a18ae5b7786ba52bfdb49 (diff) | |
download | gnowsys-39b763a731be81ac4ac1a8ad156c1579c44fbedf.tar.gz |
Merge branch 'mongokit' of https://github.com/gnowledge/gstudio into mongokit
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | 4 | ||||
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/captcha.py | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py index 0fad1de..ffb3db7 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py @@ -33,12 +33,12 @@ urlpatterns = patterns('', # (r'^new/$', 'gnowsys_ndf.mobwrite.views.new'), # (r'^mobwrite/', 'gnowsys_ndf.mobwrite.views.mobwrite'), # --end of mobwrite - (r'^admin/', include(admin.site.urls)), # (r'^$', HomeRedirectView.as_view()), url(r'^$', homepage, {"group_id": "home"}, name="homepage"), url(r'^welcome/?', landing_page, name="landing_page"), - + url(r'^captcha/', include('captcha.urls')), + (r'^', include('gnowsys_ndf.ndf.urls.captcha')), # all main apps (r'^(?P<group_id>[^/]+)/file', include('gnowsys_ndf.ndf.urls.file')), (r'^(?P<group_id>[^/]+)/image', include('gnowsys_ndf.ndf.urls.image')), diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/captcha.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/captcha.py new file mode 100644 index 0000000..1434e18 --- /dev/null +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/captcha.py @@ -0,0 +1,12 @@ +from django.conf.urls import patterns, url + +from django.views.generic import TemplateView + +from gnowsys_ndf.ndf.views import Captcha + +urlpatterns = patterns('gnowsys_ndf.ndf.views.Captcha', + url(r'^validate_captcha/', 'captcha_validate', name='captcha_validate'), + url(r'^new_captcha/', 'new_captcha', name='new_captcha') + ) + + |