Configuring the session engine

*New in development version*.

By default, Django stores sessions in your database (using the model
django.contrib.sessions.models.Session). Though this is convenient, in some
setups it's faster to store session data elsewhere, so Django can be
configured to store session data on your filesystem or in your cache.
 Using file-based sessions

To use file-based sessions, set the SESSION_ENGINE setting to "
django.contrib.sessions.backends.file".

You might also want to set the SESSION_FILE_PATH setting (which defaults to
/tmp) to control where Django stores session files. Be sure to check that
your Web server has permissions to read and write to this location.


On 11/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I need to put together a small site for some demos...I don't need a
> database as I'm getting my data via some API calls,  but wanted to use
> Django templates.   I had wanted to store this data in a session
> variable ( the API calls can take a while)... I thought I remembered
> reading somewhere it wasn't possible to use session variables w/out
> using a Database with Django.  Anyone have any work arounds for
> this?
>
> Thanks for any info.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to