I\'ve got a view function that has to decide which form to use depending on some conditions. The two forms look like that:
I has a Django view which is accessed through an AJAX call. It\'s a pretty simple one — all it does is simply pass the request to a form object and save the data. Here\'s a snippet from my view:
How to query Employee to get all the address related to the employee,Employee.Add.all()does not work..
I would like to output debug messages in my django app at different points in a view function. The docs for the django-deb开发者_JS百科ug-toolbar say it uses the build in python logging but I can\'t f
I\'m still not sure this is the correct way to go about this, maybe not, but I\'ll ask anyway. I\'d like to re-write wordpress (justification: because I can) albeit more simply myself in Django and I\
With the following code below, There is an error saying File \"/home/user/web_pro/info/views.py\", line 184, in headerview,
I have the following in my model: class info(models.Model): add = models.CharField(max_length=255) name = models.CharField(max_length=255)
In the following model: class header(models.Model): title = models.CharField(max_length = 255) created_by = models.CharField(max_length = 255)
All, i have the following model defined, class header(models.Model): title = models.CharField(max_length = 255)
class host(models.Model): emp = models.ForeignKey(getname) def __unicode__(self): return self.topic开发者_StackOverflow社区