django
Python script freezes infinitely during a socket connection
I have a simple python script that updates that statuses of justin.tv streams in my database. It\'s a Django based web application. This script worked perfectly before I moved it to my production serv[详细]
2023-04-12 19:45 分类:问答How to define range of months for any year on Django model?
I have a Django model called Event that has a date field for the date of the event: class Event(models.Model):[详细]
2023-04-12 19:07 分类:问答Is it possible to trick pip install --find-links into using a downloaded sdist for --editable requirements?
Using the following command: pip install -r requirements.txt -d sdists/ You can easily create an archive of requirements for distributing with your project.This works great if your requirements loo[详细]
2023-04-12 19:03 分类:问答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 分类:问答Django : How to retrieve latest object created
I want to retrieve the latest object created for a particular user. Let\'s say I have a model: class LogBookPreTransaction(models.Model):[详细]
2023-04-12 16:55 分类:问答Django grappelli adding custom js to change_form
I try to add my custom javascript to some change_form templates. Before having installed Grappelli, I could do that by extending[详细]
2023-04-12 16:50 分类:问答Django: required together?
Do you know this: unique_together = (\"name\", \"date\") Does something similar exist for required fields?[详细]
2023-04-12 16:49 分类:问答signals do not work in a standalone script?
in my models.py: from django.db import models from django.dispatch import receiver class MyModel(models.Model):[详细]
2023-04-12 16:40 分类:问答News application for django
Is there a good news application for django framework? I\'ve searched it and found several variants. I\'m interested if you used one of them and can recommend me which one to use. I need some features[详细]
2023-04-12 16:24 分类:问答Storing Django translations in a database
I am working on a Django application which is going to be deployed to Heroku (on their Cedar stack). A limitation of this is that we cannot write to disk. However, Django translations reside in .po fi[详细]
2023-04-12 16:22 分类:问答