mitodl / open-discussions

BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

PR Building: ImproperlyConfigured: Unable to find site for site key: 'micromasters' #1025

Open pdpinch opened 5 years ago

pdpinch commented 5 years ago

On PR and dev builds, we get this error because the app isn't configured with a corresponding site.

https://sentry.io/mit-office-of-digital-learning/discussions/issues/575515179/

ImproperlyConfigured: Unable to find site for site key: 'micromasters'
  File "open_discussions/views.py", line 55, in index
    raise ImproperlyConfigured("Unable to find site for site key: '{}'".format(site_key))

ImproperlyConfigured: Unable to find site for site key: 'micromasters'
rhysyngsun commented 5 years ago

Easiest way to do this is to just do away with AuthenticatedSite

rhysyngsun commented 5 years ago

Things that need to be migrated away from AuthenticatedSite before we can remove it:

pdpinch commented 4 years ago

@rhysyngsun do you think we can close this?

rhysyngsun commented 4 years ago

@pdpinch I'd have to double check, but the data models and some usages of this are still in place i think and need to be removed.