I'm trying to make a login button in Django to authenticate with a twitter api. The process I want to do manually and get information from the user.
I'm trying to do the following to get aouth_access
bearer_token_credentials = base64.ur...
I have Pillow installed, Django 2.1 and a model with an ImageField field that places the loaded images in the "images" directory.
In the form from the administrator I can load the image and it is stored in that directory (/ media / images), b...
hi I'm trying to make a sales system where to make a sale I need to open cash but I get the errors in my code of views amount = Decimal (request.POST ["amount"]), total = Decimal (request.POST ["total"]), difference = Decimal (request.POST ["di...
When executing:
(env) luis@ux-pc:~/projects/administrador-webapp-django$ python3 manage.py createsuperuser
Nombre de usuario (leave blank to use 'luis'): superusername
I get a Unicode error:
Traceback (most recent call last):
File "mana...
Hi, I'm connecting my application to an external database server sql server 2008 R2 and I can not connect, it gives me the following error
pyodbc.OperationalError: ('HYT00', '[HYT00] [unixODBC] [Microsoft] [ODBC Driver 13 for SQL Server] L...
I have a parent class where I have an attribute that I want to modify according to the child class:
class Service(models.Model):
# otros atributos
SERVICE_TYPE = {
'None': 'Unknown service type',
'visa': 'Visa',
}
ser...
When I fill out the form, the data stores it correctly in the database, but the form does not work again and the error "too many values to unpack" appears. What can I do?
Here is my template:
<div class="col-md-20 animate-box">...
django and I do not know how to sort this list by title order.
I'm using:
nuevo_json_array = sorted(json_array, key=itemgetter('oportunidad_json'))
[
{
'pk': 1
'oportunidad_json':OrderedDict([
('id',38441),...
I want to write a dynamic file that generated me a report in txt format, for this I created a function that returns the file and downloads it, but it is returning empty. Here part of the code:
file_content = "Este es el contenido de los report...