If you are using mod_wsgi read:
http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode
In short, code changes by default aren't picked up until a process restart.
Thus when they are read depends on when specific hosting mechanisms starts
new or restarts old processes.
Graham
On Wednesday
A related question... why my apache forks (to server to the clients) don't
update the code at same time? Can I force django to compile and load the .py
files at time of server? (Only for debug)
On Thu, Dec 16, 2010 at 22:33, Graham Dumpleton
wrote:
>
>
> On Friday, December 17, 2010 1:21:26 AM UT
On Friday, December 17, 2010 1:21:26 AM UTC+11, Craig Trader wrote:
>
> Alex ...
>
> This is the point where my experience ends -- I'm not operating in a
> hosting environment. I can tell you that mod_python has to be compiled for
> a specific version of Apache AND Python (one of the reasons t
Alex ...
This is the point where my experience ends -- I'm not operating in a hosting
environment. I can tell you that mod_python has to be compiled for a
specific version of Apache AND Python (one of the reasons that mod_wsgi is
better is that it breaks the Python-version dependency). If you ne
Thanks for your reply Craig,
to use mod_python in my hosting I'm using this .htaccess file:
SetHandler python-program
PythonOption django.root /
PythonHandler django.core.handlers.modpython
PythonPath "['/var/www/vhosts/myhosting.com/httpdocs'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE settings
P
Alex ...
You're not going to be able to trick your host into loading mod_wsgi from an
.htaccess file -- Apache doesn't allow the load directives in .htaccess
files.
While mod_python is not supported, and it has a large number of open issues,
there aren't any specific security holes you really nee
Wow very timely thread!
I am trying to deploy on Dreamhost and struggling.
They have a nice easy to build Django env, but getting my app
running... thats been another matter.
Thanks for asking Alex, and thanks for all the replies to this. Very
informative.
On Dec 15, 1:56 pm, Álex González wro
Hi guys!
Thanks for your replies!
My hosting is a shared hosting and I think that I can only uses mod_python
at the moment. I can load mod_wsgi from htaccess (I test it) but I can edit
my virtualhosts or something similar... any trick to get mod_wsgi
up&running?
About the virtualenv as Piotr sai
On Wed, Dec 15, 2010 at 11:48 AM, Álex González wrote:
> Hi!
>
> I'm using virtualenv with --no-site-packages and now I like to do a
> deployment of my app... I'm using a sharing hosting, can I uypload all my
> enviroment dir (with the packages installed with pip) to the server and use
> them?
>
>
Alex ...
In order to do a simple copy you'll need to make sure that:
1. You're using the exact same version of Python on the host as you use
to develop.
2. Python is installed in exactly the same locations (host and local).
3. Your environment is located in the same locations (host an
Hi,
> I'm using virtualenv with --no-site-packages and now I like to do a
> deployment of my app... I'm using a sharing hosting, can I uypload all my
> enviroment dir (with the packages installed with pip) to the server and use
> them?
>
That won't necessarily work. Some packages need to be comp
Better would be to create the requirements.txt and install directly on
the server (pip install ir requirements.txt)
I use mod_wsgi
On 10-12-15 08:48, Álex González wrote:
Hi!
I'm using virtualenv with --no-site-packages and now I like to do a
deployment of my app... I'm using a sharing hostin
12 matches
Mail list logo