Skip to content

synw/django-userprofiles2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Userprofiles

User profiles management that work with Django Allauth

To install clone and:

pip install django-allauth django-avatar
mkdir media/userprofiles
mkdir media/userprofiles/avatars

Installed apps:

'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'avatar',
'userprofiles2',

Be sure to have SITE_ID = 1 in settings.

Urls:

path('avatar/', include('avatar.urls')),
path('account/', include('allauth.urls')),
path('profile/', include('userprofiles2.urls')),

Example settings for Allauth:

LOGIN_URL = '/account/login/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_URL = "/account/logout/"

#~ Allauth settings
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = 'optional'
SOCIALACCOUNT_EMAIL_REQUIRED = False
SOCIALACCOUNT_EMAIL_VERIFICATION  = False
ACCOUNT_PASSWORD_MIN_LENGTH = 8
ACCOUNT_EMAIL_CONFIRMATION_ANONYMOUS_REDIRECT_URL = '/'
ACCOUNT_EMAIL_CONFIRMATION_AUTHENTICATED_REDIRECT_URL = '/account/'

Note: the templates use font-awesome

About

User profiles that work with Django Allauth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published