Re: Different Django instances running on the same server

2010-08-13 Thread John Pencola
Rick,

Absolutely! You'll want to take a look at installing virtualenv on
that server. By running separate Python virtual environments you can
install different modules and versions of those modules in "isolation"
and then instruct your web server to reference a specific virtualenv.
Here are a couple good related posts that will get you up and running:

http://blog.ianbicking.org/2007/10/10/workingenv-is-dead-long-live-virtualenv/
http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/

Hope that helps.
John Pencola

On Aug 12, 12:18 pm, Rick Caudill  wrote:
> Hi,
>
> Is it possible to run Django 1.1 and Django 1.2 on the same server?  I have
> some legacy apps that I need to port to 1.2 but until then I would still
> like to run 1.1 and also at the same time run 1.2 for some new apps.  Is
> this possible
>
> --
> Rick Caudill

-- 
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.



Re: Different Django instances running on the same server

2010-08-13 Thread buddhasystem

Hello there,
sure it can also be done, but it's hardly worth the effort imho. Just let
these sit on two different ports and inform the client.

If you are still compelled to redirect requests based on origin while using
one external port, it's doable from inside Django as well -- you look at the
requestor IP, rehash the URL and forward request to same physical Apache,
but on a different port. Doesn't seem difficult either.



Steve Holden-4 wrote:
> 
> If you want the different hosts to all respond to the same IP address
> and port 80, being selected by the Host: header coming on from the
> clients then you will have to front-end them with a redirecting server,
> in much the way that Web Faction do. It's quite possible, but it needs a
> little more work to put that extra layer in.
> 
> regards
>  Steve
> -- 
> 

-- 
View this message in context: 
http://old.nabble.com/Different-Django-instances-running-on-the-same-server-tp29420477p29431251.html
Sent from the django-users mailing list archive at Nabble.com.

-- 
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.



Re: Different Django instances running on the same server

2010-08-13 Thread Steve Holden
On 8/13/2010 1:09 PM, buddhasystem wrote:
> CLIFFORD ILKAY wrote:
>>
>> On 08/12/2010 12:18 PM, Rick Caudill wrote:
>>> Hi,
>>>
>>> Is it possible to run Django 1.1 and Django 1.2 on the same server?  I
>>> have some legacy apps that I need to port to 1.2 but until then I would
>>> still like to run 1.1 and also at the same time run 1.2 for some new
>>> apps.  Is this possible
>>
>> If you Google for pip + virtualenv + virtualenvwrapper, you'll find the 
>> best way to do this. In short, you can create virtual Python 
>> environments in which you can run not just different versions of Django, 
>> or any other Python libraries, but even different versions of Python.
>>
>> virtualenvwrapper.project is also quite worthwhile.

>
> I think it's even simpler than this. When configuring your Apache, you
> specify a few different virtual hosts listening on different ports.
For each
> host, you give a different PYTHONPAH. And that's it.
>
>
>
If you want the different hosts to all respond to the same IP address
and port 80, being selected by the Host: header coming on from the
clients then you will have to front-end them with a redirecting server,
in much the way that Web Faction do. It's quite possible, but it needs a
little more work to put that extra layer in.

regards
 Steve
-- 
DjangoCon US 2010 September 7-9 http://djangocon.us/

-- 
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.



Re: Different Django instances running on the same server

2010-08-13 Thread buddhasystem

I think it's even simpler than this. When configuring your Apache, you
specify a few different virtual hosts listening on different ports. For each
host, you give a different PYTHONPAH. And that's it.



CLIFFORD ILKAY wrote:
> 
> On 08/12/2010 12:18 PM, Rick Caudill wrote:
>> Hi,
>>
>> Is it possible to run Django 1.1 and Django 1.2 on the same server?  I
>> have some legacy apps that I need to port to 1.2 but until then I would
>> still like to run 1.1 and also at the same time run 1.2 for some new
>> apps.  Is this possible
> 
> If you Google for pip + virtualenv + virtualenvwrapper, you'll find the 
> best way to do this. In short, you can create virtual Python 
> environments in which you can run not just different versions of Django, 
> or any other Python libraries, but even different versions of Python.
> 
> virtualenvwrapper.project is also quite worthwhile.
> -- 
> Regards,
> 
> Clifford Ilkay
> Dinamis
> 1419-3266 Yonge St.
> Toronto, ON
> Canada  M4N 3P6
> 
> <http://dinamis.com>
> +1 416-410-3326
> 
> -- 
> 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.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Different-Django-instances-running-on-the-same-server-tp29420477p29431093.html
Sent from the django-users mailing list archive at Nabble.com.

-- 
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.



Re: Different Django instances running on the same server

2010-08-12 Thread CLIFFORD ILKAY

On 08/12/2010 12:18 PM, Rick Caudill wrote:

Hi,

Is it possible to run Django 1.1 and Django 1.2 on the same server?  I
have some legacy apps that I need to port to 1.2 but until then I would
still like to run 1.1 and also at the same time run 1.2 for some new
apps.  Is this possible


If you Google for pip + virtualenv + virtualenvwrapper, you'll find the 
best way to do this. In short, you can create virtual Python 
environments in which you can run not just different versions of Django, 
or any other Python libraries, but even different versions of Python.


virtualenvwrapper.project is also quite worthwhile.
--
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6


+1 416-410-3326

--
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.



Different Django instances running on the same server

2010-08-12 Thread Rick Caudill
Hi,

Is it possible to run Django 1.1 and Django 1.2 on the same server?  I have
some legacy apps that I need to port to 1.2 but until then I would still
like to run 1.1 and also at the same time run 1.2 for some new apps.  Is
this possible

-- 
Rick Caudill

-- 
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.