I am trying to pick up an old Django project and my immediate goal is to see what I can get running on my computer on the development server. I get:
Inner Sanctum ~/pragmatometer $ python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
commands = get_commands()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 132, in __init__
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'pragmatometer.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named pragmatometer.settings
Here is some command line output:
Inner Sanctum ~/pragmatometer $ /bin/pwd /Users/jonathan/pragmatometer Inner Sanctum ~/pragmatometer $ echo $PYTHONPATH /Users/jonathan Inner Sanctum ~/pragmatometer $ python Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pragmatometer Traceback (most recent call last): File "", line 1, in ImportError: No module named pragmatometer >>> import pragmatometer.settings Traceback (most recent call last): File "", line 1, in ImportError: No module named pragmatometer.settings >>>
What should I be doing that I'm not? (Or, as it was an older project, should I just start with a fresh new project?)
Thanks,