开发者_JAVA百科If I pass items to the template through the view, and I want the user to select one of the values that gets submitted to a user\'s record, I would only have dun a for loop in the templa
Not sure what is causing this error. Please help NameError at /dash/ name \'Business\' is not defined Exception Location: /home/src/common/models.py in ImageBank, line 38
I am using Django-secretballot app which allows anonymous voting. First we register a model for secret voting and then there is a function add_vote() which takes 2 arguments. \'Token\' and vote value(
I have a POST submission, and I need to pass the variable \'count\' when the page is re-loaded. I am currently using a render_to_response, but I believe this is the wrong approach (though it is curren
My Models: Item: name desc order created_at And I got a list of items from Item like this: items = Item.objects.all().order_by(\'order\', \'-created_at\')
I have this custom primary key in a model: class Personal(models.Model): name = models.CharField(max_length=20,primary_key=True)
I 开发者_StackOverflow社区am using Django and my website has no user profiles so all are anonymous. I want to implement a \'like\' system. How do I restrict a user to like only once. Thanks.If you don
I\'m currently learning how to use the class-based views in django 1.3. I\'m trying to update an application to use them, but I still don\'t uderstand very well how they work (and I read the entire cl
I have a Django model with a bunch of fields which describe a Work Order. I then have a form created with ModelForm, but only using a handful of the model\'s field. Here is my form:
I have a view with two forms. I am trying to reference the uploaded image\'s pk in the same form. How do i do that?