Source

django-user-creation /

Filename Size Date modified Message
user_creation
30 B
90 B
1.1 KB
356 B

django-user-creation

django-user-creation is an app that overrides the admin so that when you create users, you can easily email them a link to activate their account, or their credentials, if you choose to provide those for them.

Usage

  1. Install django-user-creation into your python path.

  2. Copy the contents of templates to a template folder in your project

  3. Adjust the activation_subject.txt and activation_email.txt to your wishes

  4. Append 'user_creation' to your INSTALLED_APPS setting

  5. Add from user_creation import useradmin in you root urls.py after admin.autodiscover()

  6. Add:

    # user_creation
    (r'^accounts/', include('user_creation.urls', 'user_creation', 'user_creation')),``
    

    to your root urls.py. You can change the base url ('accounts/') to something different if you want. Note that it only contains a suburl 'activate/', so even if you have other stuff included at 'accounts/', you should be fine.

  7. If your templates don't extend a main template called base_site.html, adjust activate.html accordingly.