Skip to main content

A Django app to conduct signup, custom user email account verification and activation, login and logout.

Project description

=====
Register-Activate
=====

Register-activate is a simple Django app to conduct sign up, custom user email account verification and activation, login and logout functions. This app modifies django' User model to realize the registering and activation process together with database.

Detailed documentation is in the "docs" directory.

Quick start
-----------

1. Add "register_activate" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'register_activate',
]

2. Include the polls URLconf in your project urls.py like this::
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
...
url(r'^register_activate/',include('register_activate.urls')),
url(r'^admin/', admin.site.urls),
]

3. Update your databse setting.
For example, if you are planning to use mysql for your website:
1) Install mysql on your computer.
2) Create a database for your app using mysql (CREATE DATABASE register_activate)
3) Now you have a database named register_activate, next you need to update the
database information in settings::
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'init_command': 'SET default_storage_engine=INNODB',
},
'USER': Your username(for example,'root')
'PASSWORD':Your password for mysql
'HOST':'127.0.0.1',
'PORT':'3306',
}
}

4. Update the AUTHENTICATION_BACKENDS setting like this::
AUTHENTICATION_BACKENDS=[
...
'django.contrib.auth.backends.ModelBackend',
'register_activate.email_auth.EmailBackend',
]

5. Run `python manage.py migrate` to create the models (auth_user).

6. Visit http://127.0.0.1:8000/register_activate/signup to create an account.

7. After creating your account, your account is not activated yet.
You will receive an email from a google account django.registeractivate@gmail.com
with an activation link. By clicking that link your account will be activated.
You can change the from email to your own email address by changing
register_activate/views to your own account and password::
fromaddr='django.registeractivate@gmail.com'
username='django.registeractivate'
password='django_register_activate'

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page