django-mongonaut icon indicating copy to clipboard operation
django-mongonaut copied to clipboard

Allow dotted names in urlconf

Open asyncee opened this issue 12 years ago • 2 comments

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.

asyncee avatar Nov 10 '12 07:11 asyncee

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

ericson-cepeda avatar Mar 26 '13 02:03 ericson-cepeda

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

pydanny avatar Jul 16 '13 05:07 pydanny