Skip to content
This repository

Allow dotted names in urlconf #41

Open
asyncee opened this Issue · 2 comments

3 participants

Stanislav Lobanov Ericson Cepeda Daniel Greenfeld
Stanislav Lobanov

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[.-\w]+)
for all of your url patterns (document
{list, detail, detail_edit_form, detail_add_form}, etc).

Thanks.

Ericson Cepeda

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

Daniel Greenfeld
Owner

@asyncee @ericson-cepeda We accept pull requests. :wink:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.