Questions tagged as 'django'

1
answer

Deploy Django to Heroku - Push rejected

I'm trying to deploy a Django app in Heroku. When I execute the git push heroku master command the following appears: (uleague) ➜ pickapp git:(master) ✗ git push heroku master Counting objects: 195, done. Delta compression using up to 8...
asked by 18.03.2016 / 21:57
2
answers

Working with images in Django 1.9, my avatar is not shown in all my views

When I'm in a view other than editing users or creating users, it does not show me the profile image. Here when I'm in any of the views I have, it does not show me its profile picture example: view on products Source code: <img src='...
asked by 22.04.2016 / 23:30
1
answer

Django ImproperlyConfigured at

I am starting to use multitenant but I have not been able to move forward because I get this error: I have not changed anything in the URLs, I share my distribution of files: The main file urls.py of the project (pruebatenant)...
asked by 13.01.2016 / 18:03
2
answers

Error DeleteView

Hi, I have a problem with my DeleteView in Django 1.8, I get this error:    TemplateDoesNotExist at /eliminar_tipo_almacen/38/appkardex/tipo_almacen_confirm_delete.html views.py: from django.views.generic import ListView, Updat...
asked by 27.01.2016 / 02:17
1
answer

DJANGO DRF, Serialize related models

My problem is this: In my app I have the following models inside the 'models.py' class Carrera(models.Model): nombre = models.CharField(max_length=50) class Materia(models.Model): nombre = models.CharField(max_length=50) niv...
asked by 11.10.2018 / 17:10
1
answer

With Django 'str' object is not callable in class based-views

I have this problem when I want to access a URL that tells me that it is str object is no callable surely I have something wrong in the urls or a configuration of those but the truth is that I have reviewed all the files well and I do not...
asked by 31.08.2016 / 17:43
1
answer

How to add all the values of a column - Django

I would like to know how to add all the data in a column of my database. This is my model: models.py class Model(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, null=True) id = models.AutoField(primary_k...
asked by 01.09.2018 / 17:49
1
answer

Why will not django admin let me in?

I have a problem when starting the Django admin. When I'm going to put the username and password (which are the correct ones and with the creation of superuser) it tells me that one of the fields is not correct. What can I do in this case and...
asked by 02.09.2018 / 17:26
2
answers

How to filter the last entry registered by your user id - Django

Hello friends, I'm new to django. I would like to make a query to update the number field. What I want to do is filter by the user and filter by the last entry of that user, and then update the number field. The querysets I know are the fo...
asked by 23.08.2018 / 06:42
1
answer

How can I hide my alert within a modal in Jquery?

What happens is that I have a Finalizar compra button that when giving click and not being logged, a modal appears with the alert message    "You should sign up before continuing with your purchase" and I have another button...
asked by 26.07.2018 / 19:49