
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
django-classic-user-accounts
Advanced tools
Add CLASSIC_UNIQUE_MOBILE = True in your settings file).Add THEME_NAME = 'matrix-admin-v2' in your settings file).User model support1. 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
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 %}
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.
Login Page
Signup Page
Reset Password Page
Dashboard Page
Django Admin Dashboard
User model table view
Django Model Edit View
FAQs
A extended user profile for Django.
We found that django-classic-user-accounts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.