Questions tagged as 'django'

0
answers

Pydev Django when restarting server does not reload changes made in html

Good morning, I'm just starting in the development of web python, I'm using Eclipse and working with Pydev, I'm working with a project downloaded from a repo where my task is to create a form and integrate it into the template used in the projec...
asked by 12.03.2018 / 01:42
1
answer

Why do you show me the error 'NoReserveMatch' in the reverse method by passing it by parameters the name of a url that supposedly is correct?

Previously I was working on Django in its version 1.11 and go to version 2.0 This brought with it that some tests that I had defined do not work for me. Below I put the code of one: from rest_framework.test import APITestCase from djang...
asked by 06.03.2018 / 21:16
0
answers

Django social auth validate user manually

I am using social auth of django with pipelines to get the email from social networks, but when I log in with facebook and then with google I am created two different accounts with the same mail How can I avoid this by sending a message...
asked by 06.03.2018 / 21:30
1
answer

is it possible to make a pivot table with the Django models?

Is it possible to create pivot tables in the database with the Django models ?, I need to create a table of that type to relate emails and telephones of a database in the tables of employees and clients Is it possible to create these table...
asked by 02.03.2018 / 20:10
2
answers

How do I post a form of an extended model in Django

Create an app in django called employee class Empleado(models.Model): usuario = models.OneToOneField(User, on_delete = 'cascade', blank = False) cedula = models.CharField(max_length = 10) sueldo = models.FloatField() fecha_naci...
asked by 25.02.2018 / 23:07
0
answers

Access documents in the middle directory

I have a form that uploads several documents, but at the time of wanting to use them, I can not access them or the admin, I get an error 404, but the document is loaded to media_cdn. The project was made with django 1.10 Path of media_cdn    ...
asked by 02.03.2018 / 06:33
1
answer

Calculate fields in view and pass the query to the template

I am using Django 1.4 and I have a query that brings several data from the db, including one that can have 3 different values (type). Depending on this data I make a conditional and calculate some values (accommodation and diet) to send to the t...
asked by 24.02.2018 / 07:22
2
answers

How to delete Images or Videos saved in MEDIA_URL using Django

In the database the data is saved with the address that is in MEDIA_URL and they are deleted perfectly since the only thing that saves is the address, but the problem is that the files that were previously saved in MEDIA_URL, are not delete are...
asked by 23.02.2018 / 02:37
0
answers

Thread problem with Django and Celery Eventlet

I have a problem with an idea that I have in mind but to achieve it I need a lot of machine resources. The idea is this: Create a web system, with django, in which there are several users (suppose there are many); each user can create one or...
asked by 13.03.2018 / 02:01
1
answer

'_io.BufferedReader' object has no attribute 'size'

In my web application about Django I have this code: docPDF = open('publicaciones/Dictamen-'+nombreRevista+'.pdf','rb') dictamen.fileEsp.save(name=final_name,content= docPDF) However, the last line gives me an error:    '_ io.BufferedRea...
asked by 13.02.2018 / 15:34