Questions tagged as 'django'

1
answer

Independent database architecture for each client

Objective. I have to develop a project with Django and I want it to have the following characteristic: for each company or client (whether company or not) that uses my system, I want a database to be created independent. Basically what I wa...
asked by 02.07.2017 / 05:47
1
answer

CommandError: Can not find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed

When wanting to execute the command django-admin.py makemessages -l en It shows me the following:    CommandError: Can not find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. I find myself using: Windows 7...
asked by 03.07.2017 / 05:16
1
answer

Help with select_related (),

I know I add a foreingKey in TableB and the TabalC I can solve the problem ... quickly but I want to know if there is any way that works and me paint the price in the html class TablaA(models.Model): nombre = models.CharField(max_length=5...
asked by 04.07.2017 / 05:45
1
answer

Error generating PDF in Django

Good afternoon I have an application in Django 1.10, in which one of the functionalities is to generate some PDF documents for which weasyprint use. When I run the server and access from the machine locally the PDF is generated without any probl...
asked by 11.06.2017 / 00:04
1
answer

How to open a pdf file with Django?

I'm new to Django, I'm using Windows 7, Django 1.11 and Python 2.5.2, I need to open a PDF file from the local disk, when I click on a button How can I achieve that action? Thanks     
asked by 09.06.2017 / 22:32
0
answers

how to link a url on a button inside a jquery function

with a jquery function I fill a table with the data I need and I have two buttons in the table one for the details of that element and the other to edit it that will allow me to access a url given the element listed in the table, as I do to link...
asked by 10.06.2017 / 18:11
0
answers

Django: how to get option value from createview class using a form?

I am using CreateView to create objects, but at the same time I need to update another model with the data of a select, but getting the value : views.py: @method_decorator(login_required, name='dispatch') class BitacoraCreateView(Crea...
asked by 06.06.2017 / 23:28
1
answer

Ajax "fail" function does not read reply Json

Depending on whether the form is valid or not, " success " or " some errors " should appear in a div with id="results" . The problem arises when the form is not valid. In the " fail " Ajax function, only the " alert " is executed an...
asked by 13.06.2017 / 18:27
1
answer

How to configure the path for geckodriver in Ubuntu?

I'm doing a TDD tutorial on Django and selenium. I'm using Ubuntu and the first part is to run the following code: from selenium import webdriver browser = webdriver.Firefox() browser.get('http://localhost:8000') assert 'Django' in browser.ti...
asked by 04.06.2017 / 23:35
1
answer

Problem with multi-table inheritance in Django

I have a problem implementing multi-table inheritance in Django. In my file models.py I have the following model that is the father: class Concepto(models.Model): id_concepto = models.IntegerField() And these are his children: class E...
asked by 16.06.2017 / 16:45