diff options
author | prathamesh | 2015-04-06 14:19:57 +0530 |
---|---|---|
committer | prathamesh | 2015-04-06 14:19:57 +0530 |
commit | ca585020fc9c3574937762b091120cacf3fb6f44 (patch) | |
tree | bf819171096d024f1a4ece3d3b70b5c69f802dfc /certificate/urls.py | |
parent | 7f2275eee5756ff3c4f54d3679fae164915e1be9 (diff) | |
download | certificate-generator-ca585020fc9c3574937762b091120cacf3fb6f44.tar.gz certificate-generator-ca585020fc9c3574937762b091120cacf3fb6f44.tar.bz2 certificate-generator-ca585020fc9c3574937762b091120cacf3fb6f44.zip |
Certificates for Drupal Mumbai Camp 2015
Implemented certificate generator for Drupal Mumbai Camp.
Made changes to the method of QR code generation.
- hexadecimal hash is generated.
- first few characters of hash are considered as unique key.
- If the key is not unique then an additional character is added to the key.
- QR code now contains only the link with the key.
- the link gets the data of the certificate holder.
- in the absence of the QR code scanner, the key and link are
provided below the QR code.
Diffstat (limited to 'certificate/urls.py')
-rw-r--r-- | certificate/urls.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/certificate/urls.py b/certificate/urls.py index 9c965c0..bb9871b 100644 --- a/certificate/urls.py +++ b/certificate/urls.py @@ -3,15 +3,18 @@ from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() -urlpatterns = patterns('', +urlpatterns = patterns('certificate.views', # Examples: # url(r'^$', 'fossee_project.views.home', name='home'), # url(r'^blog/', include('blog.urls')), - url(r'^$', 'certificate.views.index', name='index'), - url(r'^download/$', 'certificate.views.download', name='download'), - url(r'^verify/$', 'certificate.views.verify', name='verify'), - url(r'^feedback/$', 'certificate.views.feedback', name='feedback'), - url(r'^scipy_feedback/$', 'certificate.views.scipy_feedback', name='scipy_feedback'), - url(r'^scipy_download/$', 'certificate.views.scipy_download', name='scipy_download'), + url(r'^$', 'index', name='index'), + url(r'^download/$', 'download', name='download'), + url(r'^verify/$', 'verify', name='verify'), + url(r'^verify/(?P<serial_key>.*)/$', 'verify', name='verify-directly'), + url(r'^feedback/$', 'feedback', name='feedback'), + url(r'^scipy_feedback/$', 'scipy_feedback', name='scipy_feedback'), + url(r'^drupal_feedback/$', 'drupal_feedback', name='drupal_feedback'), + url(r'^scipy_download/$', 'scipy_download', name='scipy_download'), + url(r'^drupal_download/$', 'drupal_download', name='drupal_download'), ) |