»
psycopg.OperationalError: FATAL: database "communitydraft" does not exist
Posted by
stodge
- Posts
- 10
- Registered at
- 2009-10-29 16:08:10
|
2009-10-29 16:09:52 - psycopg.OperationalError: FATAL: database "communitydraft" does not exist
|
I downloaded the CommunityDraft release and extracted it on Fedora 10. I then followed the instructions for setting up settings.py and ran syncdb but I get this:
./manage.py syncdb
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/lib/python2.5/site-packages/django/core/management/commands/syncdb.py", line 49, in handle_noargs
cursor = connection.cursor()
File "/usr/lib/python2.5/site-packages/django/db/backends/__init__.py", line 81, in cursor
cursor = self._cursor()
File "/usr/lib/python2.5/site-packages/django/db/backends/postgresql/base.py", line 116, in _cursor
self.connection = Database.connect(conn_string, **settings_dict['DATABASE_OPTIONS'])
psycopg.OperationalError: FATAL: database "communitydraft" does not exist
I thought that syncdb created the database for you?
If I manually create the database and run syncdb, nothing is setup.
Thanks --- Last Edited by stodge at 2009-10-29 16:11:36 ---
|
Posted by
Herbert Poul
- Posts
- 663
- Registered at
- 2006-10-22 13:09:07
|
2009-10-29 16:14:59 - Re: psycopg.OperationalError: FATAL: database "communitydraft" does not exist
|
the database tables are created automatically, but you have to manually set up the database...
if you create a database and run syncdb it should correctly set up all tables and create initial data (like a super user) Hey, we have Signatures !!! Great, isn't it ? ;)
|
Please login to post a reply.