File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ macrosurl.register('myhash', '[a-f0-9]{9}')
4040
4141urlpatterns = patterns(
4242 ' yourapp.views' ,
43- url(' ^:myhash/$' , ' myhash_main' ),
44- url(' ^news/:news_myhash/$' , ' myhash_news' ),
43+ macrosurl. url(' ^:myhash/$' , ' myhash_main' ),
44+ macrosurl. url(' ^news/:news_myhash/$' , ' myhash_news' ),
4545)
4646```
4747
@@ -64,8 +64,7 @@ Macro Url example urls.py file
6464
6565``` python
6666from django.conf.urls import patterns
67- from project.apps.portal import views
68- from project.apps.macrosurl import url
67+ from macrosurl import url
6968
7069
7170urlpatterns = patterns(
@@ -84,8 +83,7 @@ Django way urls example
8483
8584``` python
8685from django.conf.urls import patterns
87- from project.apps.portal import views
88- from project.apps.macrosurl import url
86+ from macrosurl import url
8987
9088
9189urlpatterns = patterns(
You can’t perform that action at this time.
0 commit comments