Good afternoon friends of stackoverflow.
I have the following question as to how I can obtain the value of a field by means of a query in a model of a database please.
Here is the code.
Views.py
class UserFormView(View):
form_class =...
At the time of the server startup, the link in the url shows that the "templateDoesNotExist" does not exist, but it exists in a folder called directory1
WEB:
TemplateDoesNotExist at / admin / login /
admin / login.html
Req...
Good morning
I am trying to change what I have done in forms to serializers and I find that with forms, depending on a date that is entered, it calculates another date for another field.
I have seen that the SerializedMethodField does what...
Good afternoon, as you can see I present the following problem:
error (1054, "Unknown column 'useriorol.id' in 'field list'") django 1.10
at the time of entering the administrator I select the useriorol option and I see this error. the admin....
Good morning for everyone. The error that comes up is the following:
At the moment I am trying to connect the database with django using mysql and the version of python 2.7.10 when using python manage.py and makemigrations in the end is as fo...
More than a problem is a doubt of not knowing what is happening, the logic is not very complex and the code at least by shell works well but when I want to write test to prove it gives me error and I would like to know why. .. the logic is as fo...
I'm trying to make a filter of a JSONField that has the following data:
[
{
"date": "2017-12-02T11:39:07.447677",
"staff": "payment_in_process"
},
{
"date": "2017-12-02T11:39:12.700590",
"state": "ASSIGNING",
"staff":...
I want to obtain the path of a file that I upload using a form but when printing the field returns a type None .
My models.py is this
class Insumo(models.Model):
nombre = models.CharField(max_length=50)
file = models.FileField...
I'm trying to work with Django and I could not. I can not access Django from the cmd.
Do we have to configure something in the path to work with Django?
- C: \ Django-1.10.8 \ django \ bin--
I have the correct path with Python, and add Django...
Hi, I am new using django, I am using python 3.5 and django 1.9 but after installing it and trying to create my first project it gives me errors that I do not understand, it is as if django was not installed but if it is? It puts me:
Traceback...