diff options
author | makfire <mukeshpandey15@hotmail.com> | 2015-06-22 12:02:22 +0530 |
---|---|---|
committer | makfire <mukeshpandey15@hotmail.com> | 2015-06-22 12:02:22 +0530 |
commit | 615535de2be2bcb1864ee9bfd58804abf7e396fb (patch) | |
tree | b76a5f91c06b18195ea4ec4ea26fec352e327f17 /gnowsys-ndf/gnowsys_ndf/ndf/urls | |
parent | ede6bf410502473a348cf0b0e295fc5bde8a87b9 (diff) | |
download | gnowsys-615535de2be2bcb1864ee9bfd58804abf7e396fb.tar.gz |
captcha implemeted
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') + ) + + |