Pluggable user accounts and profiles
django-uaccounts is a pluggable Django app that provides user registration, login/logout and a “forgot password” feature. Email verification is required for account activation and resetting password. The app also supports simple user profiles, with multiple email addresses that can be verified as well.
pip install django-uaccounts
INSTALLED_APPS = ( ... 'django.contrib.sites', ... 'uaccounts', ... )
from django.conf.urls import url, include urlpatterns = [ ... url(r'accounts/', include('uaccounts.urls', namespace='uaccounts')), ... ]
Of course, you can put it under any url you want, like r” or r’^mysite/myaccounts/’.
django-uaccounts can be a very simple standalone app, but its main purpose is to offer user account capabilities to your project, complementing your other apps. To test its usage on its own, you should be ready to go by now. However you probably want to let it know its “parent url”. This is a url to redirect to after a successful login, and provide a link for in the “profile” page, so the user can return to the main aspect of your website. This url can be set through the UACCOUNTS_HOME_URL setting.
All of the app settings are optional but you may want to modify them to customize to your needs, and most probably UACCOUNTS_HOME_URL to connect this app with the rest of your project.
UACCOUNTS_HOME_URL: The “parent url”. Can be an str or a call to django.core.urlresolvers.reverse_lazy.
UACCOUNTS_USERNAME_MIN_LENGTH: Minimum allowed characters for username.
UACCOUNTS_PASSWORD_MIN_LENGTH: Minimum allowed characters for password.
UACCOUNTS_STATUS_MAX_LENGTH: Maximum allowed characters for status.
UACCOUNTS_ACTIVATION_EXPIRES: Expiration time of an account activation request, in seconds. Can be an int or None for limitless time.
Default: 24 * 60 * 60
UACCOUNTS_CHANGE_PASSWORD_EXPIRES: Expiration time of a “forgot password” request, in seconds. Can be an int or None for limitless time.
Default: 60 * 60
UACCOUNTS_VERIFICATION_EXPIRES: Expiration time of an email verification request, in seconds. Can be an int or None for limitless time.
UACCOUNTS_AVATAR_DIR: Directory for uploading user avatars. It gets appended to your MEDIA_ROOT.
UACCOUNTS_AVATAR_MAX_HEIGHT: Maximum allowed height for user avatars, in pixels. Avatars get resized (kept in scale) if this is exceeded.
UACCOUNTS_AVATAR_MAX_WIDTH: Maximum allowed width for user avatars, in pixels. Avatars get resized (kept in scale) if this is exceeded.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|django_uaccounts-0.1.7-py2-none-any.whl (57.8 kB) Copy SHA256 Checksum SHA256||py2||Wheel||Oct 25, 2015|
|django-uaccounts-0.1.7.win32.exe (255.3 kB) Copy SHA256 Checksum SHA256||any||Windows Installer||Oct 25, 2015|
|django-uaccounts-0.1.7.zip (61.4 kB) Copy SHA256 Checksum SHA256||–||Source||Oct 25, 2015|