我在django项目中使用userena应用程序,当运行python manage.py migrate
时,它只会发出以下警告:
/usr/local/lib/python2.7/dist-packages/userena/utils.py:133: RemovedInDjango19Warning: django.db.models.get_model is deprecated.
profile_mod = get_model(*settings.AUTH_PROFILE_MODULE.rsplit('.', 1))/usr/local/lib/python2.7/dist-packages/django/db/models/init.py:55: RemovedInDjango19Warning: The utilities in django.db.models.loading are deprecated in favor of the new application loading system. from . import loading
如何解决这个问题?在
顺便说一句,我发现github(https://github.com/bread-and-pepper/django-userena)的最新版本失败了,所以这个项目不再维护了?在
您可以在userna's github repo上使用open a pull request,或者如果有困难,您可以等到维护人员或其他贡献者解决此问题,然后您必须更新包版本。在
第三方应用程序也有很多类似的警告,但如果可能的话最好提供帮助。在
相关问题 更多 >
编程相关推荐