Questions tagged as 'django'

1
answer

Django help Mix 2 tables and render in template

I'm having a problem while continuing to develop a project in django which consists of doing test questions ... I have seen the need to use 2 tables of my models.py a table Question and other table Options, the problem is that I can not get t...
asked by 12.05.2018 / 16:09
0
answers

Problems with PyPDF2 and wand

I'm trying to show a preview of a pdf loaded via form. I also share the error when I try to do python3 manage.py makemigrations A help is greatly appreciated. Python Version: 3.5 Django Version: 1.11 Now I share the cod...
asked by 10.05.2018 / 20:53
1
answer

How to consume API Rest Django using angular?

I am new to python and I am starting to develop a web application with django, I would like to use angular in the frontend but I have not found a simple example where they explain how to integrate them correctly. Any recommendation would be v...
asked by 09.05.2018 / 00:35
1
answer

do search with Django and JQuery

I'm trying to create a product search engine my model is this class Producto(models.Model): nombre = models.CharField(max_length=50, null=False, blank=False) categoria = models.ForeignKey(Categoria, null=False, blank=False, on_delete=models.CA...
asked by 06.05.2018 / 07:51
0
answers

Why do I get this error when installing the reportlab library in django 1.11?

I want to use what is the Reportlab library in django, but I get an error when trying to install it I use the pip install reportlab command because this is developing in a windows environment. But this error comes out when you are installing...
asked by 04.05.2018 / 16:22
2
answers

How to use ViewSet to return templates in django

I'm new to python, I've reviewed how class-based views work but I find it tedious to have a generic view for each action, for example to get the ListView list, to create the CreateView and so on. class CrearUsuarioView(CreateView): model = Use...
asked by 08.05.2018 / 23:52
2
answers

How can I iterate the following data dictionary in Django

I have the following models in python: class ModuleType(models.Model): name = models.CharField(max_length=150, unique=True) icon = models.CharField(max_length=100, unique=True) state = models.IntegerField(choices=state_choices, def...
asked by 24.04.2018 / 23:56
1
answer

Django ModelForm filter according to another field

I am trying to make the drop-down list of a field change according to what you have selected in another field, in my case it changes the state according to the selected municipality, that is to say that only the states corresponding to that muni...
asked by 04.05.2018 / 16:58
0
answers

how to modify action form? Django

I have this form in a template: <form method='POST' action='{% url "proceso-compra" object.slug %}'> {% csrf_token %} <span>TALLA </span> <select name="talla" id='id_t...
asked by 30.04.2018 / 10:42
1
answer

import multiple models in another Django 2.X model

I am trying to create a form for my project with Django 2.0, with Python 3.6.4 in Windows 10, but when using a reference of some models of another app it tells me that it does not exist or that it is not defined, in a similar question said that...
asked by 23.04.2018 / 21:15