|
Revision 45, 1.1 KB
(checked in by 235, 3 years ago)
|
|
|
| Line | |
|---|
| 1 | django.org.ua |
|---|
| 2 | |
|---|
| 3 | Accounts application based on 4 external applications: |
|---|
| 4 | 1. django-registration http://code.google.com/p/django-registration/ |
|---|
| 5 | 2. django-profiles http://code.google.com/p/django-profiles/ |
|---|
| 6 | 3. django-avatar http://code.google.com/p/django-avatar/ |
|---|
| 7 | 4. plesonet captcha http://www.django.org.ua/wiki/Captcha |
|---|
| 8 | |
|---|
| 9 | Install: |
|---|
| 10 | 1. Add Accounts into your applications folder |
|---|
| 11 | 2. Add external applications into PYTHON PATH |
|---|
| 12 | 3. Setup external Registration form. In project urls reset url like this: |
|---|
| 13 | url(r'^register/$', register, {'form_class': accounts.forms.AccountRegistrationForm }, name='registration_register') |
|---|
| 14 | If you need external Profile edit form you can do it an |
|---|
| 15 | url(r'^edit/$',views.edit_profile, {'form_class': accounts.forms.MyEditProfileForm }, name='profiles_edit_profile'), |
|---|
| 16 | 4. Checkout settings and urls example. Consult documentation of external applications about special settings. |
|---|
| 17 | |
|---|
| 18 | Now you can find: |
|---|
| 19 | - registration form in accounts.forms.AccountRegistrationForm |
|---|
| 20 | - user profile in accounts.models.UserProfile |
|---|
| 21 | |
|---|
| 22 | You can modify it accordingly your project requirements. |
|---|