Questions tagged as 'django'

1
answer

Django: url error when saving a record from admin

I tell you my problem. I am deploying a web (Python 3.4 and Django 2.0.4), it has already saved data in several models from the admin panel logged in as superuser, but when I came to an app called About, with a model of the same name, I is ju...
asked by 14.09.2018 / 11:23
1
answer

Error django_session

I am deploying my application and when I try to login it gives me this error, my application works with 2 database 1 with postgresql and the other sql server that is on an external server, the users are at the base data postgres , t...
asked by 19.09.2018 / 15:54
1
answer

Upload an image with django 2.0

I need to upload an image in the administration site or in another html page, I have a model which has an ImageField attribute, I need once it is assigned an image to be able to visualize it. Thanks in advance to any help     
asked by 13.09.2018 / 19:42
1
answer

sproblemas with what to load the ccs and js

I am working with the web and while I am without an internet connection everything is shown as well but when connecting to the internet the tables lose styles and some things are distorted I am working with datetable.js and I do not know what...
asked by 11.09.2018 / 21:00
0
answers

fill out two forms (one to edit and one to create) in a single template in django?

My question is this, I have two forms to edit and the other to create and I want them to be in a single template, and been trying to make it work but nothing comes out, the template itself does not show any form. here I leave the reference code...
asked by 11.09.2018 / 21:39
0
answers

how to create streaming video in python?

I'm new to this, I've consulted but I'm not sure how I can resolve to integrate a streaming video in django, how can I start streaming django, what do I need to start transmitting video, what suggestions do I have? can do, to start a project   ...
asked by 05.09.2018 / 23:26
3
answers

readonly field django forms

How to make a form field read only (readonly) in django if I have a select in the form type ModelChoiceField , and in the Model it is equivalent to an attribute type ForeignKey been dealing with this but it does not work: class CostoFo...
asked by 17.09.2018 / 18:02
0
answers

encode image in python

I need to code an image and save the generated text in a database, then I need to be able to load that saved text, re-encode it to an image and display it in html. Thanks to any help     
asked by 17.09.2018 / 18:29
1
answer

django forms does not insert data

I have a form with a model related to several models, create the form and it is well displayed, but when you submit, nothing happens, that is, the data is not saved in the db, I use python 3.7, django 2.0 and mysql: Model class Proyecto(...
asked by 31.08.2018 / 18:18
0
answers

Edit Choice error in Django Model

I have the following model: class Producto (models.Model): id = models.BigAutoField(primary_key = True) nombre = models.CharField(max_length = 32) estado_rev = models.IntegerField(choices = CHOICES_ESTADO_REV, default = CHOICES_EST...
asked by 11.09.2018 / 11:03