django-urls
Problem with get_abosulute_url when using @models.permalink decorator in django
Having some trouble using the permalink decorator when defining get_absolute_url for one of my models that i just cant seem to figure out![详细]
2023-02-26 19:22 分类:问答Django URL syntax error
I am creating a wiki app. And when I create url for my app in urls.py I get syntax error message. I am not good at regular expressions.[详细]
2023-02-25 14:04 分类:问答Override Django Admin URLs for Specific Model?
First a little background: I have an Event model that has various event_types. I want to break one of those event types, \'Film\', into it\'s own admin. I have the basic functionality in place: a pro[详细]
2023-02-24 23:10 分类:问答In Django, can you automatically map URLs to view methods?
Given a view like this: # my_app/views.py def index(request): ... def list(request):开发者_运维知识库[详细]
2023-02-19 15:18 分类:问答Django cannot find admin.sites.url
I am developing a django site locally using rc1.3 and after making several adjustments to my urls.py file i am receiving error messages that django cannot import admin.site.urls. by urls.py file is be[详细]
2023-02-16 06:31 分类:问答For a django model, how can I get the django admin URL to add another, or list objects, etc.?
As much as I love the django documentation, the section on bookmarklets in the admin is strangely vague.[详细]
2023-02-14 17:20 分类:问答URL pattern to match n terms
I\'m trying to write a Django URL pattern that matches 1 to n strings separated by slashes. It should match any of these and pass each term to the view:[详细]
2023-02-13 16:51 分类:问答date_based object_detail giving 404 in django
I\'m trying to use permalinks in Django using a fairly standard /<app>/<year>/<month>/<day>/<slug> model. However, I get 404s with no additional information[详细]
2023-02-13 11:54 分类:问答django reverse() failing
simply put mentions of reverse() anywhere in my project were failing, and so was {% url %}. I have since made some progress if you scroll to the bottom![详细]
2023-02-13 11:36 分类:问答django: recursive/tree-like URL mapping for a CMS?
I am rebuilding a website that features a lot of content contributed by the users (posts,pictures,events etc). This content falls under sections (music, shop etc.); i.e. a normal CMS.[详细]
2023-02-13 05:49 分类:问答