Re: Problem to deploy on production server

2009-06-16 Thread Francis

Is there someone who have more that one instance running on his server
who would like to share how to do it correctly?

And, how can I make my tables data reappear in the admin interface?

Thank you

Francis


On Jun 15, 2:20 pm, Francis  wrote:
> Also, if I set the SITE_ID to be equal in both config, When I save a
> model entry, I got an error from django:
> ERROR:  canceling statement due to statement timeout
>
> Francis
>
> On Jun 15, 10:40 am, Thomas Guettler  wrote:
>
>
>
> > Hi,
>
> > do you use the cache module? Be sure, that both projects use
> > different ones.
>
> > Maybe you need to set SESSION_COOKIE_NAME if the domain name is the
> > same.
>
> > Do you use one database or two? (Is settings.DATABASE_NAME the same?)
>
> >   Thomas
>
> > Francis schrieb:
>
> > > Hi,
>
> > > I have completed one web site and I am now ready to deploy it in
> > > production, but I have serious issues where I can't find any
> > > information/clue on the django web site, in the book or on IRC. I have
> > > no idea how I can solve my problem
>
> > > What I want to achieve is the following:
> > > 1 site under http without admin acces
> > > 1 site under https + admin acces
>
> > > My config
> > > python 2.5
> > > django 1.0.2
> > > postgresql
> > > mod_wsgi (i'm using it because djapian doesn't work with mod_python)
>
> > > So what I did was to create two mod_wsgi on two project repositories.
> > > One configured with the admin apps installed (https) an one without
> > > (http).
> > > Results:
> > > When I save an entry to a model, it saves it and redirects to the non
> > > secure http service instead of the secure one, throwing a 404.
>
> > > So I tried to enable the admin apps on both services.
> > > Results:
> > > Now I get a proxy error on the https service and a timeout on the http
> > > service.
> > > Some tables show no result on the http service but show them all on
> > > the other one.
>
> > > If I shut down the https service, some entries can be saved and others
> > > don't.
> > > The same tables that wrongly display nothing are still empty.
>
> > > I tried to give each site a different site_id, but it doesn't help.
>
> > > Help would be very much appreciated,
>
> > > Thank you
>
> > > Francis
>
> > --
> > Thomas Guettler,http://www.thomas-guettler.de/
> > E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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: Problem to deploy on production server

2009-06-15 Thread Francis

Also, if I set the SITE_ID to be equal in both config, When I save a
model entry, I got an error from django:
ERROR:  canceling statement due to statement timeout

Francis

On Jun 15, 10:40 am, Thomas Guettler  wrote:
> Hi,
>
> do you use the cache module? Be sure, that both projects use
> different ones.
>
> Maybe you need to set SESSION_COOKIE_NAME if the domain name is the
> same.
>
> Do you use one database or two? (Is settings.DATABASE_NAME the same?)
>
>   Thomas
>
> Francis schrieb:
>
>
>
>
>
> > Hi,
>
> > I have completed one web site and I am now ready to deploy it in
> > production, but I have serious issues where I can't find any
> > information/clue on the django web site, in the book or on IRC. I have
> > no idea how I can solve my problem
>
> > What I want to achieve is the following:
> > 1 site under http without admin acces
> > 1 site under https + admin acces
>
> > My config
> > python 2.5
> > django 1.0.2
> > postgresql
> > mod_wsgi (i'm using it because djapian doesn't work with mod_python)
>
> > So what I did was to create two mod_wsgi on two project repositories.
> > One configured with the admin apps installed (https) an one without
> > (http).
> > Results:
> > When I save an entry to a model, it saves it and redirects to the non
> > secure http service instead of the secure one, throwing a 404.
>
> > So I tried to enable the admin apps on both services.
> > Results:
> > Now I get a proxy error on the https service and a timeout on the http
> > service.
> > Some tables show no result on the http service but show them all on
> > the other one.
>
> > If I shut down the https service, some entries can be saved and others
> > don't.
> > The same tables that wrongly display nothing are still empty.
>
> > I tried to give each site a different site_id, but it doesn't help.
>
> > Help would be very much appreciated,
>
> > Thank you
>
> > Francis
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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: Problem to deploy on production server

2009-06-15 Thread Francis

Cache is planned for the non secure site, but not configured at this
point.

SESSION_COOKIE_NAME makes no diffrence.
When I log to https://mysite.com/myadmin
it redirect to http after succesful login, I need to manually enter
https.

