I\'m a complete newb to Django working on a sample app. It appears that I am missing something with how templates work in Django.
I am using this def ajax_create( request ): if request.is_ajax(): form = SourceForm() template = \'ajax_form.html\'
I have a photo gallery with an album model (just title and date and stuff) and a photo model with a foriegn key to the album and three imageFields in it (regular, mid and thumb).
Here is my filter: @register.filter def filter_by_user(queryset, user): \"\"\"Filter the queryset by (currently logged in) user\"\"\"
Category has \"types\" (for example, three types of categories). Each category may have any number of Videos. And each Video, published in Category of \'1\' type may have any number of Pictures. But f
I have a view in Django that returns error 500 and I can\'t figure out why. It looks something like that:
I am trying to pass parameters to Django view but I couldn\'t decide what is the best way to do it. I am making an AJAX call and my javascript code is
My models: class NewsItem(models.Model): title= ... content= ... class Image(models.Model): newsItem = models.ForeignKey(NewsItem)
I can get my file to save to disk where I tell it to, but can\'t get it to save to the instance and I haven\'t the slightest idea why!
The error int() argument must be a string or 开发者_如何转开发a number, not \'BoundField\' My form is a multiplechoicefield