Do you actually see anyfiles uploaded under static/finale if you manually browse the folder? or is it empty ?
On Thu, Aug 30, 2012 at 7:54 PM, Dott. Tegagni Alessandro < tefari....@gmail.com> wrote: > I have a project created with cms Django, and in this project i must > upload a image and pdf file. the code in models.py is as follow: > http://dpaste.com/793672/ > > > > The file with this step to upload, is inserted in correct folder, but the > file not work. > > In Administrator panel, when i click on image or pdf file, that i > uploaded, the browser tell me Page not found (404). The current URL, > home/alessandro/Scrivania/progetto/static/finale/header_blog.jpg, didn't > match any of these. > > I have verifed the permission, but i have in default chmod 777. > > Any ideas? > > I have follow also this tutorial youtube:Video From > Yt<https://www.youtube.com/watch?v=mQ7RAhaehs0&list=UUkLMlkrce5Ce_ujCWGuF5oA&index=18&feature=plcp>I > have the same code, but not result. > > Any Ideas? Where is my error? > > I can send the zip folder with the project, if you want. > > > I try, also, edit the code of models.py in: > http://dpaste.com/793673/ > > > but the error there is.Now, I think what I not write correctly the > configuration in settings.py. Media_Root, Media_Url, Static_Root, > Static_Url are empty. There parameters should not be empty, true? I > developer in localhost (on Linux/Ubuntu), web server Apache. What should i > write as configuration? > > With second link, the result is: The object albax with primary key > u'20/static/finale/Magic_green_bus_1.jpg' not exits. > > But the Image file, there is in correct file. > > Or the Problem is in urls.py, the code is: http://dpaste.com/793124/ > > > Any Ideas? > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/tb3nq6Kyux4J. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Thanks & Regards ---------------------------- Amyth [Admin - Techstricks] Email - aroras.offic...@gmail.com, ad...@techstricks.com Twitter - @a_myth_________ http://techstricks.com/ -- 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.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.