Mercurial > sat_legacy_website
comparison sat_website/urls.py @ 150:b101828faa0e
split views.py in sub-modules
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 17 Oct 2017 22:16:20 +0200 |
parents | b1c16cd53b62 |
children |
comparison
equal
deleted
inserted
replaced
149:b1c16cd53b62 | 150:b101828faa0e |
---|---|
19 | 19 |
20 You should have received a copy of the GNU Affero General Public License | 20 You should have received a copy of the GNU Affero General Public License |
21 along with Foobar. If not, see <http://www.gnu.org/licenses/>. | 21 along with Foobar. If not, see <http://www.gnu.org/licenses/>. |
22 """ | 22 """ |
23 from django.conf.urls import include, url | 23 from django.conf.urls import include, url |
24 from sat_website.views import generic_cat, whereami | 24 from sat_website.views.whereami import WhereAmIView |
25 from sat_website.views.category import CategoryView | |
25 | 26 |
26 urlpatterns = [ | 27 urlpatterns = [ |
27 url(r'^(?P<category>\w*)(.html)?$', generic_cat), | |
28 url(r'^i18n/', include('django.conf.urls.i18n')), | 28 url(r'^i18n/', include('django.conf.urls.i18n')), |
29 url(r'^whereami/?$', whereami) | 29 url(r'^whereami/?$', WhereAmIView.as_view()), |
30 url(r'^(?P<category>\w*)(.html)?$', CategoryView.as_view()), | |
30 ] | 31 ] |
31 | 32 |