Advertisement
kellykamay

django postgresql error

May 22nd, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.28 KB | None | 0 0
  1. (venv) kelly@kelly-vm:~/work/venv/storycal/django_app$ export DATABASE_URL=postgres://kamay:kamay@localhost:5432/storycal;
  2. (venv) kelly@kelly-vm:~/work/venv/storycal/django_app$ ./manage.py runserver_plus 0.0.0.0:8000
  3. Traceback (most recent call last):
  4.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
  5.     return self.cursor.execute(sql, params)
  6. psycopg2.ProgrammingError: permission denied for relation django_migrations
  7.  
  8.  
  9. The above exception was the direct cause of the following exception:
  10.  
  11. Traceback (most recent call last):
  12.   File "./manage.py", line 10, in <module>
  13.     execute_from_command_line(sys.argv)
  14.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
  15.     utility.execute()
  16.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 345, in execute
  17.     self.fetch_command(subcommand).run_from_argv(self.argv)
  18.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/core/management/base.py", line 348, in run_from_argv
  19.     self.execute(*args, **cmd_options)
  20.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/core/management/base.py", line 399, in execute
  21.     output = self.handle(*args, **options)
  22.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django_extensions/management/utils.py", line 58, in inner
  23.     ret = func(self, *args, **kwargs)
  24.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django_extensions/management/commands/runserver_plus.py", line 352, in handle
  25.     inner_run()
  26.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django_extensions/management/commands/runserver_plus.py", line 268, in inner_run
  27.     self.check_migrations()
  28.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django_extensions/management/commands/runserver_plus.py", line 359, in check_migrations
  29.     executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  30.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/migrations/executor.py", line 20, in __init__
  31.     self.loader = MigrationLoader(self.connection)
  32.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/migrations/loader.py", line 49, in __init__
  33.     self.build_graph()
  34.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/migrations/loader.py", line 176, in build_graph
  35.     self.applied_migrations = recorder.applied_migrations()
  36.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 66, in applied_migrations
  37.     return set(tuple(x) for x in self.migration_qs.values_list("app", "name"))
  38.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/models/query.py", line 258, in __iter__
  39.     self._fetch_all()
  40.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/models/query.py", line 1074, in _fetch_all
  41.     self._result_cache = list(self.iterator())
  42.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/models/query.py", line 128, in __iter__
  43.     for row in compiler.results_iter():
  44.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 802, in results_iter
  45.     results = self.execute_sql(MULTI)
  46.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 848, in execute_sql
  47.     cursor.execute(sql, params)
  48.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 79, in execute
  49.     return super(CursorDebugWrapper, self).execute(sql, params)
  50.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
  51.     return self.cursor.execute(sql, params)
  52.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/utils.py", line 95, in __exit__
  53.     six.reraise(dj_exc_type, dj_exc_value, traceback)
  54.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
  55.     raise value.with_traceback(tb)
  56.   File "/home/kelly/work/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
  57.     return self.cursor.execute(sql, params)
  58. django.db.utils.ProgrammingError: permission denied for relation django_migrations
  59.  
  60. (venv) kelly@kelly-vm:~/work/venv/storycal/django_app$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement