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}')
40
40
41
41
urlpatterns = patterns(
42
42
' 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' ),
45
45
)
46
46
```
47
47
@@ -64,8 +64,7 @@ Macro Url example urls.py file
64
64
65
65
``` python
66
66
from django.conf.urls import patterns
67
- from project.apps.portal import views
68
- from project.apps.macrosurl import url
67
+ from macrosurl import url
69
68
70
69
71
70
urlpatterns = patterns(
@@ -84,8 +83,7 @@ Django way urls example
84
83
85
84
``` python
86
85
from django.conf.urls import patterns
87
- from project.apps.portal import views
88
- from project.apps.macrosurl import url
86
+ from macrosurl import url
89
87
90
88
91
89
urlpatterns = patterns(
You can’t perform that action at this time.
0 commit comments