Django Auth is a simple app for user authentication with Django.
It does the following: login/logout, register, email + SMS confirmations with Twilio
The repository is available here : https://github.com/nickhargreaves/django_auth
Quick start
- Add “django_auth” to your INSTALLED_APPS setting like this::INSTALLED_APPS = (
'django_auth',
)
- Include the django_auth URLconf in your project urls.py like this::
url(r'^django_auth/', include('django_auth.urls')),
- Install Twilio
pip install twilio
- Add Twilio to your requirements.txt file
- Go to your settings.py and add your Twilio credentials at the bottom of the file
# Twillio settings TWILLIO_ACCOUNT = '' TWILLIO_TOKEN = '' TWILLIO_FROM = ''
- Go to your projects main urls.py and add this to your URL
url(r'^django_auth/', include('django_auth.urls')),
- Run
python manage.py migrate
to create the django_auth models. - Start the development server and visit http://127.0.0.1:8000/django_auth/
Demo
You can try out the demo here https://hidden-reef-1355.herokuapp.com/