Skip to content
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

Error in import #178

Open
HandBoy opened this issue Aug 31, 2018 · 5 comments
Open

Error in import #178

HandBoy opened this issue Aug 31, 2018 · 5 comments

Comments

@HandBoy
Copy link

HandBoy commented Aug 31, 2018

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

@live-wire
Copy link

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

@zhangxu999
Copy link

Same problem.

@itsmeakhil
Copy link

itsmeakhil commented Oct 23, 2019

the same problem for me also

@nabil-mokhtar
Copy link

any news ?

@Hammadulhaq123
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants