Sunday, September 2, 2012

Re: Upload Image and pdf file

The file urls.py is: http://dpaste.com/795211/
If it is the help.


Il giorno domenica 2 settembre 2012 14:51:21 UTC+2, Dott. Tegagni Alessandro ha scritto:
The folder is empty.

Il giorno venerdì 31 agosto 2012 08:47:55 UTC+2, Amyth ha scritto:
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 <tefar...@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 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...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@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....@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 view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/e71T4Wq6uBkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment