Hello,
I wanted to download drf and run the test suite. I followed instructions
according to this doc:
http://www.django-rest-framework.org/topics/contributing/#testing
But if I run runtests.py I get this error:
collected 1186 items / 1 errors
=================================== ERRORS
====================================
__________________ ERROR collecting tests/test_authtoken.py
___________________
..\..\zapps\django\django\apps\registry.py:147: in get_app_config
return self.app_configs[app_label]
E KeyError: 'admin'
During handling of the above exception, another exception occurred:
tests\test_authtoken.py:8: in <module>
from rest_framework.authtoken.admin import TokenAdmin
rest_framework\authtoken\admin.py:12: in <module>
admin.site.register(Token, TokenAdmin)
..\..\zapps\django\django\utils\functional.py:213: in inner
self._setup()
..\..\zapps\django\django\contrib\admin\sites.py:525: in _setup
AdminSiteClass =
import_string(apps.get_app_config('admin').default_site)
..\..\zapps\django\django\apps\registry.py:154: in get_app_config
raise LookupError(message)
E LookupError: No installed app with label 'admin'.
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection
!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 4.69 seconds
===========================
Does DRF need to be run as part of a project? If so, the docs are
misleading.
I was assuming that I could run the tests as a standalone app.
Thanks
Chandrakant
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.