Questions tagged [django-1.9]

Django 1.9 is a version of the Django framework, released December 2015. Please only use this tag if your question relates specifically to this version.

Django 1.9 supports Python 2.7, 3.4, and 3.5.

Here are a list of changes:

Django 1.9 was released in December 2015 and was supported until April 2017.

273 questions
0
votes
2 answers

Possible Django bug with Static Files and Templates

I want to use a background image in one of my web pages served up by Django. Ideally, I use a css file and use css background-image property, but when I put it in my css file, it will not render, but it renders if I put the code in the HTML document…
BILL WAGNER
  • 155
  • 3
  • 13
0
votes
3 answers

OperationalError at /admin/rentals/rental/

I had a database with following fields listingName,slug,property,city,place,ownerName,room,water,amenities,price,summary,phoneNumber,phone_image,email I didn't want phone_image field so i removed it from models.py and applied the following…
pri
  • 620
  • 2
  • 9
  • 20
0
votes
0 answers

Cannot create custom model fields as in Django 1.9 documentation

Trying to follow the example mentionned in Django 1.9 documentation, I'm unable to make it works as described. Here's the code I'm stuck with : fields.py class Hand(object): """A hand of cards (bridge style)""" def __init__(self, north,…
Lapin-Blanc
  • 1,945
  • 1
  • 17
  • 26
0
votes
2 answers

DjangoUnicodeDecodeError on retrieving of bugs from bugzilla database ( MySQL)

Objective: Retrieving bugs from the Bugzilla database for analytic purpose, with Django framework, using Django:1.9.4, Python:2.7 Function to call function ( view.py) @login_required(login_url='login/') def customerBugs(request): tag_id =…
WEshruth
  • 769
  • 3
  • 16
  • 32
0
votes
2 answers

form validation in django for checking unique emails

This looks like a basic problem which I have not been able to solve.I have a simple HTML page with just a text box and a submit button.The text box is supposed to take email ids from users and store it in the DB upon clicking the submit button.Apart…
Amistad
  • 7,100
  • 13
  • 48
  • 75
0
votes
1 answer

Django Queryset Datetime Filter

I have a column formatted as such in one of my models: TEMP_START = models.DateTimeField(null=True) And I am attempting to do an exact lookup using queryset syntax such as x.filter(TEMP_START=my_datetime_object) # x can be thought of as…
um8ra
  • 185
  • 2
  • 12
0
votes
1 answer

Dynamically added Django FormSet data not being posted

I am modifying a FormSet using JavaScript/jQuery by dynamically adding a form to a Django FormSet. For example, I start with one form asking about a User's education. The User can then press an add button to add an identical form to input…
eswens13
  • 163
  • 1
  • 9
0
votes
2 answers

Django debug toolbar installation (Django 1.9)

I'm using python 3.5.1 with django 1.9.4 in virtualenv (Windows). I'm trying to add the django-debug-toolbar but I get an error when starting the server. I added 'django_debug' in my installed_apps, and also…
Popa Andrei
  • 318
  • 1
  • 7
  • 15
0
votes
2 answers

Calculate field and order by the calculated field

I have the following models: class Question(models.Model): Title = models.CharField(max_length=250) User = models.ForeignKey(User) def GetVotes(self): return…
Rafael
  • 7,002
  • 5
  • 43
  • 52
0
votes
1 answer

python - Haystack + Django 1.9 + Elasticsearch error

which it is the cause of this error?? I'm using django1.9 and django-haystack == 2.4.1 (venv)daniel@daniel22:~/prototipos/venv/ejemplo/exp$ python manage.py update_index Indexing 2…
0
votes
1 answer

Django runserver ImportError

I'm running Django 1.9 on python 3.4 in a virtualenv. It has been working, but today, it's not. When I run ./manage.py runserver, I get the following error: (django1)dan@danvb:~/Share/django1/suorganizer$ ./manage.py runserver Performing system…
0
votes
1 answer

Passing Forms from one request to another

I would like to realize this scenario: I want to have a simple form, containing some text fields and multiple submit buttons. When I click a button, the action for this button should be performed and the appropriate form fields should be updated.…
Fluffy
  • 299
  • 1
  • 4
  • 21
0
votes
0 answers

trying to select a User in a TextInput in ModelForm in Django - and it won't work

I'm trying to create a webapp in django 1.9 for task tracking and ordering. The different tasks are divided into spaces (like different projects). Now, I want to be able to choose what the task is assigned to in the CreateView. The problem is, that…
0
votes
1 answer

Why did django 1.9 change my button styles?

I am trying out updating from Django 1.8.4 to Django 1.9.1. I have had an application working for years. The original styling was done by somebody else years ago, and we used Compass. I had to port from Google app engine to Heroku, and due to time…
dfrankow
  • 20,191
  • 41
  • 152
  • 214
0
votes
1 answer

Migration problems using Django 1.9

I am currently programming in Django (1.9), Python (3.4) and using the atom code editor. I am trying to program my first website. I am programming python manage.py migrate in window command prompt and the following error keeps coming up: What…