django-database
Bounds and constraints in Django ForeignKey field values -- and how they can effect queryset results
For example if I have models.py like this: Handler(models.Model): model1 = ForeignKey(Model1) model2 = ForeigKey(Model2)[详细]
2023-03-17 23:06 分类:问答Exporting to SPSS files in Python Django?
i need to export data to SPSS file format in Python (Django), but i can\'t find util information in google.[详细]
2023-03-15 06:34 分类:问答How to implement django admin on an existing database where you have read-only access?
I want to use Django admin to browse and existing database but I want 开发者_开发技巧to be sure that me or Django are not going to do any modifications to this database.[详细]
2023-03-11 22:09 分类:问答Django template object return empty value
I filter a subject from database: subject = Subject.objects.filter(id=1) I tried to call it form template:[详细]
2023-03-04 04:32 分类:问答How to select 30 unique random values from database(MySQL) with django?
I\'ve read this question: In Django, how do I select 100 random records from the database? And tried to use Content.objects.all().order_by(\'?\')[:30], but this will produce some duplicate items. So h[详细]
2023-03-02 04:35 分类:问答How to configure Django to reinitialize and populate the entire database on startup?
Let\'s assume that you are working at the first version of a new Django application and you are keep adding changing the models.[详细]
2023-02-17 15:42 分类:问答How to log all sql queries in Django?
How can I log all SQL queries that my django application performed? I want to log everything, including SQLs from admin site. I saw this question and a FAQ answer but I still can\'t figure out where[详细]
2023-01-29 10:13 分类:问答How do I create a new database for an existing App using Django South and set default values?
I\'m working with an OS project that uses South to migrate the database. I\'m building a new database from scratch and I want to make sure South is setup so I can easily update the database in the fut[详细]
2023-01-25 07:29 分类:问答Django __in lowercase
I\'m using django-taggit, which handles the attachment of tags to arbitrary content types. I imported a large tag list, which contains many uppercase words, as well as lowercase words.[详细]
2023-01-20 06:27 分类:问答How do I delete an object in a django relation (While keeping all related objects)?
I have the following model: One name (Char) Many one (ForeignKey,blank=True,null=True) title (Char) I want to delete a One instance and all related objects should loose their relation to the One i[详细]
2023-01-09 21:03 分类:问答