I have reviewed the document
https://docs.djangoproject.com/en/dev/topics/db/queries/
but I can not insert the field users, the models.py table, I try as
follows, is this what was spinning in the other issue, not the
complete code, thanks:
for i in request.POST.getlist('usuarios'):
usuario=Use
Thanks you¡¡¡ I'll try to see if it works
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.co
Hola, bueno les explico mi problema, tengo 1 tabla que tiene el
siguiente modelo:
class Proyectos(models.Model):
titulo=models.CharField(max_length=100)
creacion=models.DateField(default=datetime.datetime.now)
estado=models.CharField(max_length=30)
objetivo=models.TextField(null=Tr
Sorry xD
Hi, i wrote the same text in a Spanish blog xD, well I explain my
problem, I have a table that has the following model:
class Proyectos(models.Model):
titulo=models.CharField(max_length=100)
creacion=models.DateField(default=datetime.datetime.now)
estado=models.CharField(max_l
Thank very much, but I don't know what's happen.
I execute the next code and it's doing nothing :
if request.POST.get('usuariosDelete','')!='':
for i in request.POST.getlist('usuarios'):
usuario=User.objects.get(id=i)
datos.usuarios.remove(usuario)
--
Hello, I have a question that I have not been resolved, well three,
took
and a few days researching the subject,
but this being impossible I would appreciate your help, as they are
the last 3 points I have left to complete a project:
I have the class:
class Proyectos(models.Model):
titulo=mod
My last question is whether anyone can tell me how to upload files
of any kind, not just image.
I've got the image, changing the picture of a user (in
my program)
but do not know how to upload files ...
Thanks in advance.
--
You received this message because you are subscribed to the Google G
I get that it was not necessary to press the button "Save"
for the sbmit.
Do so without having to press the button(save or enter), that when you
pass this
sequence is executed automatically.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
Hi, I am finally going to finish the project started and where I end
up liking this xD Django that the problem I have is the clearing of a
field.
I have the following tables.
class Proyectos(models.Model):
titulo=models.CharField(max_length=100)
creacion=models.DateField(default=datetime.d
I try to make this using delete, remove.. Also I using too
if request.POST.get('experimentosDelete','')!='':
for i in
request.POST.getlist('experimentosDelete'):
exp=Experimentos.objects.get(proyecto=datos,id=i)
exp.experimentos=[]
...
10 matches
Mail list logo