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
0 answers

Django 1.9 list_filter

I have these models class Team(models.Model): description = models.CharField('Description', max_length=500) def __str__(self): return self.description class Course(models.Model): description = models.CharField('Description',…
hugotacito
  • 71
  • 1
  • 3
0
votes
1 answer

Django 1.9 show a countdown for HttpResponse/Render response

I'm writing a code where users can manage servers (AWS instances) from a browser. The servers take a while to start up and I would like to do a live countdown so users know how long to wait for before all the servers are turned on. This is my…
carol Alex
  • 353
  • 1
  • 3
  • 15
0
votes
1 answer

Django 1.9 read value from request.POST

So I'm trying to make a script that would ask users a few questions and based on the answers they have chosen, perform an action. I'm very new to Django so I'm still not sure on how it fully works and so I'm basing my code off the tutorial found on…
carol Alex
  • 353
  • 1
  • 3
  • 15
0
votes
2 answers

Can not install django-debug-toolbar for Django 1.9

i have PIP INSTALL DJANGO-DEBUG-TOOLBAR for django 1.9,and here is the error message when i PYTHON MANAGE.PY RUNSERVER: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File…
0
votes
1 answer

Delete migrations that haven't been migrated yet

I set a key that I have now realizes is wrong. It is set at migration 0005. The last migration I did was 0004. I'm now up to 0008. I want to rebuild the migrations with the current models.py against the current database schema. Migration 0005 is no…
User
  • 23,729
  • 38
  • 124
  • 207
0
votes
1 answer

Is Getting started with Django (Django 1.4) tutorial ok for Django 1.9?

Does anyone know if it makes sense to go through this tutorial with django 1.9, even though the tutorial is based on 1.4 Is there an updated version of http://gettingstartedwithdjango.com
Sierra Kilo
  • 265
  • 4
  • 15
0
votes
2 answers

Data truncate error when using manage.py migrate on fresh django installation

I have spent hours trying to get a vagrant django development environment running on my Windows 7 machine. So far I have: Used vagrant to create an ubuntu vm Installed python 3.4.3 Installed mariadb 5.5 Installed django 1.9 Installed…
Artslife
  • 3
  • 3
0
votes
1 answer

int to string with base64 encoding on python 3.x and django-1.9

i use python 3.4 and django-1.9. ı need int to string and encoding with base64. code: new_key = base64.b64encode(str(key)) error: Traceback (most recent call last): File…
KAYKISIZ
  • 118
  • 9
0
votes
1 answer

How to locate RemovedInDjango19Warning

I'm getting this warning quite frequently: lib\importlib\_bootstrap.py:321: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9. I simply have no occurrence of importlib in my entire project. I'm assuming it's from a…
MatheusJardimB
  • 3,599
  • 7
  • 46
  • 70
-1
votes
2 answers

Django - How to put a list in an url

I'm creating a list in a view to show elements from loaded csv file(def showCsv(request)). What I would like to get this list and put this list in url redirection (the first link 'a'), but I don't know how to do this. def showCsv(request): if…
Nosmoz RG
  • 15
  • 3
-1
votes
1 answer

Trouble with nested for-loops in django

I'm having trouble trying to figure out nested for-loops in django. It keeps throwing me an error on the third endfor-block, telling me "Invalid block tag on line 23: 'endfor', expected 'elif', 'else' or 'endif'. Did you forget to register or load…
GZ_0
  • 27
  • 5
-1
votes
1 answer

django-cms==3.2.3 migration from Django 1.5.12 to 1.9.5 choices error

While working a migration of an older Django project I ran into this error after running: python manage.py check cms.UserSettings.language: (fields.E005) 'choices' must be an iterable containing (actual value, human readable name) tuples. Has…
Mark
  • 61
  • 10
-1
votes
1 answer

Django : Cant include static files in webpage

I know there are a few questions like this, but none of them have worked for me. I have django version 1.9.2. The documentation was not of much help wither as i found it quite confusing. Here is my set up myApp- static- myApp- …
AbtPst
  • 7,778
  • 17
  • 91
  • 172
-2
votes
1 answer

How to call a custom method with arguments in the models.py from views.py

I have this example: class MyModel(models.Model): # Some fields... price = models.FloatField() def calculate(self, number): return self.price * number In the views: def whatever(request, any_number): m =…
-2
votes
1 answer

How can I get an old Django project back and running like it was before?

I have an old Django project that I haven't kept up, and now I'd like to make necessary changes to work with current versions of Django and related software. I'm not sure what to make of the current error; it appears to me that it doesn't have…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
1 2 3
18
19