django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

Error in import

Open HandBoy opened this issue 6 years ago • 5 comments

Hi I try use this solution to generate my api docs. I installed it with pip and add it name in INSTALLED_APPS, but, when i running the server, that error appears:

File "/my_pc/envs/my_project/lib/python3.5/site-packages/rest_framework_docs/api_docs.py", line 3, in from django.core.urlresolvers import RegexURLResolver, RegexURLPattern ImportError: No module named 'django.core.urlresolvers'

Anyone have any ideia for fix it?

I using: Django==2.0.7 djangorestframework==3.8.2 drfdocs==0.0.11

HandBoy avatar Aug 31 '18 00:08 HandBoy

Same problem. Please fix this. Can't move to Django2 without DRF Docs ❤️

live-wire avatar Aug 31 '18 03:08 live-wire

Same problem.

zhangxu999 avatar Nov 15 '18 04:11 zhangxu999

the same problem for me also

itsmeakhil avatar Oct 23 '19 11:10 itsmeakhil

any news ?

nabil-mokhtar avatar Feb 06 '21 23:02 nabil-mokhtar

RegexURLResolver, RegexURLPattern is not available from django 2.0 & above so inorder to use this framework you need to update the core files of the rest_frameworks_docs. I am working on it and will crack this in few days.

Hi I try use this solution to generate my api docs. I installed it with pip and add it name in INSTALLED_APPS, but, when i running the server, that error appears:

File "/my_pc/envs/my_project/lib/python3.5/site-packages/rest_framework_docs/api_docs.py", line 3, in from django.core.urlresolvers import RegexURLResolver, RegexURLPattern ImportError: No module named 'django.core.urlresolvers'

Anyone have any ideia for fix it?

I using: Django==2.0.7 djangorestframework==3.8.2 drfdocs==0.0.11

Hammadulhaq123 avatar Oct 18 '23 12:10 Hammadulhaq123