django-esay-account
django-esay-account is a simple Django app for accounts handle login & SingUp & logout and User Profil tow
to install the application
first check the requirements file
pip install django-esay-account
- Add "django-esay-account" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ...
'crispy_forms',
'account', ]
add this line for the crispy_froms
CRISPY_TEMPLATE_PACK = 'bootstrap3'
- Include the accounts URLconf in your project urls.py like this::
url(r'^', include('account.urls')),
- add this 6 lines at the bottom in the settings files to handel the password reset.
EMAIL_BACKEND ='django.core.mail.backends.console.EmailBackend'
DEFAULT_FROM_EMAIL = '[email protected]'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
EMAIL_PORT = 1025
- and this line for define the media path
MEDIA_URL = '/media/'
- Run
python manage.py migrate
to create the django-esay-account models.
- create super user
- Start the development server and visit http://127.0.0.1:8000/admin/ to create a django-esay-account (you'll need the Admin app enabled).
- Visit http://127.0.0.1:8000/login/ to test the django-esay-account.