Questions tagged as 'django'

1
answer

UpdateView django

Hi, I would like to know if I can paginate a Django UpdateView as I can do it. I have the following code but I do not know how I can paginate it. class RoutingForAniGroupUpdate(UpdateView): model = RoutingForAniGroup template_name = '...
asked by 08.06.2018 / 00:20
0
answers

Users with groups not receiving permissions

I have created a series of users with different permissions in a Django application. Each user is assigned a group, which contains permissions. With those permits, I plan to give access or not to certain web pages, but for some reason the users...
asked by 28.05.2018 / 11:44
0
answers

Filter values of a field from a list [...] - Query Django

class Grupos(models.Model): grupo = models.CharField(max_length=300) familia =models.CharField(max_length=300) fg = models.CharField(max_length=300) status=models.IntegerField(defaul...
asked by 27.05.2018 / 05:27
2
answers

Query Django without repeating results

Good afternoon I use Django 2.0 in an application to control attendees to an event, the idea is to generate a report of attendees, using the Assistance model, regardless of having more than one record, and the result of the query thrown me peo...
asked by 26.05.2018 / 00:07
0
answers

Django does not send emails through SendGrid (Heroku)

I have a server in django version free I am doing development tests and it turns out that when I want to send an email from for example /accounts/password_reset/ does not work, but if I use the django.core.auth.mail -> send_mail...
asked by 21.05.2018 / 09:26
1
answer

Save model with many-to-many field using CreateView

I have the following problem I have two models one Themes and another Videos have a relationship much to many already that a video can deal with different topics, the problem is that when saving a video I do not give any error and I am saved but...
asked by 16.05.2018 / 04:23
0
answers

Explain the operation of transaction.atomic ()

I am starting a project in django and looking at examples I see that they use transaction.atomic () to save in the database but I do not understand exactly how it works.     
asked by 15.05.2018 / 19:14
0
answers

Convert a SQL query to JSON and iterate it in Django

I have a query that I perform on a link to an API and it returns a result in STRING, what I want to do is convert it to JSON and iterate it to be able to handle each result of that query individually. Right now in the views I have: url = "h...
asked by 15.05.2018 / 10:19
0
answers

How can I use the field of a foreignkey that I have in the extended dl User that Django brings?

I'm using the user that brings default Django and expanded it with a foreignkey, here's the code: #*---usuario/models.py from django.db import models from django.contrib.auth.models import AbstractUser from app.organigrama.models import unida...
asked by 21.05.2018 / 23:50
0
answers

"python" is not recognized as an internal or external command, program or batch file executable

I have an error and I do not know how to solve it. When I try to execute the python command this error appears in the cmd "python" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. I have a...
asked by 11.05.2018 / 15:07