python - File upload - Bad request (400) -
when try upload file via filefield of model using django administration following response django development server:
<h1>bad request (400)</h1> the output in console is:
[21/jul/2013 17:55:23] "post /admin/core/post/add/ http/1.1" 400 26 i have tried find error log, after reading few answers here think there nothing because django prints debug info directly browser window when debug=true (my case).
how can debug problem further?
in case leading '/' character in models.py.
changed /products/ products/ in:
product_image = models.imagefield(upload_to='products/')
Comments
Post a Comment