Re: Multi-tenant Django

2012-05-15 Thread Anssi Kääriäinen
On May 16, 12:18 am, charettes wrote: > Using django-hosts I managed to put together a simple setup that maps > subdomains to databases. > > First, I have a default database with a table mapping sudomains to database > name and a middleware that tries to load the correct

Re: Incorrect serialization for 3d GEOSGeometry

2012-05-15 Thread Russell Keith-Magee
On Tue, May 15, 2012 at 8:02 PM, Craig de Stigter wrote: > Hi folks > > > I discovered django.contrib.gis support for 3d geometries is pretty > patchy. I realised that the database stuff only worked in postgis, etc, but > it turns out even the serialisation methods on

Re: Multi-tenant Django

2012-05-15 Thread charettes
Using django-hosts I managed to put together a simple setup that maps subdomains to databases. First, I have a default database with a table mapping sudomains to database name and a middleware that tries to load the correct object based on the match provided by django-hosts. In my settings I

Re: Bug (in 1.4+) double slash in URL leads to incorrect ``request.build_absolute_uri()``

2012-05-15 Thread Aymeric Augustin
Hello, On 15 mai 2012, at 21:36, Yo-Yo Ma wrote: > I've attached a diff in the ticket I created, and I resolved the > ticket as "fixed" (as habit, I'm used to doing this for work, allowing > QA to change the status to "closed" after testing). Is this correct? We resolve tickets as "fixed" only

Re: Bug (in 1.4+) double slash in URL leads to incorrect ``request.build_absolute_uri()``

2012-05-15 Thread Yo-Yo Ma
I've attached a diff in the ticket I created, and I resolved the ticket as "fixed" (as habit, I'm used to doing this for work, allowing QA to change the status to "closed" after testing). Is this correct? Also, is it better to fork Django and make a pull request on GitHub, or simply provide the

Exception Middleware not run [was Re: Subclass handle_uncaught_exception]

2012-05-15 Thread Rory Campbell-Lange
On further investigation it appears that the process_exception middleware isn't being called in my case. In other words, /usr/lib/python2.7/dist-packages/django/utils/decorators.py: 92 except Exception, e: 93 import ipdb; ipdb.set_trace() 94

Re: Authentication page

2012-05-15 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Tue,

Authentication page

2012-05-15 Thread francescobocca...@libero.it
Hi all, i'm new of Django world and i would like to create for my web site an autentication page (login, logout, sign up, change user , etc..) How can found a tutorial to do that? Anyone can suggest me ho build that? Thanks Francesco -- You received this message because you are subscribed to

Re: Django 1.4 bug: Using cache_page and csrf_protect decorators results in a messy Set-Cookie response header.

2012-05-15 Thread Rafał Stożek
Should we reopen https://code.djangoproject.com/ticket/15863 then? On Mon, May 14, 2012 at 4:39 PM, Suteepat Damrongyingsupab < tianiss...@gmail.com> wrote: > Hi all, > Thanks for your help to investigate the issue. I didn't have a chance to > look further into it. > So every class-based views

#18277 : Passing additional context to startproject command

2012-05-15 Thread Dominique Guardiola Falco
Jezdez said he wanted to discuss the point of this feature. I posted a very simple working patch (I only have a yellow belt in django/python) As this was advertised as possible in the docs, I wanted to pass more variables to the project template rendering command (./manage.py startproject

Re: Multi-tenant Django

2012-05-15 Thread Alec Taylor
Thanks Anthony, Looking forward to seeing your results :) On Tue, May 15, 2012 at 7:30 PM, Anthony Briggs wrote: > Hi Alec, > > One of the science experiments on my todo list is to try and set up one of > the fancy new database routers (possibly with get_current_site()

Incorrect serialization for 3d GEOSGeometry

2012-05-15 Thread Craig de Stigter
Hi folks I discovered django.contrib.gis support for 3d geometries is pretty patchy. I realised that the database stuff only worked in postgis, etc, but it turns out even the serialisation methods on GEOSGeometry don't work properly. Here's a small test script that demonstrates the problem:

Re: Multi-tenant Django

2012-05-15 Thread Anthony Briggs
Hi Alec, One of the science experiments on my todo list is to try and set up one of the fancy new database routers (possibly with get_current_site() or similar) and see if I can serve multiple sites+databases from the same Django instance. Not sure if that helps, or even it it'll work, but if it