fle-internal / ka-lite-central

KA Lite central server code (wraps the ka-lite repository and adds features)
https://kalite.learningequality.org/
4 stars 20 forks source link

central.models import error #319

Closed benjaoming closed 4 years ago

benjaoming commented 4 years ago

Gotta figure this out quickly, seems a path is wrong and this is possibly a result of changing the WSGI environment after moving to UWSGI.

Traceback (most recent call last):

  File "/var/www/ka-lite-venv/local/lib/python2.7/site-packages/kalite/packages/bundled/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/var/www/ka-lite-venv/local/lib/python2.7/site-packages/kalite/shared/decorators/auth.py", line 35, in require_login_wrapper_fn
    return handler(request, *args, **kwargs)

  File "/var/www/ka-lite-venv/local/lib/python2.7/site-packages/kalite/shared/decorators/auth.py", line 55, in require_admin_wrapper_fn
    return handler(request, *args, **kwargs)

  File "/var/www/ka-lite-venv/local/lib/python2.7/site-packages/kalite/shared/decorators/auth.py", line 183, in require_authorized_admin_wrapper_fn_central
    return handler(request, *args, **kwargs)

  File "/var/www/ka-lite-venv/local/lib/python2.7/site-packages/annoying/decorators.py", line 92, in wrapper
    output = function(request, *args, **kwargs)

  File "/var/www/ka-lite-venv/local/lib/python2.7/site-packages/kalite/control_panel/views.py", line 187, in data_export
    from central.models import Organization

ImportError: No module named central.models
benjaoming commented 4 years ago

Fixed in #320