Hello,

when I try to import a model into the  shipper.py of a custom shipping module 
the system crashes when the model file contains a admin.site.register 
(registering the model in the admin) . The error dispappears when I eliminate 
admin.site.register from the models.py

regards,

marc

I get following error messages :


Request Method: GET
Request URL:    http://localhost:8000/settings/
Django Version: 1.2.3
Exception Type: AttributeError
Exception Value:        
'NoneType' object has no attribute 'objects'

/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in 
get_response
                    response = callback(request, *callback_args, 
**callback_kwargs) ...
? Local vars
/usr/local/lib/python2.6/dist-packages/django_livesettings-1.4_4-py2.6.egg/livesettings/views.py
 in site_settings
    return group_settings(request, group=None, 
template='livesettings/site_settings.html') ...
? Local vars
/usr/local/lib/python2.6/dist-packages/django/views/decorators/cache.py in 
_wrapped_view_func
        response = view_func(request, *args, **kwargs) ...
? Local vars
/usr/local/lib/python2.6/dist-packages/django/contrib/admin/views/decorators.py 
in _checklogin
            return view_func(request, *args, **kwargs) ...
? Local vars
/usr/local/lib/python2.6/dist-packages/django_livesettings-1.4_4-py2.6.egg/livesettings/views.py
 in group_settings
    }, context_instance=RequestContext(request)) ...
? Local vars
/usr/local/lib/python2.6/dist-packages/django/template/context.py in __init__
            self.update(processor(request)) ...
? Local vars
/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_2-py2.6.egg/satchmo_store/shop/context_processors.py
 in settings
    shop_config = Config.objects.get_current() ...
? Local vars
/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_2-py2.6.egg/satchmo_store/shop/models.py
 in get_current
            site = Site.objects.get_current() 

-- 
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.

Reply via email to