| author | rougeronj |
| Tue, 09 Jun 2015 19:13:29 +0200 | |
| changeset 148 | 9f6f17de6d98 |
| parent 143 | ea633c8f9bfa |
| permissions | -rw-r--r-- |
| 51 | 1 |
from django.conf.urls import patterns, url |
2 |
||
|
143
ea633c8f9bfa
add exposition table and update the views to include the new foreign key to the exposition table
rougeronj
parents:
117
diff
changeset
|
3 |
from .views import User, ObtainAuthToken |
| 51 | 4 |
|
5 |
||
6 |
urlpatterns = patterns('', |
|
7 |
url(r'^user', User.as_view()), |
|
|
108
4a152f5f4a09
update user model to authenticate with the email as username
rougeronj
parents:
61
diff
changeset
|
8 |
url(r'^api-token-auth', ObtainAuthToken.as_view()), |
| 51 | 9 |
) |