djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

global name 'managed_organization' is not defined #9

Closed skbohra closed 10 years ago

skbohra commented 10 years ago

I am getting this error after logging in and signing the terms and condition. Traceback

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/saas/

Django Version: 1.5 Python Version: 2.7.5 Installed Applications: ('gunicorn', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.markup', 'app_metrics', 'saas', 'testsite') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/home/skbohra/code/saass/vc/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/home/skbohra/code/saass/vc/lib/python2.7/site-packages/django/views/generic/base.py" in view
  2. return self.dispatch(request, _args, *_kwargs) File "/home/skbohra/code/saass/vc/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  3. return bound_func(_args, *_kwargs) File "/home/skbohra/code/saass/saas/decorators.py" in _wrapped_view
  4. return view_func(request, _args, *_kwargs) File "/home/skbohra/code/saass/vc/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  5. return func(self, _args2, *_kwargs2) File "/home/skbohra/code/saass/saas/views/profile.py" in dispatch
  6. return super(OrganizationListView, self).dispatch(_args, *_kwargs) File "/home/skbohra/code/saass/vc/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  7. return handler(request, _args, *_kwargs) File "/home/skbohra/code/saass/vc/lib/python2.7/site-packages/django/views/generic/list.py" in get
  8. self.object_list = self.get_queryset() File "/home/skbohra/code/saass/saas/views/profile.py" in get_queryset
  9. return managed_organization(self.request.user)

Exception Type: NameError at /saas/ Exception Value: global name 'managed_organization' is not defined

smirolo commented 10 years ago

Sorry for the delay. I tried to configure the settings in github to reduce the number of emails I receive and that also removed any notice from the projects I care about.

I pushed a lot of improvements we made in the last couple months. This error is fixed. Again, apologies for the delay.