Questions tagged as 'django'

1
answer

Celery does not perform some tasks

In a Django application I try to send emails asynchronously using Celery, the tasks objects are created, but they do not reach Celery. Here is the id of the created tasks: 0: d51a86c2-219d-44a5-a004-2ff00f13f229 1: 47979e10-643c-4ced-808a-...
asked by 19.12.2016 / 23:50
1
answer

Django deployed in Heroku. Administrative interface does not look good

What the title says. When I enter / admin (administrative area) it looks shameful. There's nothing like it in local mode. How do you make the administrative area look like it is in the local area?     
asked by 04.11.2016 / 11:24
2
answers

mportError: No module named trunk.pife.pife.settings in Django

Good afternoon, I'm doing a project in Django, which is directly imported from a Subversion, once installed all the requirements that I am required to compile the project but I get these errors. Someone who knows how to solve it? Thank you ve...
asked by 20.09.2016 / 12:52
2
answers

I want to use ajax and json so that before sending my form I validate if a field already exists in the database?

Hi, I need someone to help me validate, if a field is already existing in the database before sending the form and if so send me a message and return me to the form as I do? Look, this is my view that makes the process: def inventarioingres...
asked by 29.09.2016 / 21:51
1
answer

How can I send a message when I redirect to the page?

my question is how can I do so that if a record is inserted correctly, when redirecting me it shows me the registration message inserted correctly. This is the view that redirects me: @login_required() def inventarioempaque(request): em...
asked by 30.09.2016 / 19:40
1
answer

Django, query summation of one table to another connected to the foreigner

I have the following models: class Articulo(models.Model): nombre = models.CharField(max_length=80) costo = models.DecimalField(max_digits=6, decimal_places= 2) precio = models.DecimalField(max_digits=6, decimal_places= 2) famil...
asked by 25.10.2016 / 18:21
1
answer

Template does not show me the form made with ModelForm in Django

I'm doing a small ToDo app to start practicing some things in Django and I found this little problem that I do not know how to solve until now. I am using python 3 and django 1.10 models.py from django.db import models from django.forms...
asked by 09.08.2016 / 17:19
2
answers

Modal window to create new record

I'm trying to implement a modal window like Django does with the + sign, I already see the modal window but I have a problem I do not know how to load the froms.py since I do not have the text box. I already have in a part of the menu the...
asked by 18.08.2016 / 01:57
1
answer

Is it possible to display an image from a TextField () field? [duplicate]

Can I show images by inserting the link in a TextField () field ?? The link to the image does work but when I insert it in the body of the post (variable text = models.TextField () ) it appears as text only. Can not this be done with TextF...
asked by 03.08.2016 / 17:25
1
answer

Deploy django in hosting

Hello, how are you all! I am making progress in the development of applications with django, and the time has come to perhaps pass the biggest test: the deploy in a web server. As I am interested in learning about the progress, my intention i...
asked by 15.09.2016 / 05:18