To see the static files (images and pdf), I defined STATIC_DIRS with values ββcontaining the directory names where I load these files:
STATICFILES_DIRS = (
'/ home / alessandro / Scrivania / progetto / media / photos / custodia /',
'/ home / alessandro / Scrivania / progetto / media / definitiva /',
'/ home / alessandro / Scrivania / progetto / media / proforma /',
'/ home / alessandro / Scrivania / progetto / media / fpdf /';
)
In STATIC_URL:
STATIC_URL = '/ static /'
In installed applications:
INSTALLED_APPS = (
....
'django.contrib.staticfiles',
)
Permissions - 0777.
Now, when I want to see the image or files in pdf format, I get this error message. Page not found
I use this URL:
Http: //127.0.1: 8000 / home / Alessandro / Scrivania / Progetto / media / photo / Custodia / powered_by.png
Any ideas? Why does this problem occur?
source share