Re: postgres schemas and django admin

2009-07-01 Thread Chhouk Voeun
Page not found (404) Request Method: GET Request URL: http://localhost:8080/main Using the URLconf defined in urls, Django tried these URL patterns, in this order: 1. ^$ 2. ^new$ 3. ^edit/(\d+)$ The current URL, /main, didn't match any of these. You're seeing this error because you h

Re: postgres schemas and django admin

2009-07-01 Thread Unnamed_Hero
So, I think I found a solution. But, in http://code.djangoproject.com/attachment/ticket/1051/ticket_1051_rev6669.diff I've changed a string "cursor.execute("SET search_path TO %s" % ','.join (settings.DATABASE_SCHEMAS)) " to "cursor.execute("SET search_path TO %s" ,[settings.DATABASE_SCHEMAS]) "

Re: postgres schemas and django admin

2009-07-01 Thread Unnamed_Hero
> and you have 'django.contrib.admin' under INSTALLED_APPS, right? Yes, I have. I've also tried http://code.djangoproject.com/ticket/1051 and patch django/db/backends/postgresql_psycopg2/base.py with code in http://code.djangoproject.com/attachment/ticket/1051/ticket_1051_rev6669.diff but I'm g

Re: postgres schemas and django admin

2009-07-01 Thread Miguel Rodriguez
and you have 'django.contrib.admin' under INSTALLED_APPS, right? On Jul 1, 6:58 am, Unnamed_Hero wrote: > > this only fails for admin? are the models being written to the database? > > Yes, it is. > I have a database already filled with data. For fetching data I > specify a class Meta with a db

Re: postgres schemas and django admin

2009-06-30 Thread Unnamed_Hero
> > this only fails for admin? are the models being written to the database? Yes, it is. I have a database already filled with data. For fetching data I specify a class Meta with a db_name='"db_schema'.'db'" in my models. --~--~-~--~~~---~--~~ You received this m

Re: postgres schemas and django admin

2009-06-30 Thread Kenneth Gonsalves
On Wednesday 01 July 2009 09:42:47 Unnamed_Hero wrote: > How can I specify a postgres schema for admin site of my django > project? syncdb failed with "no schema specified for creating > objects" (error message translated form russion, I do not no exactly, > what this error look like in English).