Questions tagged as 'django'

1
answer

Django show a List in a Template

I'm creating a program that pings a host, in a list I'm storing the results of the ping and I want to publish the result in my template but it does not show me anything and I do not know what I'm doing wrong, I hope you can help me the code i...
asked by 11.09.2018 / 07:25
0
answers

Reportlab + ajax generate pdf in Django

I have a problem when generating a pdf in django, I send the data of a template by ajax to the function that the pdf generates, but when I finish processing the data and build the basic pdf it does not send me the pdf. This is my views cla...
asked by 31.08.2018 / 23:24
1
answer

Connect forms

I have a form which works well, but I want that when I finish entering data and I register it, I send it to another form to attach information. This is my form: form.html: _ {% extends 'base/base.html' %} {% block title %}Django | Formular...
asked by 30.08.2018 / 20:29
0
answers

How to add the value to a field from a different model in Django?

Good afternoon guys from stackoverflow, my question is the following I am creating a simple user profile model and I want the email to be saved directly from the django-allauth email field. code. from django.contrib.auth.models import User...
asked by 30.08.2018 / 05:29
0
answers

Go through loop for nested in Vue.js

I'm starting with Vue.js and I can not find a way to run a nested for loop. I'm using it with Django, and what I'm trying to do is show all the elements (a list) that there is in another list (a list of feeds with their respective urls) This...
asked by 30.08.2018 / 12:01
0
answers

append new app

I want to add a new app to my project but I do not know how to do it. I already create the templates, my views, and urls, but I do not know how to do it to be attached. models.py (data) from django.db import models class Empleados(models...
asked by 28.08.2018 / 15:21
0
answers

Help with Django Form

I currently have this form to enter patients: class PacienteForm(forms.ModelForm): class Meta: model = Pacientes fields = '__all__' validar= forms.BooleanField(required=False) widgets = { 'nombres': forms.TextInput(at...
asked by 22.08.2018 / 19:07
0
answers

how to make angular "receive" or pull an html file, and from angular to python?

In a form of an HTML page with the tag input typye="file", in which you can select a file, this file is sent by email in automatic .. in my project I pull the data to angular and later by means of post I send it to python to send mail from py...
asked by 29.08.2018 / 21:28
0
answers

Emails are not sent from the application

I am sending emails automatically from an application in python, run the whole process but the email is not sent, I hope you can help me, I leave the code @csrf_exempt def tickets_canalizacion(request): try: conexion = conexion_db(...
asked by 20.08.2018 / 16:38
0
answers

how can I get a value that is within two dictionary

I have the value objeto={canal_venta} but if I print canal_veta it throws me {u'TEXT': u'RED', u'VALUE': u'RED'} that is, how can I access the sales channel value? I was trying this way, but it's wrong print objeto["can...
asked by 20.08.2018 / 15:09