From 3e7a8f1766f637b667d12f645ec47c0540297ca6 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Wed, 11 Nov 2009 15:52:26 +0530 Subject: Fixed Activation. --- project/templates/registration/activate.html | 28 ++++++++++++++++++ .../registration/activation_complete.html | 30 ++++++++++++++++++++ .../templates/registration/activation_email.txt | 17 +++++++++++ .../registration/activation_email_subject.txt | 1 + .../registration/registration_complete.html | 31 ++++++++++++++++++++ .../templates/registration/registration_form.html | 33 ++++++++++++++++++++++ project/urls.py | 3 +- 7 files changed, 142 insertions(+), 1 deletion(-) create mode 100755 project/templates/registration/activate.html create mode 100755 project/templates/registration/activation_complete.html create mode 100755 project/templates/registration/activation_email.txt create mode 100755 project/templates/registration/activation_email_subject.txt create mode 100755 project/templates/registration/registration_complete.html create mode 100755 project/templates/registration/registration_form.html diff --git a/project/templates/registration/activate.html b/project/templates/registration/activate.html new file mode 100755 index 0000000..6003cc7 --- /dev/null +++ b/project/templates/registration/activate.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} + +{% block content %} +
+

{% trans "Register" %}

+ +{% endblock %} diff --git a/project/templates/registration/activation_complete.html b/project/templates/registration/activation_complete.html new file mode 100755 index 0000000..3035a4f --- /dev/null +++ b/project/templates/registration/activation_complete.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% load i18n %} + +{% block content %} +
+

{% trans "Register" %}

+ +{% endblock %} diff --git a/project/templates/registration/activation_email.txt b/project/templates/registration/activation_email.txt new file mode 100755 index 0000000..77140be --- /dev/null +++ b/project/templates/registration/activation_email.txt @@ -0,0 +1,17 @@ +Hello everyone, + + It looks like you have registered for SciPy.in with this email address. +To confirm your registration please activate your account by clicking on the +link below. + + http://scipy.in/accounts/activate/{{ activation_key }} + +If your browser doesn't support clicking on the link, please copy +paste the URL in your browser's address bar. + +Note: Your activation key is valid only for 7 days. Please activate your accout +before that. + +-- + Thanks for registering, + SciPy team \ No newline at end of file diff --git a/project/templates/registration/activation_email_subject.txt b/project/templates/registration/activation_email_subject.txt new file mode 100755 index 0000000..4496f3d --- /dev/null +++ b/project/templates/registration/activation_email_subject.txt @@ -0,0 +1 @@ +[SciPy.in] Account activation mail \ No newline at end of file diff --git a/project/templates/registration/registration_complete.html b/project/templates/registration/registration_complete.html new file mode 100755 index 0000000..d4b4bc6 --- /dev/null +++ b/project/templates/registration/registration_complete.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% load i18n %} + +{% block content %} +
+

{% trans "Register" %}

+ +{% endblock %} diff --git a/project/templates/registration/registration_form.html b/project/templates/registration/registration_form.html new file mode 100755 index 0000000..6cef77d --- /dev/null +++ b/project/templates/registration/registration_form.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% load i18n %} + +{% block content %} +
+

{% trans "Register" %}

+ +{% endblock %} diff --git a/project/urls.py b/project/urls.py index e0127dd..5994d33 100644 --- a/project/urls.py +++ b/project/urls.py @@ -73,7 +73,8 @@ urlpatterns += patterns('', name='reaching'), url(r'^talks-cfp/schedule/$', direct_to_template, {"template": "talk/schedule.html"}, - name='reaching') + name='reaching'), + (r'^accounts/', include('registration.urls')), ) # Password reset -- cgit