<commit_before>================
django-simplereg
================

Simple registration app with authentication by email.

How to use
==========

Step 1
******

::

    $ pip install -e git://github.com/Bers/django-simplereg.git#egg=simplereg

(or clone the source and put module on your path)

Step 2
******

Add simplereg to INSTALLED_APPS in your settings.py

Step 3 
******

Set new authentication backend to allow login be email.

::

    AUTHENTICATION_BACKENDS = (
        'simplereg.backend.EmailAuthBackEnd',
        'django.contrib.auth.backends.ModelBackend',
    )

Step 4
******

Add views to urls.py

::

    from django.conf.urls.defaults import *
    from simplereg.forms import LoginForm
    
    urlpatterns = patterns('',
        url(r'^registration/$', 'simplereg.views.registration', name='registration'),
        url(r'^login/$', 'django.contrib.auth.views.login', {
                'authentication_form': LoginForm
            }, name='login'),
        
        ...
    
    )<commit_msg>readme fix<commit_after>================
django-simplereg
================

Simple registration app with authentication by email.

How to use
==========

Step 1
******

::

    $ pip install -e git://github.com/Bers/django-simplereg.git#egg=simplereg

(or clone the source and put module on your path)

Step 2
******

Set new authentication backend to allow login be email.

::

    AUTHENTICATION_BACKENDS = (
        'simplereg.backend.EmailAuthBackEnd',
        'django.contrib.auth.backends.ModelBackend',
    )

Step 3
******

Add views to urls.py

::

    from django.conf.urls.defaults import *
    from simplereg.forms import LoginForm
    
    urlpatterns = patterns('',
        url(r'^registration/$', 'simplereg.views.registration', {
                'template_name': 'registration.html',
                'callback': None
            }, name='registration'),
        url(r'^login/$', 'django.contrib.auth.views.login', {
                'authentication_form': LoginForm
            }, name='login'),
        
        ...
    
    )
{'fraction_non_alphanumeric': 0.16374269005847952, 'fraction_numerical': 0.00341130604288499, 'mean_word_length': 2.699099099099099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4059146', 'n_tokens_mistral': 624, 'n_tokens_neox': 583, 'n_words': 144}