Git Product home page Git Product logo

sveeaccounts's Introduction

Introduction

Sveetchies-account is a Django application to embed all the registration stuff using django-registration and django-simple-captcha.

This is not really intended to be a generic app, so use it at your own risk.

It is an implementation of a django-registration backend with django-simple-captcha and a UserProfileBase abstract model (and his form, and his form view) that can be used as a base for user profiles.

Also it implements autobreadcrumbs, optionnal user profile form, optionnal password reset views, django-crispy-forms is fully supported and it contains all needed templates to demonstrate usage.

Links

Requires

Optionnal

Install

pip install sveeaccounts

Settings

In your settings file add the app to your installed apps :

INSTALLED_APPS = (
    'registration',
    'captcha'
    'sveeaccounts',
    ...
)

Then you have to mount its urls map in your webapp urls. It is recommended to add them before 'django.contrib.auth'.

Usage

If you have installed django-crispy-forms you can specify your own form helper for registration and login forms. To do this you will have to specify the full Python path to your helper methods to use.

In your settings you can add the following variables, all of them are optionnal :

  • REGISTRATION_FORM_HELPER for the registration form;
  • REGISTRATION_LOGIN_HELPER for the login form;
  • REGISTRATION_USERPROFILE_HELPER for the userprofile edit form;
  • REGISTRATION_PASSWORD_RESET_HELPER for the password reset form (where it asks your email);
  • REGISTRATION_PASSWORD_RESET_CHANGE_HELPER for the password change form (where it asks you for a new password);
  • REGISTRATION_BLOCKED if True the registration form is blocked, users can't register but still can log in, default is False.
  • PASSWORD_RESET_BLOCKED if True the password reset views will be disabled, default is False.
  • USER_PROFILE_BLOCKED if True the user profile form will be disabled, default is False.

The methods which these Python path point just have to return the helper you did, see the sveeaccounts.crispies code for samples.

Note that if you use django-crispy-forms you will have to override template form like login.html and registration.html to add the django-crispy-forms tags usage.

Changes

Version 0.5.0

  • Drop uidb36 in favor of uidb64 (support for django 1.6+);
  • Fixed requirements versions;

Version 0.4

  • Drop version support for Django < 1.5 and django-registration < 1.0;
  • Some changes in default templates to use Foundation5 column names;
  • Add a menu.html for a full sample menu in default templates;
  • Update french translation catalog (PO file);

sveeaccounts's People

Contributors

sveetch avatar

Stargazers

Nikolaus Schlemm avatar Jonathan Barratt avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

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.