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 and local).

If not, you're going to need to experiment with virtualenv --relocatable to
see if it meets your needs.  (I'm doing this for my application, but it
isn't perfect, and doesn't work well with Windows.)

Failing that, you may need to create a new virtual environment on the host,
and then install your packages using pip, before copying your application
files.  (pip freeze and pip bundle can be your friends here.)

- Craig -

On Wed, Dec 15, 2010 at 11:48, Álex González <agonzale...@gmail.com> 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?
>
> What's the better way to the deployment? mod_python, mod_wsgi, perhaps
> fast-cgi?
>
> Thanks!
>
> --
> @agonzalezro <http://twitter.com/agonzalezro>
> Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt
> and/or .pptx
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to