GithubHelp home page GithubHelp logo

nickhargreaves / django_auth Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 46 KB

User authentication module for Django: login/logout, register, tokens, email + SMS confirmations

Python 49.56% HTML 43.03% CSS 7.41%

django_auth's Introduction

=========== Django Auth

Django Auth is a simple app for user authentication with Django.

It does the following: login/logout, register, email + SMS confirmations with Twilio

Quick start
  1. Add "django_auth" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = (

     'django_auth',
    

    )

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

    url(r'^your-chosen-path/', include('django_auth.urls')),

  3. Install Twilio

    pip install twilio

  4. Add Twilio to your requirements.txt file

  5. Go to your settings.py and add your Twilio credentials at the bottom of the file

    # Twillio settings
    TWILLIO_ACCOUNT = ''
    TWILLIO_TOKEN = ''
    TWILLIO_FROM = ''
    
  6. Add the following settings as well:

    REQUIRE_PHONE_VERIFICATION_ON_LOGIN = False # Set to true to enable Two-Factor Authentication
    REQUIRE_PHONE_VERIFICATION_ON_REGISTER = False # Set to true if you want users to confirm phone number
    FROM_EMAIL_ADDRESS = '' # The email address to show as source of your confirmation address"
    
  7. Run python manage.py migrate to create the django_auth models.

  8. 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/

django_auth's People

Contributors

nickhargreaves avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

enockomondi

django_auth's Issues

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.