Giter VIP home page Giter VIP logo

loginlogout's Introduction

loginlogout

View and templates to login and logout.

Quickstart

Install loginlogout:

pip install git+https://github.com/ibamacsr/loginlogout.git

Add loginlogout package to your INSTALLED_APPS and add also the namespace and name of the url to where you want the users be redirect after the login:

INSTALLED_APPS=[
    ...
    'loginlogout'
    ...
]

URL_AFTER_LOGIN='namespace:url_name'

loginlogout has two important templates:

  • login_page.html - a bootstrap template with the login form
  • login_menu.html - adds a login and logout menu to the bootstrap navbar

You can use it by including login_menu.html to your base.html navbar

<div class="collapse navbar-collapse">
  <ul class="nav navbar-nav">
    <li><a href="">NAME</a></li>
  </ul>
  {% include 'loginlogout/login_menu.html' %}
</div>

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py

Credits

Tools used in rendering this package:

loginlogout's People

Contributors

dagnaldo avatar willemarcel avatar

Watchers

Altamiro Rodrigues avatar  avatar James Cloos avatar Luan Nunes avatar George Porto Ferreira avatar Caio Castro avatar  avatar Jadson Reis avatar Lucas L S avatar César Vinícius de Paula Ferreira  avatar  avatar

Forkers

henfee

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.