-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test crashes - u'admin' is not a registered namespace #90
Comments
Does test crashes also when running standalone or only when running on TravisCI? |
It happens locally too! |
+1, both on cloud CI and locally |
I'm getting this error locally, and I'm also getting it when my site with django-suit is deployed to Heroku. When I navigate to /admin/ I get a 500 for the "not a registered namespace" issue. I'm troubleshooting now. Django: 1.5.1 When running locally, navigating to /admin/ does not produce the error. Running the tests does, however, as daGrevis indicated above. |
I had a circular import problem. I had a ModelForm in one of my admin.py files that needed to use reverse()
This was a problem because reverse() imports urls.py which hits autodiscover() which imports this admin.py which was trying to use reverse(). To avoid it, I was running autodiscover() after I had already imported my application urls:
As a workaround until I find a better solution, I simply hardcoded the url into admin.py and am calling autodiscover() at the top of my urls.py again. This solves the problem for me when deployed on Heroku. I can navigate to '/admin/' now without an error. The tests, however, still complain about the registered namespace problem. I wasn't able to trace why that is happening. |
Does anyone have a solution for dealing with the django test error: |
After third attempt investigating this issue, i finally found the solution.
|
Thank you. Tests now pass. |
https://travis-ci.org/daGrevis/daGrevis.lv/jobs/6494392
W/o suit, there isn't such error.
The text was updated successfully, but these errors were encountered: