It does import but the DJANGO_SETTINGS_MODULE is not defined so it
gives a traceback
>>> import django
>>> import satchmo.shop
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/satchmo/shop/__init__.py",
line 12, in ?
signals.satchmo_cart_add_verify.connect(veto_out_of_stock)
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
dispatch/dispatcher.py", line 76, in connect
if settings.DEBUG:
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
utils/functional.py", line 269, in __getattr__
self._setup()
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
conf/__init__.py", line 38, in _setup
raise ImportError("Settings cannot be imported, because
environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
On Aug 2, 1:05 pm, "Brian O'Connor" <[email protected]> wrote:
> If you open a terminal and type:
> import django
> import satchmo.shop
>
> Does it work?
>
> On 8/2/10, tomfmason <[email protected]> wrote:
>
>
>
> > We have had a store running satchmo 0.8.1 on a windows server for some
> > time now. I have been tasked with moving it to a linux server and am
> > running into issues with the initial setup. I have all of the
> > dependenecies installed correctly as far as I can tell. When I try to
> > do the initial db sync I see the following:
>
> > python manage.py syncdb
> > Traceback (most recent call last):
> > File "manage.py", line 11, in ?
> > execute_manager(settings)
> > File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
> > core/management/__init__.py", line 362, in execute_manager
> > utility.execute()
> > File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
> > core/management/__init__.py", line 303, in execute
> > self.fetch_command(subcommand).run_from_argv(self.argv)
> > File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
> > core/management/__init__.py", line 257, in fetch_command
> > klass = load_command_class(app_name, subcommand)
> > File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
> > core/management/__init__.py", line 67, in load_command_class
> > module = import_module('%s.management.commands.%s' % (app_name,
> > name))
> > File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
> > utils/importlib.py", line 35, in import_module
> > __import__(name)
> > File "/usr/lib/python2.4/site-packages/South-0.7.1-py2.4.egg/south/
> > management/commands/__init__.py", line 10, in ?
> > import django.template.loaders.app_directories
> > File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/
> > template/loaders/app_directories.py", line 22, in ?
> > raise ImproperlyConfigured, 'ImportError %s: %s' % (app,
> > e.args[0])
> > django.core.exceptions.ImproperlyConfigured: ImportError
> > satchmo_store.shop: No module named satchmo_store.shop
>
> > Here is our current settings -http://pastie.org/1071155
>
> > Any suggestions would be greatly appreciated
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Satchmo users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/satchmo-users?hl=en.
>
> --
> Sent from my mobile device
>
> Brian O'Connor
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.