Top "Django" questions

Django is an open-source server-side web application framework written in Python.

How to allow only one radio button to be checked?

{% for each in AnswerQuery %} <form action={{address}}> <span>{{each.answer}}</span><input type=…

html django forms
Can't install via pip because of egg_info error

No matter which package I'm trying to install, I get this error: error: invalid command 'egg_info' ---------------------------------------- Cleaning up... …

django windows python-2.7 pip
How to upload a file in Django?

As a newbie to Django, I am having difficulty making an upload app in Django 1.3. I could not find any …

django file upload
Django datetime issues (default=datetime.now())

I have the below db model: from datetime import datetime class TermPayment(models.Model): # I have excluded fields that are …

python django
How to query as GROUP BY in django?

I query a model: Members.objects.all() And it returns: Eric, Salesman, X-Shop Freddie, Manager, X2-Shop Teddy, Salesman, X2…

python django django-models
How to set a value of a variable inside a template code?

Say I have a template <html> <div>Hello {{name}}!</div> </html> While …

django django-templates
Setting Django up to use MySQL

I want to move away from PHP a little and learn Python. In order to do web development with Python …

python mysql django debian
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 2: ordinal not in range(128)

I am attempting to work with a very large dataset that has some non-standard characters in it. I need to …

python django utf-8
How to delete a record in Django models?

I want to delete a particular record. Such as delete from table_name where id = 1; How can I do this …

python django django-models
How to combine two or more querysets in a Django view?

I am trying to build the search for a Django site I am building, and in that search, I am …

django search django-queryset django-q