I am currently serving my static files in Django. How do I use Apache2 to do this?
- by alex
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
As you can see, I have a directory called "media" under my Django project.
I would like to delete this line in my urls.py and instead us Apache to serve my static files. What do I do to my Apache configs (which files do I change) in order to do this?
By the way, I installed Apache2 like normal:
sudo aptitude install apache2