|
1 |
| -# [Django Macros Url](https://github.com/phpdude/django-macros-url/) v0.1.3 - Routing must be simple as possible |
| 1 | +# [Django Macros Url](https://github.com/phpdude/django-macros-url/) v0.1.4 - Routing must be simple as possible |
2 | 2 |
|
3 | 3 | Django Macros Url makes it easy to write (and read) url patterns in your django applications by using macros.
|
4 | 4 |
|
5 |
| -You can combine your prefixes with macro names with underscope, for example you can use macro `:slug` and `:product_slug`. They both will be compiled to same regex pattern with their group names of course. Multiple underscopes accepted too. |
| 5 | +You can combine your prefixes with macro names with underscore, for example you can use macro `:slug` and `:product_slug`. They both will be compiled to same regex pattern with their group names of course. Multiple underscores accepted too. |
6 | 6 |
|
7 | 7 | [](https://travis-ci.org/phpdude/django-macros-url)
|
8 | 8 |
|
@@ -76,8 +76,8 @@ urlpatterns = patterns(
|
76 | 76 | url(':category_slug/:product_slug/', 'category_product'),
|
77 | 77 | url(':category_slug/:product_slug/:variant_id', 'category_product_variant'),
|
78 | 78 | url('news/', 'news'),
|
79 |
| - url('news/:year/:month/:day$', 'news_date'), |
80 |
| - url('news/:slug$', 'news_entry'), |
| 79 | + url('news/:year/:month/:day', 'news_date'), |
| 80 | + url('news/:slug', 'news_entry'), |
81 | 81 | url('^order/:id$', 'order'),
|
82 | 82 | )
|
83 | 83 | ```
|
@@ -105,8 +105,14 @@ I think you understand the difference of ways :)
|
105 | 105 |
|
106 | 106 | #### Routing must be simple! ;-)
|
107 | 107 |
|
108 |
| -I think real raw url regexp patterns need in 1% case only. Prefer simple way to write (and read, this is important) fancy clean urls. |
| 108 | +I think real raw url regexp patterns needed in 1% case only. Prefer simple way to write (and read, this is important) fancy clean urls. |
109 | 109 |
|
110 | 110 | ### Contributor
|
111 | 111 |
|
112 | 112 | Alexandr Shurigin (aka [phpdude](https://github.com/phpdude/))
|
| 113 | + |
| 114 | +### Additionals |
| 115 | + |
| 116 | +Sorry for my english level :( |
| 117 | + |
| 118 | +You are welcome fix readme to good english by pull request! Thank you. |
0 commit comments