| author | Alexandre Segura <mex.zktk@gmail.com> |
| Fri, 16 Jun 2017 18:36:39 +0200 | |
| changeset 44 | 3b20e2b584fe |
| parent 36 | 36210c4f019f |
| child 58 | f16a080e0bc4 |
| permissions | -rw-r--r-- |
| 24 | 1 |
"""irinotes URL Configuration |
2 |
||
3 |
The `urlpatterns` list routes URLs to views. For more information please see: |
|
4 |
https://docs.djangoproject.com/en/1.11/topics/http/urls/ |
|
5 |
Examples: |
|
6 |
Function views |
|
7 |
1. Add an import: from my_app import views |
|
8 |
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') |
|
9 |
Class-based views |
|
10 |
1. Add an import: from other_app.views import Home |
|
11 |
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') |
|
12 |
Including another URLconf |
|
13 |
1. Import the include() function: from django.conf.urls import url, include |
|
14 |
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) |
|
15 |
""" |
|
|
36
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
16 |
from allauth.account.views import confirm_email as allauthemailconfirmation |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
17 |
from django.conf.urls import include, url |
| 24 | 18 |
from django.contrib import admin |
19 |
||
20 |
urlpatterns = [ |
|
21 |
url(r'^admin/', admin.site.urls), |
|
|
36
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
22 |
url(r'^api/notes/', include('notes.api.urls', namespace='notes')), |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
23 |
url(r'^api/auth/', include('rest_auth.urls', namespace='rest_auth')), |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
24 |
url( |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
25 |
'^api/auth/registration/account-confirm-email/(?P<key>[\\s\\d\\w().+-_\',:&]+)/$', |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
26 |
allauthemailconfirmation, |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
27 |
name="account_confirm_email" |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
28 |
), |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
29 |
url( |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
30 |
r'^api/auth/registration/', |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
31 |
include( |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
32 |
'rest_auth.registration.urls', |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
33 |
namespace='rest_auth_registration') |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
34 |
), |
|
36210c4f019f
reorganize urls and add user management api urls
ymh <ymh.work@gmail.com>
parents:
31
diff
changeset
|
35 |
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')), |
| 24 | 36 |
] |