mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 18:43:44 +03:00
update README and travis config
This commit is contained in:
parent
17aecc3a02
commit
5fccb820ff
|
@ -3,8 +3,8 @@ python:
|
||||||
- "2.6"
|
- "2.6"
|
||||||
- "2.7"
|
- "2.7"
|
||||||
env:
|
env:
|
||||||
- DJANGO=1.5.7
|
- DJANGO=1.5.8
|
||||||
- DJANGO=1.6.4
|
- DJANGO=1.6.5
|
||||||
install:
|
install:
|
||||||
- pip install -q Django==$DJANGO --use-mirrors
|
- pip install -q Django==$DJANGO --use-mirrors
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
|
|
|
@ -27,6 +27,10 @@ Installation
|
||||||
3. Add rest_auth app to INSTALLED\_APPS in your django settings.py
|
3. Add rest_auth app to INSTALLED\_APPS in your django settings.py
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
|
...,
|
||||||
|
'rest_framework',
|
||||||
|
'rest_framework.authtoken',
|
||||||
|
'registration',
|
||||||
...,
|
...,
|
||||||
'rest_auth',
|
'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_REGISTRATION_BACKEND = 'rest_auth.backends.rest_registration.RESTRegistrationView'
|
||||||
REST_PROFILE_MODULE = 'accounts.UserProfile'
|
REST_PROFILE_MODULE = 'accounts.UserProfile'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user