Hi,
Steven was right there is a line
os.environ.update(req.subprocess_env) in mod_python handler.
which sets the 'HTTPS' :'on' in os.environ if https is active.
Adrain:
I tried running the metadata view there is nothing in META, that would
tell if https is active.
I wonder if it still would be
On 5/5/06, Jakub Labath <[EMAIL PROTECTED]> wrote:
> Thanks but I don't seem to have the 'wsgi.url_scheme' available in my
> request.META could it be becuase I'm using apache and mod_python?
Yeah, 'wsgi.url_scheme' is only available via the WSGI handler, not
the mod_python handler.
I know there'
On 5/5/06, Luke Plant <[EMAIL PROTECTED]> wrote:
> > +To retrieve a *single* object rather than a list
> > +(e.g. ``SELECT foo FROM bar LIMIT 1``), slice the ``QuerySet`` to
> > ``[:1]`` and +call ``get()`` on that. For example, this returns the
> > first ``Entry`` in the +database, after ordering
Hello and Hi
Today, I tell you another Best
Website for finding the best job.
Please check this link and enjoy
your dream job.
http://www.it-jse.com
Special thing about this website
is, they are presenting direct links to jobs.
They are using only Direct
Employers and not using Staffing
Hi Adrian,
> Author: adrian
> Date: 2006-05-04 21:56:15 -0500 (Thu, 04 May 2006)
> New Revision: 2837
>
...
> +Limiting QuerySets
> +--
...
> +To retrieve a *single* object rather than a list
> +(e.g. ``SELECT foo FROM bar LIMIT 1``), slice the ``QuerySet`` to
> ``[:1]`` and +
peter_k wrote:
> I tried to hack this (http://code.djangoproject.com/ticket/87) older
> oracle backend patch into MR (0.92), but no avail so far. Is there
> someone out there who tried it or has a working version?
Hiya,
I'm the author of the oracle patch. I apologize that I haven't updated
the p
On 5/5/06, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> I've never submitted code to Django before - what can I do to help
> make this patch go in to the trunk? I've run the Django testsuite
> with all passes, but I'm not sure if I should do anything else.
That's pretty much it. Now it's just waitin
Hi all,
I've submitted a ticket 1763
(http://code.djangoproject.com/ticket/1763) which has a script to
enable the teardown/setup of a SQLite in-memory database for use with
unit tests.
The script is based on the one from Ian Maurer :
http://itmaurer.com/blog/?p=2
I've also included a patch whi
Ok, so I am a little confused. I am trying to put my stuff up on a
hosting site, using apache w/modpython. When I hit the site, I get an
error page:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Erro
http://www.djangoproject.com/documentation/model_api/
AutoField
System Message: WARNING/2
(/home/html/djangoproject.com/docs/model-api.txt); backlink
Duplicate explicit target name: "automatic primary key fields".
Also css/base.css defines this for h4:
text-transform: uppercase
so that AutoFie
Hi,
I eventually solved my problem by modifying django/core/handlers/modpython.py
so that request.META would contain a key HTTPS.
--- core/handlers/modpython.py (revision 2299)
+++ core/handlers/modpython.py (working copy)
@@ -86,6 +86,8 @@
for key, value in self._req.headers_in.i
Hi Steven,
Thanks but I don't seem to have the 'wsgi.url_scheme' available in my
request.META could it be becuase I'm using apache and mod_python?
On 5/5/06, Steven Armstrong <[EMAIL PROTECTED]> wrote:
>
> On 05/05/06 19:33, Jakub Labath wrote:
> > Hi,
> >
> > I eventually solved my problem by
On Friday 05 May 2006 12:47, Michael Radziej wrote:
> Hi,
>
> what about providing class functions QuerySet.union(cls, qset_list),
> QuerySet.intersection(cls, qset_list), both returning cls, such as:
>
> def union(cls, qset_list):
> """Returns the union of a list of QuerySets, a QuerySet."""
Hi,
creating the doctests for the intersection stuff, I stumbled across this:
# Let's find all authors that have created articles in all known journals
>>> [Reporter.objects.filter(article__journal__id__exact=journal.id) for
journal in Journal.objects.all()]
[[John Smith, Paul Jones, Mike Miller
On Friday 05 May 2006 18:40, [EMAIL PROTECTED] wrote:
> Ok, so I am a little confused. I am trying to put my stuff up on a
> hosting site, using apache w/modpython. When I hit the site, I get an
> error page:
>
> Proxy Error
> The proxy server received an invalid response from an upstream
> server
Sorry,
this is the one that actually works.
--- core/handlers/modpython.py (revision 2299)
+++ core/handlers/modpython.py (working copy)
@@ -86,6 +86,8 @@
for key, value in self._req.headers_in.items():
key = 'HTTP_' + key.upper().replace('-', '_')
On 05/05/06 19:33, Jakub Labath wrote:
> Hi,
>
> I eventually solved my problem by modifying django/core/handlers/modpython.py
> so that request.META would contain a key HTTPS.
>
> --- core/handlers/modpython.py (revision 2299)
> +++ core/handlers/modpython.py (working copy)
> @@ -86,6 +86,8 @
On 05/05/06 20:06, Jakub Labath wrote:
> Hi Steven,
>
> Thanks but I don't seem to have the 'wsgi.url_scheme' available in my
> request.META could it be becuase I'm using apache and mod_python?
>
Hi
Yea, after having another look, it seems that's only available while
running the dev server. M
On Friday 05 May 2006 17:46, Michael Radziej wrote:
> This seems to indicate that &-combining QuerySets fails if the
> QuerySets contain joins to the same table. I might also just haven't
> got enough sleep last night, and my brain is failing to provide the
> correct sql at the moment.
Perhaps
Model reference -> Model methods:
methods ' indent is at the same level of class.
Model reference -> Modifying initial Manager QuerySets:
Model reference -> AutoField
Model reference -> Using models
Model reference -> The field_options dictionary can have the following
keys
"System Mess
On 5/5/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
>
> what about providing class functions QuerySet.union(cls, qset_list),
> QuerySet.intersection(cls, qset_list), both returning cls, such as:
>
> def union(cls, qset_list):
> """Returns the union of a list of QuerySets, a QuerySet."""
>
On 5/5/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
> what about providing class functions QuerySet.union(cls, qset_list),
> QuerySet.intersection(cls, qset_list), both returning cls, such as:
>
> def union(cls, qset_list):
> """Returns the union of a list of QuerySets, a QuerySet."""
>
Hi,
a month ago, I submitted a patch that makes inspectdb order the models
in a way that is free of forward dependencies (if possible).
I'm pretty sure it won't break anything since it only involves inspectdb
code. I found it very useful for starting with an existing database.
Anything wrong wi
Hi,
what about providing class functions QuerySet.union(cls, qset_list),
QuerySet.intersection(cls, qset_list), both returning cls, such as:
def union(cls, qset_list):
"""Returns the union of a list of QuerySets, a QuerySet."""
return reduce(cls.__or__, qset_list)
union = classmethod(un
24 matches
Mail list logo