comparison sat_website/urls.py @ 149:b1c16cd53b62

update django to version 1.11, refactor project structure, better PEP-8 compliance
author souliane <souliane@mailoo.org>
date Tue, 17 Oct 2017 04:11:21 +0200
parents 2ec5653b190a
children b101828faa0e
comparison
equal deleted inserted replaced
148:75a95a1dfeb6 149:b1c16cd53b62
18 GNU Affero General Public License for more details. 18 GNU Affero General Public License for more details.
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 patterns, include, url 23 from django.conf.urls import include, url
24 from sat_website.views import generic_cat, whereami
24 25
25 urlpatterns = patterns('sat_website.views', 26 urlpatterns = [
26 url(r'^(?P<category>\w*)(.html)?$', 'generic_cat'), 27 url(r'^(?P<category>\w*)(.html)?$', generic_cat),
27 (r'^i18n/', include('django.conf.urls.i18n')), 28 url(r'^i18n/', include('django.conf.urls.i18n')),
28 url(r'^whereami/?$', 'whereami') 29 url(r'^whereami/?$', whereami)
29 ) 30 ]
30 31