Skip to content

Instantly share code, notes, and snippets.

@byroncorrales
Created September 15, 2009 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byroncorrales/187104 to your computer and use it in GitHub Desktop.
Save byroncorrales/187104 to your computer and use it in GitHub Desktop.
-------Crear una app con django y modpython
Crear una app para el media del tipo "Static/CGI/PHP" (usada para servir el contenido estatico)
Crear una nueva carpeta dentro de webapp con el proyecto de django
Sustituir el apache conf
SetEnv DJANGO_SETTINGS_MODULE my_existing_project.settings
para servir el contenido estatico hay que agregar la locacion del media al apache para que no lo haga en django
<Location "/images">
SetHandler None
</Location>
Ir al panel a website aplicactions ....
Seleccionar el website de tu aplicacion
Agregarle la app de media que se creo anteriormente con el path /media
###/home/bcorrales/sissan/lib/python2.5/django/contrib/admin/media
Crear enlaces simbolicos del admin
ln -s /home/bcorrales/webapps/sissan/lib/python2.5/django/contrib/admin/media/css /home/bcorrales/webapps/media/css
ln -s /home/bcorrales/webapps/sissan/lib/python2.5/django/contrib/admin/media/js /home/bcorrales/webapps/media/js
ln -s /home/bcorrales/webapps/sissan/lib/python2.5/django/contrib/admin/media/img /home/bcorrales/webapps/media/img
http://forum.webfaction.com/viewtopic.php?id=29
https://help.webfaction.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=122
http://forum.webfaction.com/viewtopic.php?id=1987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment