Friday 15 August 2014

python - AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module' -


I keep the following errors in the exceptions I send to them

AttributeError: 'RegexURLResolver' Object does not have any attribute '_urlconf_module'

And trace only indicates the Codex Code Base code for pointing to any location in its application. Are my logs too clean? @propertydef urlconf_module (auto): Try: return attributeError except self._urlconf_module: self._urlconf_module: Is this a possible reason for

  Resolver404 lifting ({path 'path'}) May be import_module (self.urlconf_name) return self._urlconf_module @property 'self' & lt; RegexURLResolver URL (None: None) ^ / & gt;    

Otherwise on the Internet I found:

The problem is due to the problem of import order, in your example code, you call urlresolvers. The reverse which will load the example / urls.py, which will trigger an administrator. Autodiscover () call, which will load social / app / DJ ango_app / default /admin.py, which will attempt to load your custom user model which will fail to load your user model.

I pressed the problem when I called the function directly from the views. Py , and this function resulted in solved , which might be an import issue since a function called from views.py Bad style may, however, debug the subject with help in the above comment.

No comments:

Post a Comment