I got this error when doing the syncdb. I am using postgreSQL and currently install pinry. I just want to use this as a third party apps. Can someone help?
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 453, in execute_from_command_line
utility.execute()
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/uti ls/importlib.py", line 35, in import_module
import(name)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/commands/syncdb.py", line 8, in
from django.core.management.sql import custom_sql_for_model, emit_postsync signal
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/sql.py", line 9, in
from django.db import models
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/db/ init.py", line 11, in
if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/con f/init.py", line 53, in getattr
self._setup(name)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/con f/init.py", line 48, in _setup
self._wrapped = Settings(settings_module)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/con f/init.py", line 134, in init
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'pinry.settings.production' (Is it on sys .path?): cannot import name connection
I got this error when doing the syncdb. I am using postgreSQL and currently install pinry. I just want to use this as a third party apps. Can someone help?
Traceback (most recent call last): File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 453, in execute_from_command_line
utility.execute()
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/init.py", line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/uti ls/importlib.py", line 35, in import_module
import(name)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/commands/syncdb.py", line 8, in
from django.core.management.sql import custom_sql_for_model, emit_postsync signal
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/cor e/management/sql.py", line 9, in
from django.db import models
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/db/ init.py", line 11, in
if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/con f/init.py", line 53, in getattr
self._setup(name)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/con f/init.py", line 48, in _setup
self._wrapped = Settings(settings_module)
File "/home/cplewis/webapps/iprayit/ENV/lib/python2.7/site-packages/django/con f/init.py", line 134, in init
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'pinry.settings.production' (Is it on sys .path?): cannot import name connection