Re: Session is new every time

2008-04-19 Thread Martin Kaffanke
Am Donnerstag, den 17.04.2008, 17:17 +0200 schrieb Martin Kaffanke: > I use django behind apache using the wsgi like described here: > > http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango Just for those who are interested: It does not work with python2.4 but it works with

Session is new every time

2008-04-17 Thread Martin Kaffanke
, Martin -- Ihr Partner für Webdesign, Webapplikationen und Webspace. http://www.roomandspace.com/ Martin Kaffanke +43 650 4514224 signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: MEDIA_URL MEDIA_ROOT problem.

2007-07-17 Thread Martin Kaffanke
Am Dienstag, den 17.07.2007, 18:35 + schrieb Dmitriy Sodrianov: > MEDIA_ROOT = '/home/sodrian/versatility/static/' > > MEDIA_URL = 'http://127.0.0.1:8000/static/' In this case /static/ is handled by django, so you need to set it in your urls.py: (r'^static/(?P.*)$',

Re: session in all templates?

2007-07-12 Thread Martin Kaffanke
Am Donnerstag, den 12.07.2007, 10:46 +0800 schrieb Russell Keith-Magee: > On 7/12/07, Martin Kaffanke <[EMAIL PROTECTED]> wrote: > > At the moment I use on some places a > > > > {'session': request.session} for the Context to render the template. > > How Ca

Re: session in all templates?

2007-07-11 Thread Martin Kaffanke
Am Mittwoch, den 11.07.2007, 13:34 -0400 schrieb Simon Drabble: > On Wed, 11 Jul 2007, Martin Kaffanke wrote: > > > Am Mittwoch, den 11.07.2007, 12:26 -0400 schrieb Simon Drabble: > >> On Wed, 11 Jul 2007, Martin Kaffanke wrote: > >> > >>> Hi there! >

Re: session in all templates?

2007-07-11 Thread Martin Kaffanke
Am Mittwoch, den 11.07.2007, 12:26 -0400 schrieb Simon Drabble: > On Wed, 11 Jul 2007, Martin Kaffanke wrote: > > > Hi there! > > > > How can I configure django to put the session (request.session) in all > > templates? > > > > I want to put a 'Hello

session in all templates?

2007-07-11 Thread Martin Kaffanke
Hi there! How can I configure django to put the session (request.session) in all templates? I want to put a 'Hello Username' for logged in Users, and I want to do a dynamic login/logout button into the menu, depends on if there is a logged in user or not. Thanks, Martin signature.asc