django
Having trouble with the manager functionality in django
Designing code to handle transfers of objects called \"contractBundles\". Have this in the models.py in a \"contract\" app:[详细]
2023-04-13 02:25 分类:问答i18n in Jinja + Django - Is it possible to put <span>. <b> and other tags inside {% trans %}
I\'m using coffin to interface with Jinja2 for Django templating. I\'ve run into a situation where I need to translate this p开发者_Go百科iece of text which looks like this:[详细]
2023-04-13 02:03 分类:问答Are there performance advantages by splitting a Django model/table into two models/tables?
In SO question 7531153, I asked the proper way to split a Django model into two—either using Django\'s Multi-table Inheritance or explicitly defining a OneToOneField.[详细]
2023-04-13 01:52 分类:问答Making a text input field look disabled, but act readonly
I have an HTML input field that I want the user to be able to see, but not edit.If I mark the field as \'disabled\', it doesn\'t get submitted along with the rest of the form.If I mark it as \'readonl[详细]
2023-04-13 01:26 分类:问答Mixin Field into Existing and uneditable django model
I would like to mix a field into an existing model which I would rather not edit (it comes from a third party project and I would rather leave the project untouched).I have created a simple example wh[详细]
2023-04-13 01:03 分类:问答Programmatically check if syncdb is running
I have some signal handlers that work on the Django user. Additionally I\'m using South. These signal handlers depends on some migrations th开发者_如何学Pythonat must run in before.[详细]
2023-04-13 00:17 分类:问答Sphinx automodule: how to reference classes in same module?
I am trying to use the sphinx autodoc extension and specifically the automodule directive to automatically generate documentation for django app I am working on. The problem is that I want to create i[详细]
2023-04-12 23:01 分类:问答Editing Django _form.as_p
By default _form.as._p spits out: <p><label for=\"id_subject\">Subject:</label> <input id=\"id_subject\" typ开发者_如何转开发e=\"text\" name=\"subject\" maxlength=\"100\" />&l[详细]
2023-04-12 21:15 分类:问答turn off SQL logging while keeping settings.DEBUG?
Django logs SQL operations to an internal buffer (w开发者_如何学Gohether logging to file or not) when settings.DEBUG=True.Because I have long-running process that does a lot of DB operations, this cau[详细]
2023-04-12 20:23 分类:问答How to declare a form field in Django, if it has the same name as a Python keyword?
I\'ve got a simple form in Django, that looks something like this: class SearchForm(forms.Form): text = forms.CharField()[详细]
2023-04-12 20:12 分类:问答