Saving an entry generate a 502 BAD GATEWAY - The proxy server received
an invalid response from an upstream server.

I have only one database. DATABASE_NAME is the same.

Francis


On Jun 15, 10:40 am, Thomas Guettler  wrote:
> Hi,
>
> do you use the cache module? Be sure, that both projects use
> different ones.
>
> Maybe you need to set SESSION_COOKIE_NAME if the domain name is the
> same.
>
> Do you use one database or two? (Is settings.DATABASE_NAME the same?)
>
>   Thomas
>
> Francis schrieb:
>
>
>
>
>
> > Hi,
>
> > I have completed one web site and I am now ready to deploy it in
> > production, but I have serious issues where I can't find any
> > information/clue on the django web site, in the book or on IRC. I have
> > no idea how I can solve my problem
>
> > What I want to achieve is the following:
> > 1 site under http without admin acces
> > 1 site under https + admin acces
>
> > My config
> > python 2.5
> > django 1.0.2
> > postgresql
> > mod_wsgi (i'm using it because djapian doesn't work with mod_python)
>
> > So what I did was to create two mod_wsgi on two project repositories.
> > One configured with the admin apps installed (https) an one without
> > (http).
> > Results:
> > When I save an entry to a model, it saves it and redirects to the non
> > secure http service instead of the secure one, throwing a 404.
>
> > So I tried to enable the admin apps on both services.
> > Results:
> > Now I get a proxy error on the https service and a timeout on the http
> > service.
> > Some tables show no result on the http service but show them all on
> > the other one.
>
> > If I shut down the https service, some entries can be saved and others
> > don't.
> > The same tables that wrongly display nothing are still empty.
>
> > I tried to give each site a different site_id, but it doesn't help.
>
> > Help would be very much appreciated,
>
> > Thank you
>
> > Francis
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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: Problem to deploy on production server

2009-06-15 Thread Thomas Guettler

Hi,

do you use the cache module? Be sure, that both projects use
different ones.

Maybe you need to set SESSION_COOKIE_NAME if the domain name is the
same.

Do you use one database or two? (Is settings.DATABASE_NAME the same?)

  Thomas

Francis schrieb:
> Hi,
> 
> I have completed one web site and I am now ready to deploy it in
> production, but I have serious issues where I can't find any
> information/clue on the django web site, in the book or on IRC. I have
> no idea how I can solve my problem
> 
> What I want to achieve is the following:
> 1 site under http without admin acces
> 1 site under https + admin acces
> 
> My config
> python 2.5
> django 1.0.2
> postgresql
> mod_wsgi (i'm using it because djapian doesn't work with mod_python)
> 
> So what I did was to create two mod_wsgi on two project repositories.
> One configured with the admin apps installed (https) an one without
> (http).
> Results:
> When I save an entry to a model, it saves it and redirects to the non
> secure http service instead of the secure one, throwing a 404.
> 
> So I tried to enable the admin apps on both services.
> Results:
> Now I get a proxy error on the https service and a timeout on the http
> service.
> Some tables show no result on the http service but show them all on
> the other one.
> 
> If I shut down the https service, some entries can be saved and others
> don't.
> The same tables that wrongly display nothing are still empty.
> 
> I tried to give each site a different site_id, but it doesn't help.
> 
> Help would be very much appreciated,
> 
> Thank you
> 
> Francis


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Problem to deploy on production server

2009-06-15 Thread Francis

Hi,

I have completed one web site and I am now ready to deploy it in
production, but I have serious issues where I can't find any
information/clue on the django web site, in the book or on IRC. I have
no idea how I can solve my problem

What I want to achieve is the following:
1 site under http without admin acces
1 site under https + admin acces

My config
python 2.5
django 1.0.2
postgresql
mod_wsgi (i'm using it because djapian doesn't work with mod_python)

So what I did was to create two mod_wsgi on two project repositories.
One configured with the admin apps installed (https) an one without
(http).
Results:
When I save an entry to a model, it saves it and redirects to the non
secure http service instead of the secure one, throwing a 404.

So I tried to enable the admin apps on both services.
Results:
Now I get a proxy error on the https service and a timeout on the http
service.
Some tables show no result on the http service but show them all on
the other one.

If I shut down the https service, some entries can be saved and others
don't.
The same tables that wrongly display nothing are still empty.

I tried to give each site a different site_id, but it doesn't help.

Help would be very much appreciated,

Thank you

Francis

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---