Questions tagged as 'django'

1
answer

Store large hours in python

I have a variable in a table of my model that is called duracion that is of type TimeField , there I will store the total duration of the calls, both in hours, minutes and seconds, that a person makes in a period of time. The proble...
asked by 04.06.2016 / 17:51
1
answer

Field type Date Field in python?

I have a table that has a date field that only collects the date. My question is how to specify the format in which that date will enter. If this is the 01 MAR 2016 format, how do I specify it is day, month and year? Example : fe...
asked by 20.05.2016 / 21:06
1
answer

Error loading heroku on django

I have a problem regarding django with heroku, I already perform the whole process in the correct way, but when loading the page I get the Application error view, I go to the logs, and I do not understand where the error is, or how to correct it...
asked by 30.03.2016 / 21:14
2
answers

I have a project with several app and it is giving me "ProgrammingError: relation" auth_user "does not exist»

I have a project with several app and you are giving me this error    django.db.utils.ProgrammingError: relation "auth_user" does not exist I've already tried putting    python manage.py migrate       python manage.py makemigrate...
asked by 24.05.2016 / 19:27
1
answer

Problem with Ajax form in Django Template [closed]

How can I access the dictionary if django makes the key unique, since it is necessary to send a json with arrays? This is my Ajax code in a Django template <script type="text/javascript"> function RegistrarAperturacaja(){ alert($...
asked by 03.03.2016 / 21:55
1
answer

Update django record in short period of time (ms)?

Greetings I hope you can help me with this topic I would really appreciate it! The situation is as follows: In my project django I have an endpoint in which the client connects makes a request to update a record in the db. The endpo...
asked by 13.09.2016 / 16:42
1
answer

Generate a dictionary from the models

I am working in Django and I have 5 models: Company Agent Sensore Template Data There are several relationships as fixed in code. What I want is to generate a dictionary like this example in the Views: { "Empresa": { "Agen...
asked by 01.01.2019 / 18:50
1
answer

Enable and disable a ModelChoiceField with django-material (Materializecss) in Django

Good afternoon, I'm new to Django, and I'm trying to create a web design with Material Design, using django-material, a package for Django forms that apply this style, and I have the following problem: What I want to do is how well it puts in...
asked by 05.04.2017 / 20:04
1
answer

How to play videos with the Python IO library?

I would like to play a video that I get from an ftp server, at this moment the file is being saved on the server but I do not want it to be saved but to be played immediately. They told me that with the library io it can be done but I would l...
asked by 04.04.2017 / 23:11
1
answer

How to filter in a serializer?

Hello, good morning, I want to obtain in a webservice / Api all the appraisals depending on the agency, I'll leave them as I have until now These are my models class Agencia(models.Model): nombre = models.CharField(max_length=50,) razon_soc...
asked by 06.04.2016 / 19:56