Fixed Activation.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Wed, 11 Nov 2009 15:52:26 +0530
changeset 24 bb1f31e9c3ab
parent 23 3cb3f853a193
child 25 ad091ba95653
Fixed Activation.
project/templates/registration/activate.html
project/templates/registration/activation_complete.html
project/templates/registration/activation_email.txt
project/templates/registration/activation_email_subject.txt
project/templates/registration/registration_complete.html
project/templates/registration/registration_form.html
project/urls.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/registration/activate.html	Wed Nov 11 15:52:26 2009 +0530
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+
+{% block content %}
+  <div class="post">
+    <div class="title"><h2>{% trans "Register" %}</h2></div>
+    <div id="search">
+    <style type="text/css">
+    ul.errorlist {
+        margin: 0;
+        padding: 0;
+    }
+    .errorlist li {        
+        color: red;
+        display: block;
+        font-size: 10px;
+        margin: 0 1 3px;
+        padding: 0px 45px;
+    }
+</style>
+        <table>
+          Your account has been activated and registration procedure is complete.
+          You can login to your account now.
+        </table>
+      <script type="text/javascript">
+	document.getElementById('id_username').focus();
+      </script>
+   </div>
+{% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/registration/activation_complete.html	Wed Nov 11 15:52:26 2009 +0530
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+
+{% load i18n %}
+
+{% block content %}
+  <div class="post">
+    <div class="title"><h2>{% trans "Register" %}</h2></div>
+    <div id="search">
+    <style type="text/css">
+    ul.errorlist {
+        margin: 0;
+        padding: 0;
+    }
+    .errorlist li {        
+        color: red;
+        display: block;
+        font-size: 10px;
+        margin: 0 1 3px;
+        padding: 0px 45px;
+    }
+</style>
+        <table>
+          Your account has been activated and registration procedure is complete.
+          You can login to your account now.
+        </table>
+      <script type="text/javascript">
+	document.getElementById('id_username').focus();
+      </script>
+   </div>
+{% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/registration/activation_email.txt	Wed Nov 11 15:52:26 2009 +0530
@@ -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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/registration/activation_email_subject.txt	Wed Nov 11 15:52:26 2009 +0530
@@ -0,0 +1,1 @@
+[SciPy.in] Account activation mail
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/registration/registration_complete.html	Wed Nov 11 15:52:26 2009 +0530
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% load i18n %}
+
+{% block content %}
+  <div class="post">
+    <div class="title"><h2>{% trans "Register" %}</h2></div>
+    <div id="search">
+    <style type="text/css">
+    ul.errorlist {
+        margin: 0;
+        padding: 0;
+    }
+    .errorlist li {        
+        color: red;
+        display: block;
+        font-size: 10px;
+        margin: 0 1 3px;
+        padding: 0px 45px;
+    }
+</style>
+        <table>
+          Your account has been created. An activation email will be sent
+          soon to the email ID with which you registered.<br /><br />
+          Please visit the link mentioned in the mail to activate your account.
+        </table>
+      <script type="text/javascript">
+	document.getElementById('id_username').focus();
+      </script>
+   </div>
+{% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/registration/registration_form.html	Wed Nov 11 15:52:26 2009 +0530
@@ -0,0 +1,33 @@
+{% extends "base.html" %}
+
+{% load i18n %}
+
+{% block content %}
+  <div class="post">
+    <div class="title"><h2>{% trans "Register" %}</h2></div>
+    <div id="search">
+    <style type="text/css">
+    ul.errorlist {
+        margin: 0;
+        padding: 0;
+    }
+    .errorlist li {        
+        color: red;
+        display: block;
+        font-size: 10px;
+        margin: 0 1 3px;
+        padding: 0px 45px;
+    }
+</style>
+
+      <form method="POST" action=".">
+        <table>
+          {{ form.as_table }}
+        </table>
+        <p><input type="submit" name="Register" value="{% trans "Register" %}" class="btn"></p>
+      </form>
+      <script type="text/javascript">
+	document.getElementById('id_username').focus();
+      </script>
+   </div>
+{% endblock %}
--- a/project/urls.py	Wed Nov 11 15:36:08 2009 +0530
+++ b/project/urls.py	Wed Nov 11 15:52:26 2009 +0530
@@ -73,7 +73,8 @@
         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