I am learning python and I have discovered the concept of "list comprehensions" (I do not know if it has a Spanish translation).
I was doing tests to understand it and I did not finish clarifying myself.
For example, if I want to show the...
Very good friends, I have my custom context processor, so that it can be used in all the django project templates in the form of a variable:
{{ u_model }}
This is my context processor:
proccesors.py
from django.contrib.auth.decorator...
Good evening I have the following code:
The error that occurs to me is that when I print the size of self.widget.width() I get the value of 100 while in the QT Designer I show that the value is 450
The second error is that when you pas...
I have the following code where I initialize three variables g_turno , g_sucursal , g_fecha with any value.
These variables should change their value respectively when the following signals are activated:
self.turno_1.cur...
I have the following code, the result of the cursor returns the correct data, the problem that the comboBox does not show, is the correct way to fill it?
print([str(x[0]) for x in cursorUsuario])
['1', '4', '5', '6', '9']
self.dlg.com...
I would like an output like this: (I would prefer to use only while and Boolean expressions if possible.)
escribe un numero: -50
debes usar un numero positivo!
escribe un numero: -200
debes usar un numero positivo!
escribe un numero: 200
esc...
I have the following serializer:
class PerfilSerializer(serializers.ModelSerializer):
usuario = UserSerializer()
seguidores = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
looks = LookSerializer(many=True, read_only...
What I am using:
Operating system: Debian 9
Database: MySQL 5.5
Django 1.11.4
I execute the command:
python manage.py migrate
The following error message is displayed in the terminal:
django.core.exceptions.ImproperlyConfigured...