Giter Site home page Giter Site logo

acgray / django-registration-withemail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brianmckeever/django-registration-withemail

0.0 2.0 0.0 84 KB

This is a simple user-registration application for Django, designed to make allowing user signups as painless as possible.

License: BSD 2-Clause "Simplified" License

Python 100.00%

django-registration-withemail's Introduction

django-registration-withemail

This is a simple user-registration application for Django, designed to make allowing user signups as painless as possible. It requires a functional installation of Django 1.5 or newer, but has no required dependencies. django-registration-withemail is hugely inspired by the popular django-registration which is not yet compatible with django 1.5.

Installing

To install django-registration-withemail, run on terminal: ::

$ [sudo] pip install registration_withemail

Add "registration_withemail" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
  ...
  'registration_withemail',
)    

Add AUTH_USER_MODEL = 'registration_withemail.EldonUser' to your settings.

Run `python manage.py syncdb` to create the User model.

Settings

ACCOUNT_ACTIVATION_DAYS This is the number of days users will have to activate their accounts after registering. If a user does not activate within that period, the account will remain permanently inactive.

ADD_TOS Adds a term of service checkbox to the registration form

ADD_RECAPTCHA Adds recaptcha to the registration form. You must install django-recaptcha in order to use this setting. For further information about recaptcha see https://github.com/praekelt/django-recaptcha

AUTHENTICATE_WHEN_ACTIVATE if True, the user will be immediately logged in after his account activation.

Setting up URLs

Include the registration_withemail URLconf in your project urls.py like this::

(r'^accounts/', include('registration_withemail.urls')),

Users would then be able to register by visiting the URL /accounts/register/,

and login (once activated) at

/accounts/login/, etc.

Required templates

In the default setup, you will need to create several templates required by django-registration-withemail, and possibly additional templates required by views in django.contrib.auth.

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.

registration/registration_complete.html

Used after successful completion of the registration form.

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.

registration/activation_complete.html

Used after successful account activation.

registration/activation_email_subject.txt

Used to generate the subject line of the activation email.

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;

registration/activation_email.txt registration/activation_email.html

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;

development

  • Source hosted at GitHub <https://github.com/kamagatos/django-registration-withemail>
  • Report issues on GitHub Issues <https://github.com/kamagatos/django-registration-withemail/issues>

Pull requests are very welcomed!

Changelog

0.1

  • Initial commit

LICENSE

Unless otherwise noted, the django-registration-withemail source files are distributed under the BSD-style license found in the LICENSE file.

django-registration-withemail's People

Contributors

kamagatos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.