Getting stuck in transactions

2009-03-10 Thread Tom Davis
I have a command-line script that uses Django's ORM. For reasons beyond my comprehension, it has a tendency to get "stuck" in transactions. When I check the postgre server status, it simply shows a connection that is "idle in transaction" and never completes. The script ends up hitting this wall s

Textmate & Template Highlighting

2007-06-17 Thread Tom Davis
This may be a bit of an odd question, but I'm wondering if anyone has found a way to make template variables in quotes properly colored. For instance, if you have something like , that template variable will not be properly highlighted because it's inside a string. Anyone know how to fix this? O

Re: Textmate & Template Highlighting

2007-06-17 Thread Tom Davis
n the best, but it works: 1) Go in and edit the HTML Language in the Bundle Editor 2) Find string-double-quoted = { 3) Under the patterns entry, Add { include = 'text.html.django'; }, Poof! Variables are properly highlighted in HTML strings. Asked and answered ;) On Jun 17

session_key and sessionid comparison?

2006-10-10 Thread Tom Davis
Since database entries for "session_key" do not correspond to the cookie sessionid set at login or whenever, how does Django match a given sessionid cookie to a session? Basically I am trying to integrate (to a point) a non-django, non-python app into a django app. All I would be doing (I think)

[Newbie] Django & Cookies

2006-07-10 Thread Tom Davis
Okay, this is a pretty simple question with probably a "duh" answer, but I read the docs page on sessions and it doesn't specify, so here goes: Say I have some php (or whatever) page that sets a cookie named "stuff", using django, could I just use request.session['stuff'] and get the value, or do

Re: Django & Cookies

2006-07-10 Thread Tom Davis
Jeremy Dunck wrote: > On 7/10/06, Tom Davis <[EMAIL PROTECTED]> wrote: > > Say I have some php (or whatever) page that sets a cookie named > > "stuff", using django, could I just use request.session['stuff'] and > > get the value, or does Django use

EnvironmentError?

2006-08-14 Thread Tom Davis
I am having a problem getting Django to work properly on my server. I have Apache setup with mod_python using Python 2.4. I put in the Location stuff in my Apache config, and when I go to the directory I get this: --- Mod_python error: "PythonHandl

Re: SuspiciousOperation: User tampered with session cookie

2006-08-14 Thread Tom Davis
Although old, I'd like to point out that at least in my case this wasn't a Dapper + PHP5 issue, it was a Deb + PHP5 issue, so the problem seems to lie with the PHP5/Django pairing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

ForeignKey/Relationship Question

2006-09-02 Thread Tom Davis
Okay, I am creating a site in Django who's forum system runs on vBulletin. Is there anyway to hook my models into the vB tables so that I can use them basically in tandem? I don't really need vB to do anything with my Django tables, but there are a few instances where I really need my Django app