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...
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...
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...
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...
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
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...
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...
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...
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...
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...