asifpy / django-crudbuilder

Generic CRUD implementation in Django
https://django-crudbuilder.readthedocs.org/en/latest/index.html
Apache License 2.0
193 stars 67 forks source link

Custom urls routing #40

Open Edke opened 7 years ago

Edke commented 7 years ago

Hello.

I would like to have a control over routing of urls so they don't depend on names of apps and models. Is that possible ?

asifpy commented 7 years ago

How about using custom_postfix_url, which will allow you to add your custom url. You can Check this Example for custom url.

Feel free to close this when you don't have anymore questions.

polwel commented 7 years ago

Hi, I am a django beginner, but I am very glad I have come across your utility.

I agree however that the hardcoded appname-model-action syntax is a bit limiting. For instance, if one's app's urls are namespaced like so:

url(r'^myapp/', include('myapp.urls', namespace='myapp'))

Then all the views inside that app will not be accessible via your url naming scheme.