django
Django query for many-to-one relation with no instances of the foreign-key relationship
I have a many-to-one relationship between submissions and assignments (a student may have multiple submissions for a single assignment).I would like to create a query that shows the assignments with n[详细]
2023-04-13 06:31 分类:问答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 分类:问答Django CMS "No module named html5lib"
I have a basic Django CMS site installed with all the default and recommended modules however I recieve and error saying...[详细]
2023-04-13 05:19 分类:问答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 分类:问答How to create a polygon from a central point with GeoDjango
I want to create a polygon from a point and a radius. For example, I want to be able to give a point (latitude, longitude) with a given radius (ex. 10km) and calculate the circle and store it as poly[详细]
2023-04-13 04:25 分类:问答secure hash as database table key
I have a database table that is populated by a long running process. This process reads external data and updates the records in the database. Instead of really updating the records, it is easier to c[详细]
2023-04-13 03:53 分类:问答Django 1.3 post login/logout signals in relation with authentication
First of all both methods below return True. I\'d expect the second one to return False using the django standard admin authentication procedure or am I wrong?[详细]
2023-04-13 03:49 分类:问答Django: get ValueQuerySet with values from generic relation
I have two models linked by a generic relation: from django.contrib.contenttypes import generic from django.db import models[详细]
2023-04-13 03:43 分类:问答Share django lib
How share Django lib with multiple python (for example 2.6 and 3.开发者_JAVA技巧1) ? A simple way is with ln -s ... is the correct way or is there something a little more clever?You should be using vi[详细]
2023-04-13 03:26 分类:问答