How to timestamp with MySQL?

2009-01-15 Thread Marc Barranco
Hi there, I created a model with a date field in order to have a timestamp of when has been the last modification of the object. As in the basic tutorial I wrote my model as: data = models.DateTimeField () Wich should be in SQL: "data" timestamp with time zone NOT NULL (ref:

Re: Problems with file upload and model forms

2008-11-21 Thread Marc Barranco
Oh yeah!! It was that! Thank you veru much Alex :) I forgot to put the template code, Here it is (mayb useful for some other): --upload.html-- {% for field in form %} {{ field.label_tag }} {{ field }}

Problems with file upload and model forms

2008-11-20 Thread Marc Barranco
Hi! I'm trying to upload a file like the example in documentation in Django (http://docs.djangoproject.com/en/dev/topics/http/file- uploads/) with the "Forms from Models". But I can't upload the file because the form always return the error "this field is required" although selecting a file