diff 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
line wrap: on
line diff
--- a/sat_website/urls.py	Tue Oct 17 19:18:44 2017 +0200
+++ b/sat_website/urls.py	Tue Oct 17 04:11:21 2017 +0200
@@ -20,11 +20,12 @@
 You should have received a copy of the GNU Affero General Public License
 along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 """
-from django.conf.urls import patterns, include, url
+from django.conf.urls import include, url
+from sat_website.views import generic_cat, whereami
 
-urlpatterns = patterns('sat_website.views',
-    url(r'^(?P<category>\w*)(.html)?$', 'generic_cat'),
-    (r'^i18n/', include('django.conf.urls.i18n')),
-    url(r'^whereami/?$', 'whereami')
-)
+urlpatterns = [
+    url(r'^(?P<category>\w*)(.html)?$', generic_cat),
+    url(r'^i18n/', include('django.conf.urls.i18n')),
+    url(r'^whereami/?$', whereami)
+]