well it\'s quiet simple. 2 models with ManyToMany relation: class Artist(models.Model): name = models.CharField(max_length=100, unique=True)
So in my Django project I have a few different apps, each with their own Models, Views, Templates, etc. What is a good way (the \"Django\" way) to have these Apps communicate?
I want to perform some delete() and some save() methods on some objects that are not an instance of the current class I\'m in.I\'m trying to do this in an overloaded save() method of a class.Here is t
I have the following view that takes the value of \"q\" from a template: from django.http import HttpResponse
I\'m trying to query an object and when I hard code the value it works but when I use a variable for it the query doesn\'t work.
Is it advisable to use get_prep_value() in my Django Field subclass to do this (my custom field is a sub-class of DecimalField):
I have the following model: class A(models.Model): name = models.CharField(max_length=50) content_type = models.ForeignKey(ContentType)
There\'s probably an obvious way to do this that I\'m missing, so sorry for the noobish question. I\'ve got models like this:
Some of my unit tests take 10-15 seconds just for mysql to create the tables. This seems unnecessarily long. It has to create around 50 tables, but that\'s still only 3 tables per second. This is a bi
Is there a simple way I can add a \"WikiField\" to a model I have in my application? I think the most important requirements are: