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

Reverse for 's_note' with arguments '()' and keyword arguments '{'note_t': 'note_1 opeth', 'user_name': 'opeth'}' not found. 0 pattern(s) tried: []

I have a link to note detail page (s_note) in the user page (username). So as long as I have no entries(notes) in the database for the user the user page renders fine, but as soon as there is a valid note the render fails with the above error and…
0
votes
1 answer

Django additional views in Django admin - URL trouble

I'm adding an additional view to django-admin. My goal is to override the change_form to make the fields read only and add some custom forms to it for working with the foreign_key objects, and to also have an edit page which would be the additional…
henryaaron
  • 6,042
  • 20
  • 61
  • 80
0
votes
1 answer

Could not save product object to database

I get an error while trying to post store, product, category and merchant data. The error is ValueError at /api/stores/create/ save() prohibited to prevent data loss due to unsaved related object 'product'. The code class Store(models.Model): …
milan
  • 2,409
  • 2
  • 34
  • 71
0
votes
0 answers

Issue with urllib.request.urlopen in Python 3

I'm making a website using Django 1.9.7 and Python 3.5. As one feature of the site, I'd like to let a user save a picture to a page by adding a URL to a form and clicking "Save". Before adding the picture where it'll ultimately go, though, I want to…
0
votes
2 answers

Django 1.9 forms not displaying in template but CSRF token is

I'm working on a Django project and I'm having issues with my Model Forms rendering in my template. I've read through the documentation, tutorials as well as searched here; particularly this post here someone had with their input fields not showing.…
0
votes
2 answers

django1.9 does not load css from static admin

I am currently using django version 1.9. I try to create a new superuser then I run the server and try to login through the browser by navigating to 127.0.0.1:8000/admin, but the django admin page seem does not have any css. When i do inspect…
Ken Phanith
  • 53
  • 1
  • 6
0
votes
2 answers

Django : Recreating all the tables for app in Django 1.9 version

I have tried using ./manage.py migrate app_name zero command which was proposed but i keep on getting errors after i run python manage.py migrate testapp. My last solution would be to go to mysql drop entire db Operations to perform: Apply all…
Bugs
  • 115
  • 1
  • 10
0
votes
1 answer

Installing Django 1.9 on IIS8

Does anyone know a guide on how to configure a Django project (django 1.9) to IIS 8.5 on a Windows server 2012R2? I previously had projects working on IIS 8.5 using django 1.8, but we decided to move on to 1.9 and now all I get are HTTP Error 500.0…
JC203
  • 384
  • 7
  • 18
0
votes
1 answer

Tastypie for mongoengine in Django 1.9+

Can you suggest any python-django library that allows serving mongoengine model data from tastypie. django-tastypie-mongoengine is obsolete & now unmaintained and throws error with Django 1.9, but works fine with django 1.8. Following is my django…
Gagandeep Singh
  • 827
  • 1
  • 7
  • 11
0
votes
1 answer

I can't use basic expression of jinja2 in the template with django 1.9

I'm using django 1.9 with jinja2, I installed the module django-jinja and I load the template well, but I can't use the basic filters of jinja2 in the template and I can't use any basic expression of jinja2. When I try to use some basic expression…
norbertoonline
  • 351
  • 1
  • 12
0
votes
1 answer

Django slow autoreload due to check_url_config system check

My load and autoreload on python manage.py runserver is taking a lot of time. (25seconds+). I did a bit of digging and it seems to be stuck on "Performing system checks..". To investigate more, I added timer on each of the check…
mithuntnt
  • 507
  • 1
  • 5
  • 17
0
votes
0 answers

Image not uploading on server while it is working well in localhost

I am trying to save an image to a folder when a user uploads the image and submits the signup form. In models.py image = models.ImageField(upload_to=upload_location, null=True, blank=True) I have used a function upload_location to upload the…
Vardan
  • 454
  • 1
  • 5
  • 18
0
votes
0 answers

Django moving from sqlite to postgresql sessions issue

I just attempted to migrate my django (1.9 with python3.4) app from Sqlite3 to Postgresql. Upon migrating ./manage.py makemigrations "app" and ./manage.py migrate and then use loaddata to load back all the users, everything seemed to work find.…
dylan7
  • 803
  • 1
  • 10
  • 22
0
votes
3 answers

Using urls in Django 1.9

I'm using Django 1.9.7 with Python 3.5.1 I'm rather new to Django, building a simple application. I currently have an issue with URLs. I would like to have the following behaviour: if user gets to http:.../entry/2016/03 he sees data for March…
jnc
  • 47
  • 1
  • 3
0
votes
1 answer

Django - Use forloop.counter0

I would like show element in my list on template html like that : {% for row in list %} …
Nosmoz RG
  • 15
  • 3
{{ row.0 }} {{ row.1 }}