Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-23 Thread Spaceman Paul
In case anyone else ends up with same problem, I was using request.path instead of request.path_info. P. On Friday, 23 May 2014 14:58:11 UTC+10, Spaceman Paul wrote: > > Playing around some more, and inserting some trace statements in the > django code, I can see > (for the ex

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-23 Thread Spaceman Paul
Ugh nevermind. Yes it's a bug - but in my code. I'll figure it out. On Friday, 23 May 2014 14:58:11 UTC+10, Spaceman Paul wrote: > > Playing around some more, and inserting some trace statements in the > django code, I can see > (for the example ^times$ pattern): > > 1) Wh

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
g WSGI with a non-root mount point. P. On Friday, 23 May 2014 01:25:03 UTC+1, Spaceman Paul wrote: > > I've worked around it by creating another A-record and pointing each > application to the server root of the respective > virtual host, but this should not be necessary. > &g

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
I've worked around it by creating another A-record and pointing each application to the server root of the respective virtual host, but this should not be necessary. On Thursday, 22 May 2014 23:50:57 UTC+1, Spaceman Paul wrote: > > Nothing in wsgi.conf. > > Relevant bits of

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
= get_wsgi_application() I was trying to do some tricky stuff with virtualenv initially, but I still see the problem with the config stripped back very simple, as described above. P. On Thursday, 22 May 2014 21:29:02 UTC+1, WongoBongo wrote: > > Maybe post your apache.conf or/and your wsgi

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
No that's what I've got. P. On Thursday, 22 May 2014 15:14:01 UTC+10, WongoBongo wrote: > > Maybe > > WSGIScriptAlias /awma /var/www/djangoapp/djangoapp/wsgi.py > > K > > On Wednesday, May 21, 2014 9:27:14 PM UTC-7, Spaceman Paul wrote: >> >> My application w

URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-21 Thread Spaceman Paul
My application works fine in runserver and in apache/wsgi mapped to root, but when I map wsgi to a directory, url lookups fail. E.g. Request URL: http://server/awma/times ... ^times$ [name='times'] ... The current URL, times, didn't match any of these. Every single URL in the (full) list

XSD from a Django model (as per XML serializer)

2010-06-09 Thread Spaceman Paul
Is there a way to generate an XSD for the "simple xml dialect" produced by the XML serializer for a given Django model? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: CSRF protection in admin in Django 1.2

2010-05-17 Thread Spaceman Paul
(AdminSite): csrf_protection = False I guess I'll open a ticket for it. Paul. On May 18, 10:47 am, Spaceman Paul <linkjugg...@gmail.com> wrote: > Hi, I just upgraded to Django 1.2 and am having some problems. > > My project contains several customised django.contrib.admin sit

CSRF protection in admin in Django 1.2

2010-05-17 Thread Spaceman Paul
Hi, I just upgraded to Django 1.2 and am having some problems. My project contains several customised django.contrib.admin sites that offer highly stripped down subsets of admin functionality. These customised sites do not use authentication and are expected to be POSTed to both by users and by

Re: Nesting model forms with admin

2010-05-02 Thread Spaceman Paul
t; In the meantime, there is an open ticket - I think my patch is > attached. > > Matt > > On Apr 20, 10:49 am, Spaceman Paul <linkjugg...@gmail.com> wrote: > > > > > I'm looking at extending the django admin app for a project, as it > > does about 96% of

Nesting model forms with admin

2010-04-19 Thread Spaceman Paul
I'm looking at extending the django admin app for a project, as it does about 96% of what we need straight out of the box. The main feature not offered is what might be called nested modelforms. Stretching the example from the InlineModelAdmin documentation (which does almost the exact opposite