I'm assuming you mean one single value, not one value per entry.

There are a whole bunch of ways you can store an item of data in
python. There's the pickle module, various flat-file database wrappers,
just write it to a file, etc.

But IMHO you are _much_ better off writing it to the database, even if
it is just a single value. You're better off because you're using only
a single database connection (for which you've already set your
properties), your application is portable, you don't have to worry
about locking problems (like you would if you just wrote out a file).

Just create a simple model with a single field (your number). And then
create a set method to set the one threshold in the database.

Ian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to