| author | rougeronj |
| Wed, 27 May 2015 19:06:00 +0200 | |
| changeset 102 | 622f5d1955b6 |
| parent 79 | 1be5cc51e359 |
| child 111 | 6b397990e314 |
| permissions | -rw-r--r-- |
| 35 | 1 |
from django.conf.urls import patterns, url, include |
|
79
1be5cc51e359
Add url to access main page of the project and gulp "copy-server" to copy the ammico app to the server
rougeronj
parents:
62
diff
changeset
|
2 |
from django.views.generic.base import TemplateView |
|
22
609fa711b324
add URL_JAMESPOT in settings - add requirements.txt to build the virtual env
rougeronj
parents:
19
diff
changeset
|
3 |
|
|
102
622f5d1955b6
add 'public' boolean field to the model and an access to get the list of the public books
rougeronj
parents:
79
diff
changeset
|
4 |
from ammico.views import ListBooks, InfoBook, ListSlides, InfoSlide, SlidesOrder, PublicBooks |
|
22
609fa711b324
add URL_JAMESPOT in settings - add requirements.txt to build the virtual env
rougeronj
parents:
19
diff
changeset
|
5 |
|
| 13 | 6 |
|
7 |
urlpatterns = patterns('', |
|
|
79
1be5cc51e359
Add url to access main page of the project and gulp "copy-server" to copy the ammico app to the server
rougeronj
parents:
62
diff
changeset
|
8 |
url(r'^$', TemplateView.as_view(template_name="index.html"), name='index'), |
| 46 | 9 |
url(r'^books$', ListBooks.as_view()), |
|
18
4d3f67ddbe72
return Stop information fetch from jamestop api in the Slide info - id to idBook and idSlide to avoid confusion
rougeronj
parents:
14
diff
changeset
|
10 |
url(r'^books/(?P<idBook>[0-9]+)$', InfoBook.as_view()), |
| 46 | 11 |
url(r'^books/(?P<idBook>[0-9]+)/order$', SlidesOrder.as_view()), |
|
102
622f5d1955b6
add 'public' boolean field to the model and an access to get the list of the public books
rougeronj
parents:
79
diff
changeset
|
12 |
url(r'^public', PublicBooks.as_view()), |
| 46 | 13 |
url(r'^slides$', ListSlides.as_view()), |
|
18
4d3f67ddbe72
return Stop information fetch from jamestop api in the Slide info - id to idBook and idSlide to avoid confusion
rougeronj
parents:
14
diff
changeset
|
14 |
url(r'^slides/(?P<idSlide>[0-9]+)$', InfoSlide.as_view()), |
| 51 | 15 |
url(r'^auth/', include('authentication.urls')), |
| 13 | 16 |
) |