Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11363

Data issues with Django and Apache

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Data issues with Django and Apache
Date Sun, 14 Aug 2011 02:20:30 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 26
Message-ID <j27bde$dlr$1@reader1.panix.com> (permalink)
NNTP-Posting-Host panix3.panix.com
X-Trace reader1.panix.com 1313288430 14011 166.84.1.3 (14 Aug 2011 02:20:30 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Sun, 14 Aug 2011 02:20:30 +0000 (UTC)
User-Agent nn/6.7.3
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:11363

Show key headers only | View raw


I'm devleoping a website using the Django framework along with Apache,
and I'm seeing some odd data issues.

During the course of navigating through the website content, a user
will cause the creation of some data records with a limited lifespan.
These data records have a create_dt field which is automatically set to
the time that they were created, and an expire_dt field which is equal
to create_dt plus ten minutes.

The problem is that I get conflicting results as to whether these temporary
records have reached their expiration date, depending if I search for them
via an Apache web call or if I do the search locally from a python shell.

And to make it weirder, the conflicts go away if I stop and restart the
Apache server, although any new records created after this point will still
exhibit the issue.

Are there any known "gotchas" when using Django with Apache?  It almost
seems like Apache is maintaining its own persistent session or something,
and restarting Apache causes the session to be flushed.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Data issues with Django and Apache John Gordon <gordon@panix.com> - 2011-08-14 02:20 +0000
  Re: Data issues with Django and Apache Daniel Roseman <daniel@roseman.org.uk> - 2011-08-14 11:12 -0700
    Re: Data issues with Django and Apache John Gordon <gordon@panix.com> - 2011-08-14 23:43 +0000
  Re: Data issues with Django and Apache John Gordon <gordon@panix.com> - 2011-08-16 00:10 +0000

csiph-web