I am new to django and confused about the setting of static files. Under the django's server, the png which located in my app's "static/" subdirectory displayed correctly in webpage. But when it goes to apache, no image was found. What is the matter? Version of django I use is 1.3. All settings related to static and media in "settings.py" are the default value. I just put the image files in "static/" subdirectory of my app. Eagerly for your help.
Asked
Active
Viewed 566 times
2 Answers
0
You have to configure Apache to do it. These links will put you on the right track:
bchhun
- 17,456
- 7
- 27
- 30
0
Actually, since django 1.3, django has had a static files feature.
https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/
And BTW, mod_python has been depreciated for mod_wsgi for django apps.
https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/
Levi Campbell
- 5,903
- 7
- 38
- 47