mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 10:33:45 +03:00
update README and travis config
This commit is contained in:
parent
17aecc3a02
commit
5fccb820ff
|
@ -3,8 +3,8 @@ python:
|
|||
- "2.6"
|
||||
- "2.7"
|
||||
env:
|
||||
- DJANGO=1.5.7
|
||||
- DJANGO=1.6.4
|
||||
- DJANGO=1.5.8
|
||||
- DJANGO=1.6.5
|
||||
install:
|
||||
- pip install -q Django==$DJANGO --use-mirrors
|
||||
- pip install coveralls
|
||||
|
|
|
@ -27,6 +27,10 @@ Installation
|
|||
3. Add rest_auth app to INSTALLED\_APPS in your django settings.py
|
||||
|
||||
INSTALLED_APPS = (
|
||||
...,
|
||||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
'registration',
|
||||
...,
|
||||
'rest_auth',
|
||||
)
|
||||
|
@ -43,7 +47,7 @@ Installation
|
|||
)
|
||||
}
|
||||
|
||||
5. Lastly, this project accepts the following Django setting values. You can set the UserProfile model and/or create your own REST registration backend for django-registration
|
||||
5. (optional) Lastly, this project accepts the following Django setting values. You can set the UserProfile model (do not define it if you are not using any UserProfile model) and/or create your own REST registration backend for django-registration (default is registration.backends.simple.views.RegistrationView)
|
||||
|
||||
REST_REGISTRATION_BACKEND = 'rest_auth.backends.rest_registration.RESTRegistrationView'
|
||||
REST_PROFILE_MODULE = 'accounts.UserProfile'
|
||||
|
|
Loading…
Reference in New Issue
Block a user