Skip to content

Error in import  #178

@HandBoy

Description

@HandBoy

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

Activity

live-wire

live-wire commented on Aug 31, 2018

@live-wire

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

zhangxu999

zhangxu999 commented on Nov 15, 2018

@zhangxu999

Same problem.

itsmeakhil

itsmeakhil commented on Oct 23, 2019

@itsmeakhil

the same problem for me also

nabil-mokhtar

nabil-mokhtar commented on Feb 6, 2021

@nabil-mokhtar

any news ?

Hammadulhaq123

Hammadulhaq123 commented on Oct 18, 2023

@Hammadulhaq123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @HandBoy@zhangxu999@live-wire@itsmeakhil@nabil-mokhtar

        Issue actions

          Error in import · Issue #178 · manosim/django-rest-framework-docs