Questions tagged as 'django'

1
answer

Paginacion does not respect filters in django

Hello, I hope you are super, it happens that I am new to django and I am making a page in a listview. Up there all right, add a search filter by dates and filter without problem. But when I use the next page I have done the filter, it shows me a...
asked by 18.06.2018 / 18:55
0
answers

Django + Models from existing database

Hi, I'm working on a project that I have a database in postgresql and my client needs to also work with an existing database on sql server that has about 150 tables of which I only need about 20, my question is Can you create the model of only...
asked by 12.06.2018 / 20:01
0
answers

How can I use Form Wizard in Model Forms with django?

I want in the same template to capture 3 different forms through a step by step (steps). I did it initially with dividing the forms to capture, but I keep losing info of the first, or second step ... I was looking at something from Form Wizard i...
asked by 15.06.2018 / 16:31
1
answer

Multiple Database django

Hi, I'm new to django, I'm working on a project where I use sql server 2008 myself, but I have a problem where I'm going to put the application will not always be connected to the same database server or to the same database data because they ha...
asked by 19.06.2018 / 21:15
0
answers

Check in the database only the fields specified in the serializer django-rest-framework

I have the following serilizers class MarcaSerializer(serializers.ModelSerializer): class Meta: model = Marca fields = ("codigo",) class AutoSerializer(WritableNestedModelSerializer): marca = MarcaSerialize...
asked by 20.06.2018 / 00:37
0
answers

Error when extracting text from a tesseract image django

I have tried different solutions to extract the text of an image, the code I use is the following: import pytesseract from PIL import Image, ImageEnhance, ImageFilter from pytesseract import image_to_string #url imagen path...
asked by 06.06.2018 / 00:38
1
answer

How to extract text from a SCANNED PDF in Python

I have the following code that extracts or separates the pdf in images, the idea is to extract a specific page and from that image obtain the text. #extrae imagenes desde pdf import sys #definimos el pdf ->path pdf = file(path, "rb").read(...
asked by 04.06.2018 / 19:52
0
answers

Capture a select value in a view of django

I do not know how to capture the value of a select from a form created from a ModelForm. in the template: <div class="form-group"> <label for="{{formulario.cod_sucursal.id_for_label}}"> {{formulario.cod_sucursal.label}}</labe...
asked by 05.06.2018 / 22:06
1
answer

Formats in a DateField working with a Rest Framework serializer

I have a problem with a date (DateBaja) because in this case it is a field that can be blank. In the frontend I use a datepicker for that date field, the format of the datepicker is specified to dateFormat: 'dd/mm/yy', But the format i...
asked by 05.06.2018 / 18:30
0
answers

How to pass more than one argument to a function from the Django plate?

Normally I use the form that is shown in the documentation in my case it would be like this    {% url 'student: make_theory' temario.pk%} and so it works well, the problem is that I want to pass in addition to temario.pk the current time...
asked by 29.05.2018 / 13:15