Skip to content

Commit b81b275

Browse files
author
Alexandr Shurigin
committed
readme fixes
1 parent aba583f commit b81b275

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.markdown

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ macrosurl.register('myhash', '[a-f0-9]{9}')
4040

4141
urlpatterns = 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
6666
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
6968

7069

7170
urlpatterns = patterns(
@@ -84,8 +83,7 @@ Django way urls example
8483

8584
```python
8685
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
8987

9088

9189
urlpatterns = patterns(

0 commit comments

Comments
 (0)