Stuck in URL............!!! Help

18 views
Skip to first unread message

Ali Shaikh

unread,
May 18, 2012, 4:02:37 AM5/18/12
to Django users
Using the URLconf defined in wikicamp.urls, Django tried these URL
patterns, in this order:

1. ^wikicamp/(?P<page_name>[^/]+)/edit/$

2. ^wikicamp/(?P<page_name>[^/]+)/save/$

3. ^wikicamp/(?P<page_name>[^/]+)/$

The current URL, wikicamp/, didn't match any of these.

---

Any ideas? I'm admittedly lacking in the regex department... but I
assume this is a syntax issue due to the tutorial being for an older
version of Django, as I also had to use 'max_length' rather than
'maxlength', as others mentioned here.Am using Django 1.4.......HOw to
overcome this.........?

Jirka Vejrazka

unread,
May 18, 2012, 4:08:58 AM5/18/12
to django...@googlegroups.com
> 1. ^wikicamp/(?P<page_name>[^/]+)/edit/$
> 2. ^wikicamp/(?P<page_name>[^/]+)/save/$
> 3. ^wikicamp/(?P<page_name>[^/]+)/$
>
> The current URL, wikicamp/, didn't match any of these.

All defined URL's expect wikicamp/some_page_name/ (and maybe some
extras after). The requested URL has no page name, terminates right
after "wikicamp/" - hence the error...

HTH

Jirka

doniyor

unread,
May 18, 2012, 5:03:30 AM5/18/12
to django...@googlegroups.com
you need something like this ^wikicamp/ separately, because even if your url doesnot match anything for page_name, your url is still asking something for ^wikicamp/at_least_something/ .
Reply all
Reply to author
Forward
0 new messages