graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04979
[Question #252138]: Cannot initialize the database with django-admin.py syncdb --settings=graphite.settings
New question #252138 on Graphite:
https://answers.launchpad.net/graphite/+question/252138
I am following INSTALL and am trying to initialize the database.
It says to do the following:
export PYTHONPATH=$PYTHONPATH:$GRAPHITE_ROOT/webapp
django-admin.py syncdb --settings=graphite.settings
On syncdb, I got the following error:
Traceback (most recent call last):
File "/usr/local/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 261, in fetch_command
commands = get_commands()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 132, in __init__
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'graphite.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named graphite.settings
I've tried to reinstall graphite from source, or from pip but same thing happens.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.