wuvt / wuvt-site

Website including a CMS, playlist information, and donation management tools
https://www.wuvt.vt.edu
GNU Affero General Public License v3.0
11 stars 12 forks source link

Local auth is broken #364

Closed mutantmonkey closed 4 years ago

mutantmonkey commented 4 years ago

When trying to launch the site with local auth configured (the default), one gets the following error:

Traceback (most recent call last):
  File "./wuvt/__init__.py", line 111, in <module>
    auth_manager.init_app(app)
  File "./wuvt/auth/auth_manager.py", line 63, in init_app
    from . import local_views
  File "./wuvt/auth/local_views.py", line 3, in <module>
    from wuvt.auth import login_user, get_user_roles
ImportError: cannot import name 'get_user_roles' from 'wuvt.auth' (./wuvt/auth/__init__.py)

This is because when local auth is enabled, local_views.py tries to import from the same file that imports it.