I've been facing the following problem. I got django 1.9 integrated
with apache 2.4+ via mod_wsgi application. I run manage.py collectstatic
and everything is fine when i use the root url.
Actually i will be redirected to my django app from the link This is my configuration
This is an example of my template:
The image giphy.gif cannot be served and i get the3 follwoing error: GET http://www.mydomain/static/images/giphy.gif 404 (Not Found) How can i work this around? Many many thanx for ur help |
You say that you "run manage.py collectstatic and everything is
fine when i use the root url.
http//10.184.2.231
it is ok and static files are
served properly", and then you say that
http://www.mydomain/static/images/giphy.gif gives 404 (Not Found).
Is http//10.184.2.231/
static/images/giphy.gif
working?
If not, why are you saying that "static files are served properly"?
Regards,
Antonis
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e2063b5e-9c9e-4802-9439-33e0c69304c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
http//10.184.2.231/
static/images/giphy.gif
works out properly but www.uibm.gov.it/
static/images/giphy.gif
does not work. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6115cee1-cb66-4594-83da-3a696ebc836b%40googlegroups.com.
Hi,
sorry but this is not clear. You have one server, 10.184.2.231,
that has both your django app and your static files?
www.uibm.gov.it seems to be another server, 88.49.250.43.
www.mydomain.com is a placeholder you are using for
www.uibm.gov.it?
Antonis Christofides http://djangodeployment.com
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com. To post to this group, send email to django...@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6115cee1-cb66-4594-83da-3a696ebc836b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.