Christian,
  There are few changes in the Reviewboard source. These are minor and 
definitely not related to app initialization and loading extensions.
  Also, these changes have been there for 4-5 years. I have made several 
upgrades by merging newer code from RB open source.
  I never had this issue.

  I am going to try out a few things like not installing the extensions and 
install RB 3.0.15 without my changes etc.
  Let's see how it goes. I might need more help.
  Thank you.

Koushik




On Thursday, January 23, 2020 at 5:01:40 PM UTC-5, Koushik Roy wrote:
>
>
> 1. Upgraded from RB 3.0.6 to 3.0.15
> 2. Everything went fine except -
>
>   rb-site manage /var/www/reviewboard rebuild_index (or update_index) 
> gives error:
>
> ERROR:djblets.extensions.manager:Error loading extension rbmotd: 
> APPLICATION_MODEL refers to model oauth.Application that has not been 
> installed
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python2.7/dist-packages/Djblets-1.0.12-py2.7.egg/djblets/extensions/manager.py",
>  
> line 704, in _load_extensions
>     ext_class = entrypoint.load()
>   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", 
> line 2443, in load
>     return self.resolve()
>   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", 
> line 2449, in resolve
>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File 
> "/usr/local/lib/python2.7/dist-packages/rbmotd-1.0-py2.7.egg/rbmotd/extension.py",
>  
> line 2, in <module>
>     from reviewboard.extensions.hooks import TemplateHook
>   File 
> "/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15.1.dev0-py2.7.egg/reviewboard/extensions/hooks.py",
>  
> line 48, in <module>
>     from reviewboard.urls import (diffviewer_url_names,
>   File 
> "/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15.1.dev0-py2.7.egg/reviewboard/urls.py",
>  
> line 49, in <module>
>     admin.autodiscover()
>   File 
> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/contrib/admin/__init__.py",
>  
> line 29, in autodiscover
>     import_module('%s.admin' % app)
>   File 
> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/utils/importlib.py",
>  
> line 40, in import_module
>     __import__(name)
>   File 
> "/usr/local/lib/python2.7/dist-packages/django_oauth_toolkit-0.9.0-py2.7.egg/oauth2_provider/admin.py",
>  
> line 9, in <module>
>     Application = get_application_model()
>   File 
> "/usr/local/lib/python2.7/dist-packages/django_oauth_toolkit-0.9.0-py2.7.egg/oauth2_provider/models.py",
>  
> line 267, in get_application_model
>     raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL))
> ImproperlyConfigured: APPLICATION_MODEL refers to model oauth.Application 
> that has not been installed
>
>
> Note: I have added an explicit dependency on requests-oauthlib>=0.8,<=1.0 
> and on django-braces==1.13 as required in RB 3.0.16
>
> What could I be missing?
> Appreciate any help.
> Thanks
>
> Koushik Roy
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/4608b91d-dcb7-472a-a6bb-b77843a61c70%40googlegroups.com.

Reply via email to