Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created March 20, 2013 04:13
Show Gist options
  • Save groovecoder/5202265 to your computer and use it in GitHub Desktop.
Save groovecoder/5202265 to your computer and use it in GitHub Desktop.
Default DB name 'localwiki' already taken. Enter new DB name:
localwiki2
createdb: could not connect to database template1: FATAL: role "postgres" does not exist
Error creating database
Traceback (most recent call last):
File "/Users/lcrouch/python/localwiki/bin/localwiki-manage", line 8, in <module>
load_entry_point('localwiki==0.5.0', 'console_scripts', 'localwiki-manage')()
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/localwiki-0.5.0-py2.7.egg/sapling/manage.py", line 37, in main
init_db.run(DATA_ROOT=DATA_ROOT, PROJECT_ROOT=PROJECT_ROOT)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/localwiki-0.5.0-py2.7.egg/sapling/utils/management/commands/init_db.py", line 155, in run
c.handle()
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/localwiki-0.5.0-py2.7.egg/sapling/utils/management/commands/init_db.py", line 148, in handle
self.update_settings()
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/localwiki-0.5.0-py2.7.egg/sapling/utils/management/commands/init_db.py", line 137, in update_settings
localsettings = localsettings.replace('DBNAMEHERE', self.dbname)
AttributeError: 'Command' object has no attribute 'dbname'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment