Questions tagged as 'django'

0
answers

Error calling the url from the templateReverse

When I try to call the url from the template it gives the following error:    Reverse for 'all-add_list' with arguments '()' and keyword arguments   '{}' not found. 0 pattern (s) tried: [] I leave my url.py from django.conf.urls import...
asked by 01.06.2017 / 21:15
1
answer

ChunkedEncodingError with requests python

I am trying to connect to an API to receive data that I will use in my app. I use Django 1.9 next to Python 2.7 and I have the project mounted locally with the Apache server, using the < strong> mod_wsgi . To make requests to the AP...
asked by 30.05.2017 / 11:51
0
answers

Error in Django: no such table

You see, something is happening to me in django that the tables I try to create are no longer detected: I get this error message: Traceback (most recent call last): File "C:\Users\pcx\AppData\Local\Programs\Python\Python35\lib\site-packages\...
asked by 26.05.2017 / 17:09
0
answers

Import xml data in django with libxml2

I need to import to xml the comments I have in the mysql database. To do so I use libxml2 library. It seems that the error is in showing the generated xml. This would be the XML that generates     asdf views.py f = urll...
asked by 04.06.2017 / 17:00
1
answer

Problem with django-bootstrap3

I have installed Django 1.11 and django-bootstrap3 in version 8.2.3 by pip. I'm making a simple application that carries a form. Reviewing the online documentation I saw that the configuration of Bootstrap 3 must be added in the settings.py as f...
asked by 25.05.2017 / 20:53
2
answers

To know the originating user of an email message through DJango

You see, in my DJango program I give an option to the user to send a message that will be sent to an email. Code in settings.py: EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = '[email protected]...
asked by 23.05.2017 / 17:27
0
answers

The Debug Toolbar module interferes with images

You see, I have installed a module called "debug toolbar", which is used to view DJango performance data. When I'm in the Admin it works without problems, but if I'm in a view where images are shown, it causes an error: 'ImageFieldFile' object...
asked by 18.05.2017 / 20:29
0
answers

How to use the admin Widget to add items

I am a beginner in this, the query is how I can add in my form the image of "Edit" and "Add" in a choice field and I opened in a pop-up the form of that model to add it. As Django admin does but I would like to do it from my form. Thank you....
asked by 23.05.2017 / 20:14
0
answers

Django with PyInstaller

Dear, I am trying to compile Django .exe with PyInstaller. The installation of Django and PyInstaller is fine, when I compile it also does it well: $ pyinstaller --name=mysite mysite/manage.py But the problem is when I want to run the .exe...
asked by 13.05.2017 / 14:33
0
answers

Django dynamic combobox

The query I have is the following: Example of the model class Marca(models.Model): marca = models.CharField(max_length=30) class Modelo(models.Model): modelo = models.CharField(max_length=30) marca = models.models.For...
asked by 13.05.2017 / 01:18