Files
2012-02-21 01:15:00 -05:00

1 line
1.8 KiB
JSON

[{"user_id": 6587, "stars": [], "topic_id": 37280, "date_created": 1306687863.7595501, "message": "What is the current best practice for naming your url's in a reusable app? Do people name there url's app-name, or is it better to just use URL namespaces?", "group_id": 81, "id": 1218439}, {"user_id": 12817, "stars": [], "topic_id": 37280, "date_created": 1306734152.585954, "message": "Definitely don't hard-code your URLs. First, the URL should reflect what the page is, not what technology is being used to render it (so '/forum/post/15' rather than '/myawesomeforumapp/post/15'). Second, you don't know where the app sits in the project's logical hierarchy (is 'forum' at the top level, or something like '/members/forum/'?) Third, the name you choose might already be in use by other apps, or the project's owner may have some other reason for wanting the URL to be something other than whatever you decide.", "group_id": 81, "id": 1224466}, {"user_id": 4858, "stars": [], "topic_id": 37280, "date_created": 1306735506.4291091, "message": "similar topic https://convore.com/django-community/django-urls-namespaces-vs-name-prefixes/", "group_id": 81, "id": 1224609}, {"user_id": 6587, "stars": [], "topic_id": 37280, "date_created": 1306786142.6366091, "message": "@yumike thanks for the link. I suppose that ends the discussions here then :)", "group_id": 81, "id": 1230686}, {"user_id": 6587, "stars": [], "topic_id": 37280, "date_created": 1306786070.178582, "message": "@adambrenecki I wasn't referring to hardcoding urls, but rather avoiding name conflicts like you mention using namespaces.", "group_id": 81, "id": 1230665}, {"user_id": 12817, "stars": [], "topic_id": 37280, "date_created": 1306906245.073503, "message": "@keegan Ah, I see now. My bad.", "group_id": 81, "id": 1249664}]