Re: Using http header information in settings.py

2008-08-30 Thread Greg Fuller
Thanks Graham. I guess I won't be hiking that trail. On Aug 29, 6:40 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 30, 12:20 am, Greg Fuller <[EMAIL PROTECTED]> wrote: > > > Thanks for the replies. > > > I like the middleware solution, if you can modify settings variables > > during m

Re: Using http header information in settings.py

2008-08-29 Thread Graham Dumpleton
On Aug 30, 12:20 am, Greg Fuller <[EMAIL PROTECTED]> wrote: > Thanks for the replies. > > I like the middleware solution, if you can modify settings variables > during middleware processing. The documentation warns against altering > settings at runtime. > > What are the consequences of  ignoring

Re: Using http header information in settings.py

2008-08-29 Thread Greg Fuller
Thanks for the replies. I like the middleware solution, if you can modify settings variables during middleware processing. The documentation warns against altering settings at runtime. What are the consequences of ignoring the warning? Eric, I don't think setting up multiple projects would wor

Re: Using http header information in settings.py

2008-08-29 Thread Graham Dumpleton
On Aug 29, 8:50 pm, Erik Allik <[EMAIL PROTECTED]> wrote: > For the iPhone templates issue, I'd set up two projects instead of one   > -- one for regular browsers, one for the iPhone. Then I'd simply   > redirect from the regular one to the iPhone one as needed. Although   > this has the negative

Re: Using http header information in settings.py

2008-08-29 Thread Erik Allik
For the iPhone templates issue, I'd set up two projects instead of one -- one for regular browsers, one for the iPhone. Then I'd simply redirect from the regular one to the iPhone one as needed. Although this has the negative side effect of having more than one URL per resource, but you co

Re: Using http header information in settings.py

2008-08-29 Thread Daniel Roseman
On Aug 28, 11:24 pm, Greg Fuller <[EMAIL PROTECTED]> wrote: > I would like a way to to adjust settings  based on information in the > http header.  I've seen a similar question asked before, but I don't > need all the django request object, just the http header information. > More specifically, us

Using http header information in settings.py

2008-08-28 Thread Greg Fuller
I would like a way to to adjust settings based on information in the http header. I've seen a similar question asked before, but I don't need all the django request object, just the http header information. More specifically, user_agent, http_host, and path_info. Here are two examples of the so