perhaps something from this post can help -
http://mariogudelj.tumblr.com/post/16717808643/custom-upload-to-path-in-django
On 22 January 2012 21:41, Tony Kyriakides wrote:
> (in the terminal)
> python manage.py syncdb
>
> On Jan 21, 8:57 am, cha wrote:
> > Hello I reading this tutorialhttps://
(in the terminal)
python manage.py syncdb
On Jan 21, 8:57 am, cha wrote:
> Hello I reading this
> tutorialhttps://pype.its.utexas.edu/docs/tutorial/unit6.html#answers
> it's work OK But When I want improve it and add ImageField in Category
> Model i have problem with ImageField It's Not uploaded
I haven't really read your mail but after you added the imagefield to
your Category model did you drop the category table and then syncdb?
On 1/21/12, cha wrote:
> Hello I reading this tutorial
> https://pype.its.utexas.edu/docs/tutorial/unit6.html#answers
> it's work OK But When I want improve i
Hello I reading this tutorial
https://pype.its.utexas.edu/docs/tutorial/unit6.html#answers
it's work OK But When I want improve it and add ImageField in Category
Model i have problem with ImageField It's Not uploaded
file = models.ImageField(upload_to='img/%Y')
see code please :
_
views.py
4 matches
Mail list logo