django-urls
Django: Should I use Query Strings or clean url's to map display parameters? And how?
I have the following urlconf: urlp开发者_Python百科atterns = patterns(\'page.manager.views\', url(r\'^$\', \'pages\', name=\'page_manager-pages\'),[详细]
2023-03-12 09:34 分类:问答How to properly reverse the Django auth login?
Ok, so all I want to do is to redirect the user to the login page based on some logic in my view. I\'ve tried:[详细]
2023-03-11 08:49 分类:问答Creating short tinyurls for Django model objects while maintaining clean code
I\'m using this code https://github.com/kylebragger/tiny/blob/master/tiny.py to transform integer primary keys into shortened URLs.[详细]
2023-03-10 11:38 分类:问答Pass logged in user to haystack search
I want to show my search results in respect to account type of the current logged in user. Is it possible to pass user from request to object in urls? If not, how else can I pass it?[详细]
2023-03-04 18:20 分类:问答Use first param in django URL
I开发者_如何学C want to to know if its possible to use the first \"segment\" of a Django URL as a parameter and what would that regex look like.[详细]
2023-03-03 12:34 分类:问答Django Passing list of objects to template
I have trouble of passing my get_profiles in the same template as r\'^compose/$\' here. r\'^users/$\' is what I\'m using as a model and it works. \"compose\" is a function in my views.py.[详细]
2023-03-02 16:59 分类:问答django url regex doesn't match
Not sure wh开发者_JAVA百科y this doesn\'t match any urls in urls.py. I checked with a regex checker and it should be correct.[详细]
2023-03-02 15:44 分类:问答Django Templates urls not updating
I have been cha开发者_运维问答nging some of my views templates urls lately, and switched from:[详细]
2023-03-02 04:18 分类:问答How do I add a form value to a URL using Django
I have a simple form. It has a field that accepts a hostname and a submit button. When the form is submitted my app gets some info about the host provided and display it to the user.[详细]
2023-03-02 04:16 分类:问答Django- trying to use APPEND_SLASH and a custom catchall 404 view
I generally add a catch-all 404 regex to my Django websites as the last expression in my urls.py: urlpatterns += patterns(\'django.views.generic.simple\',[详细]
2023-03-01 01:55 分类:问答