I’m want to deploy my django project as an egg file which I am able to. The problem is when serving static files, how do I setup apache (using mod_wsgi) to serve content from an egg file, is it possible ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
” is it possible ?” No.
Apache can only serve files. Simple files.
Or — for non files — redirect to some other processing like mod_wsgi.
If you want to serve something packed inside a Python egg (really a Zip archive) you should unpack that member into an ordinary file system location.
Python’s
setup.pyhas ways to move files from the distribution kit into file system locations.http://docs.python.org/distutils/setupscript.html#installing-additional-files