django-templates
Trying to format returned _set
I am trying to populate my form with a list of plans. Here is my unicode for the Plans model def __unicode__(self):[详细]
2023-04-13 09:02 分类:问答Django: How to place a form in all subsites and process it on 1 url?
I need to place a form in all my subsites and home page. It\'s placed on right column. It\'s action is \"/\". If there are some errors I must display them.[详细]
2023-04-13 05:49 分类:问答How to compare 3 objects in a django template
My string of elementary django questions continues. If I ha开发者_运维问答ve three string variables and want to test that one of them, \"fullname,\" is equivalent to two others concatenated, \"first\[详细]
2023-04-13 05:12 分类:问答Filtering many-to-many relationships in django templates
Another likely easy answer, but if I have a data structure called x.y that represents a many-to-many relationship, is there an easy way -- within the context of a django template -- to query x.开发者_[详细]
2023-04-13 05:06 分类:问答Django returns error 500 for invalid forms
Probably this is another user error, but I\'m having a weird problem with this. I\'m developing a platform and everything works fine if you don\'t mess with it. Now I\'m testing with DEBUG=False and[详细]
2023-04-12 17:58 分类:问答How to create file in a directory using shell commands in django
Iam doing a project in django where i ha开发者_如何转开发ve to concatenate some log files and place it in the new file. How to create a file using shell commands in django???Django, is just a Python f[详细]
2023-04-12 15:31 分类:问答Change the value of a form using BoundField in Django?
I am trying to use a custom template filter to change the value of a form and spit it back out. Specifically, I am trying to do what the cut template filter already does, but using lstrip and rstrip i[详细]
2023-04-12 12:16 分类:问答If statement looks to not extend to other templates
I have a problem with one of my if statements on my django template. Currently I have this on my base.html which extends to other templates:[详细]
2023-04-12 10:35 分类:问答How to divide all objects into parts
I have for section in my template: {% for image in gallery.images.all %} <div id=\"image{{ image.id }}\" class=\"frame\">[详细]
2023-04-11 21:11 分类:问答Django date filter not showing formatted timestamp in rendered template
I\'m trying to format a timestamp into a date using Django\'s {{ timestamp|date:\"d M Y\" }} feature.[详细]
2023-04-11 21:09 分类:问答