Re: postgres CREATE DATABASE from django

2010-11-06 Thread Shawn Milochik
Don't use Django's connection; just use psycopg2 directly. -- 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 unsubscribe from this group, send email to django-users+unsubscr.

postgres CREATE DATABASE from django

2010-11-06 Thread Jonas Obrist
Hi everyone I know what I try to do sounds like something one shouldn't, but I have my reason [1]... I want to CREATE DATABASE from django (in a request/response cycle) on postgres, so I do connections['default'].cursor().execute("CREATE DATABASE somename"). That gives me a 'CREATE DATABASE canno