Skip to content

Instantly share code, notes, and snippets.

@kkellydesign
Created April 3, 2012 15:32
Show Gist options
  • Save kkellydesign/2292949 to your computer and use it in GitHub Desktop.
Save kkellydesign/2292949 to your computer and use it in GitHub Desktop.
Trendabl venv terminal
^C(trendabl)Kaseys-MacBook-Air:trendabl Kasey$ createdb trendabl
(trendabl)Kaseys-MacBook-Air:trendabl Kasey$ ?
-bash: ?: command not found
(trendabl)Kaseys-MacBook-Air:trendabl Kasey$ python manage.py syncdb
Syncing...
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 90, in handle_noargs
syncdb.Command().execute(**options)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 56, in handle_noargs
cursor = connection.cursor()
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/db/backends/__init__.py", line 252, in cursor
cursor = util.CursorWrapper(self._cursor(), self)
File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 140, in _cursor
self.connection = Database.connect(**conn_params)
psycopg2.OperationalError: could not translate host name "domU-12-31-39-18-3D-70.compute-1.internal" to address: nodename nor servname provided, or not known
(trendabl)Kaseys-MacBook-Air:trendabl Kasey$
@kkellydesign
Copy link
Author

                                  List of databases
       Name       | Owner | Encoding |   Collate   |    Ctype    | Access privileges 
------------------+-------+----------+-------------+-------------+-------------------
 Kasey            | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 boxman           | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 ellington        | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 fabriform        | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 postgres         | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0        | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/Kasey         +
                  |       |          |             |             | Kasey=CTc/Kasey
 template1        | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/Kasey         +
                  |       |          |             |             | Kasey=CTc/Kasey
 template_postgis | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 trendabl         | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 twowayradioplus  | Kasey | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
(10 rows)

@kkellydesign
Copy link
Author

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_manager(settings)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 90, in handle_noargs
    syncdb.Command().execute(**options)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 56, in handle_noargs
    cursor = connection.cursor()
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/db/backends/__init__.py", line 252, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/Users/Kasey/.virtualenvs/trendabl/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 140, in _cursor
    self.connection = Database.connect(**conn_params)
psycopg2.OperationalError: could not translate host name "domU-12-31-39-18-3D-70.compute-1.internal" to address: nodename nor servname provided, or not known

(trendabl)Kaseys-MacBook-Air:trendabl Kasey$ 

@kkellydesign
Copy link
Author

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'trendabl',
'USER': 'kasey',
'PASSWORD': 'kasey',
'HOST': 'localhost',
'PORT': '',
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment