Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 44060fbcc2f396bbc178e4d7c7c8fe8a4c41a663 Jeffrey Long committed Sep 4, 2010
@@ -0,0 +1,8 @@
+Stubs for django-registation and django.contrib.auth templates, including context variables passed to each.
+
+Place the `registration` folder in a directory in your TEMPLATE_DIRS.
+
+### Resources
+
+1. Django-registration docs: http://bitbucket.org/ubernostrum/django-registration/src/tip/docs/quickstart.rst
+2. Django.contrib.auth.views docs: http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login
@@ -0,0 +1,8 @@
+{% comment %}
+**registration/activate.html**
+
+Used if account activation fails. With the default setup, has the following context:
+
+``activation_key``
+ The activation key used during the activation attempt.
+{% endcomment %}
@@ -0,0 +1,7 @@
+{% comment %}
+**registration/activation_complete.html**
+
+Used after successful account activation. This template has no context
+variables of its own, and should simply inform the user that their
+account is now active.
+{% endcomment %}
@@ -0,0 +1,24 @@
+{% comment %}
+**registration/activation_email.txt**
+
+Used to generate the body of the activation email. Should display a
+link the user can click to activate the account. This template has the
+following context:
+
+``activation_key``
+ The activation key for the new account.
+
+``expiration_days``
+ The number of days remaining during which the account may be
+ activated.
+
+``site``
+ An object representing the site on which the user registered;
+ depending on whether ``django.contrib.sites`` is installed, this
+ may be an instance of either ``django.contrib.sites.models.Site``
+ (if the sites application is installed) or
+ ``django.contrib.sites.models.RequestSite`` (if not). Consult `the
+ documentation for the Django sites framework
+ <http://docs.djangoproject.com/en/dev/ref/contrib/sites/>`_ for
+ details regarding these objects' interfaces.
+{% endcomment %}
@@ -0,0 +1,25 @@
+{% comment %}
+**registration/activation_email_subject.txt**
+
+Used to generate the subject line of the activation email. Because the
+subject line of an email must be a single line of text, any output
+from this template will be forcibly condensed to a single line before
+being used. This template has the following context:
+
+``activation_key``
+ The activation key for the new account.
+
+``expiration_days``
+ The number of days remaining during which the account may be
+ activated.
+
+``site``
+ An object representing the site on which the user registered;
+ depending on whether ``django.contrib.sites`` is installed, this
+ may be an instance of either ``django.contrib.sites.models.Site``
+ (if the sites application is installed) or
+ ``django.contrib.sites.models.RequestSite`` (if not). Consult `the
+ documentation for the Django sites framework
+ <http://docs.djangoproject.com/en/dev/ref/contrib/sites/>`_ for
+ details regarding these objects' interfaces.
+{% endcomment %}
@@ -0,0 +1,27 @@
+{% comment %}
+**registration/login.html**
+
+It's your responsibility to provide the login form in a template called
+registration/login.html by default. This template gets passed four
+template context variables:
+
+``form``
+ A Form object representing the login form. See the forms
+ documentation for more on Form objects.
+
+``next``
+ The URL to redirect to after successful login. This may contain a
+ query string, too.
+
+``site``
+ The current Site, according to the SITE_ID setting. If you don't
+ have the site framework installed, this will be set to an instance
+ of RequestSite, which derives the site name and domain from the
+ current HttpRequest.
+
+``site_name``
+ An alias for site.name. If you don't have the site framework
+ installed, this will be set to the value of
+ request.META['SERVER_NAME']. For more on sites, see The
+ "sites" framework.
+{% endcomment %}
@@ -0,0 +1,8 @@
+{% comment %}
+**registration/registration_complete.html**
+
+Used after successful completion of the registration form. This
+template has no context variables of its own, and should simply inform
+the user that an email containing account-activation information has
+been sent.
+{% endcomment %}
@@ -0,0 +1,11 @@
+{% comment %}
+**registration/registration_form.html**
+Used to show the form users will fill out to register. By default, has
+the following context:
+
+``form``
+ The registration form. This will be an instance of some subclass
+ of ``django.forms.Form``; consult `Django's forms documentation
+ <http://docs.djangoproject.com/en/dev/topics/forms/>`_ for
+ information on how to display this in a template.
+{% endcomment %}

0 comments on commit 44060fb

Please sign in to comment.