Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dotted names in urlconf #41

Open
asyncee opened this issue Nov 10, 2012 · 2 comments
Open

Allow dotted names in urlconf #41

asyncee opened this issue Nov 10, 2012 · 2 comments
Milestone

Comments

@asyncee
Copy link

asyncee commented Nov 10, 2012

Hello.
It seems like a little bug: if my application app_name includes a dot, e.g. forum.mongo_forum then the default mongonaut's urlconf can not handle the url: it can not reverse for 'document_list' with keyword arguments like 'app_name': 'forum.mongo_forum'.
The mongo_forum application is installed right into my project and accessed with an project name prefix.

To fix that you can add dot-symbol to mongonaut's urlconf:
(?P<app_label>[.-\w]+)
for all of your url patterns (document
{list, detail, detail_edit_form, detail_add_form}, etc).

Thanks.

@ericson-cepeda
Copy link

The proposed solution has worked for me. Could you please make it official?

@pydanny
Copy link
Member

pydanny commented Jul 16, 2013

@asyncee @ericson-cepeda We accept pull requests. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants