Dirk Alders c9532aaf37 Logger creation simplified | 2 月之前 | |
---|---|---|
locale/de/LC_MESSAGES | 4 年之前 | |
migrations | 2 月之前 | |
templates/users | 4 年之前 | |
.gitignore | 4 年之前 | |
LICENSE | 4 年之前 | |
README.md | 2 月之前 | |
__init__.py | 4 年之前 | |
admin.py | 4 年之前 | |
apps.py | 4 年之前 | |
context.py | 2 月之前 | |
forms.py | 4 年之前 | |
middleware.py | 4 年之前 | |
models.py | 4 年之前 | |
parameter.py | 2 月之前 | |
signals.py | 2 月之前 | |
tests.py | 4 年之前 | |
urls.py | 4 年之前 | |
views.py | 2 月之前 |
With the django library users, you are abel to register users, add users, login, logout and do some basic adjustments for the user. This library includes some pages for that based on the extension theme.
You need to ensure that pytz is available in your python environment.
You need to integrate the themes library as well.
Clone the library in your django application.
Add the following line to the list INSTALLED_APPS
:
'users.apps.UsersConfig',
and add the following line to the list urlpatterns
:
path('users/', include('users.urls')),
All parameters can be added in the django settings.py
or in a config.py
in the root django folder. The definitions in the config.py
will be used before the definitions in settings.py
.
This parameter can be True
or False
. It enables or disables the self registration.
You might want to add the user actions by calling users.context.menubar(bar, request)
with bar
as menubar. See theme dosumentation for more details.