| author | rougeronj |
| Thu, 04 Jun 2015 20:08:01 +0200 | |
| changeset 112 | 53dc561c38d1 |
| parent 108 | 4a152f5f4a09 |
| permissions | -rw-r--r-- |
| 51 | 1 |
from django.conf.urls import patterns, url |
2 |
from rest_framework.authtoken import views |
|
3 |
||
|
61
5abd0a9eafbc
custom ObtainToken function to add PopulateVisite function when a user connects
rougeronj
parents:
51
diff
changeset
|
4 |
from authentication.views import User, ObtainAuthToken |
| 51 | 5 |
|
6 |
||
7 |
urlpatterns = patterns('', |
|
8 |
url(r'^user', User.as_view()), |
|
|
108
4a152f5f4a09
update user model to authenticate with the email as username
rougeronj
parents:
61
diff
changeset
|
9 |
url(r'^api-token-auth', ObtainAuthToken.as_view()), |
| 51 | 10 |
) |