Skip to main content

Django Classic User Accounts

GitHub forks GitHub issues GitHub stars GitHub licensePyPI - DownloadsGitHub license

Latest Update

  • Unique mobile number feature added (Add CLASSIC_UNIQUE_MOBILE = True in your settings file).
  • New Matrix-Admin BT4 Theme added (Add THEME_NAME = 'matrix-admin-v2' in your settings file).

Features

  • Login
  • Sing up
  • Email confirmation
  • Extended user model
  • Profile picture
  • Password reset
  • Account management (update account settings and change password)
  • Custom User model support

Requirements

  • Django 2.0 +
  • Python 3.5, or 3.6

Quick installation

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

    INSTALLED_APPS = [
        'django.contrib.contenttypes',
	    'django.contrib.sessions',
	    'django.contrib.messages',
	    'django.contrib.staticfiles',
	    'ClassicUserAccounts',
	    'sorl.thumbnail',
	    'django.contrib.admin',
	    'django.contrib.auth',
	    ...
    ]

2. Add "AUTH_USER_MODEL" in your settings file like this::

	AUTH_USER_MODEL = 'ClassicUserAccounts.User'

3. Add "Middleware" to youe MIDDLEWARE settings like this::

	MIDDLEWARE = [
	   ...
	   'ClassicUserAccounts.middleware.ClassicUserAccountsMiddleWare',
	]

4. Add "SITE_NAME" in your settings file like this::

    SITE_NAME = 'Your site name'

5. Add url in your project.urls file::

	urlpatterns = [
	    path('accounts/', include('ClassicUserAccounts.urls')),
		...
	]

6. Change Skin ::

    Avaliable Skins:: [
        'skin-blue',
        'skin-black',
        'skin-red',
        'skin-yellow',
        'skin-purple',
        'skin-green',
        'skin-blue-light',
        'skin-black-light',
        'skin-red-light',
        'skin-yellow-light',
        'skin-purple-light',
        'skin-green-light'
    ]

    You have to add "ROLE_BASED_SKIN" in your settings.py file like this::

    ROLE_BASED_SKIN = [
        {'role': 'Admin', 'skin_name': 'skin-red'},
        {'role': 'Subscriber', 'skin_name': 'skin-purple'}
    ]

7. Multi theme feature added::

    Add THEME_NAME in your settings file to change theme
    THEME_NAME = 'default-theme'  Required
    USER_BASED_THEME = False # Default False
    Available themes : default-theme, theme-1, theme-2, theme-3

8. Password Reset templates added.

9. Run python manage.py migrate to extend django user model.

10. Start the development server and visit http://127.0.0.1:8000/admin/ to manage user profile.

11. Available Themes.::

    default-theme
    theme-1
    theme-2
    matrix-admin
    matrix-admin-v2

Base Template Setup

  1. Create site_base.html file in your project templates directory. site_base.html have below content.
{% extends request.THEME_NAME|add:'classic_site_base.html' %}
{% load static %}

{% block side_menu %}
`Place your Side menu here `

<li>
    <a href="{% url 'logout' %}">
        <i class="fa fa-lock"></i> <span>Logout</span>
        <span class="pull-right-container"></span>
    </a>
</li>
{% endblock %}
  1. classic_site_base.html have these blocks where you can place html content.
{% block title %} {% endblock %} Which is placed inside the title tag.

{% block extra_style_block %}{% endblock %} Placed in bottom of </head> tag.

{% block extra_nav_item %} {% endblock %} Placed on the top right header nav.

{% block side_menu %} {% endblock %} Side navigation menu.

{% block content %} {% endblock %} Content block which placed in body tag.

{% block extra_script_block %} {% endblock %} Placed in the bottom of </body> tag.

Photos

Login Page N|Solid

Signup Page N|Solid

Reset Password Page N|Solid

Dashboard Page N|Solid

Django Admin Dashboard N|Solid

User model table view N|Solid

Django Model Edit View N|Solid

Release files for django-classic-user-accounts 1.0.39

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-classic-user-accounts 1.0.39
File Size Uploaded
django-classic-user-accounts-1.0.39.tar.gz 26.5 MB Details

Release files / django-classic-user-accounts-1.0.39.tar.gz

Download URL django-classic-user-accounts-1.0.39.tar.gz
Size 26.5 MB
Tags Source
SHA-256 checksum
How to use checksums
36dd0a28ed5a8c72f51c88a9e6c53c5735365a9f10760300c5bfe96bcd6305a5
BLAKE2b-256 checksum
How to use checksums
1d9826ebe0c3ffd8c74542caecaee79dd073730ace71ae0f8f507cf445720f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.39 This release

1 release file

1.0.38

1.0.37

1 release file

1.0.36

1 release file

1.0.35

1 release file

1.0.34

1 release file

1.0.33

1 release file

1.0.32

1 release file

1.0.31

1 release file

1.0.30

1 release file

1.0.29

1 release file

1.0.28

1 release file

1.0.27

1 release file

1.0.26

1 release file

1.0.25

1 release file

1.0.24

1 release file

1.0.23

1 release file

1.0.22

1 release file

1.0.21

1 release file

1.0.20

1 release file

1.0.19

1 release file

1.0.18

1 release file

1.0.17

1 release file

1.0.16

1 release file

1.0.15

1 release file

1.0.14

1 release file

1.0.13

1 release file

1.0.12

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page