manosim / manosim/django-rest-framework-docs

Error in import

Open
#178 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
641
Forks
178
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the import failure with Django 2.0.7, djangorestframework 3.8.2, and drfdocs 0.0.11, then inspect rest_framework_docs/api_docs.py at the reported import. Done means the application starts with the documented dependencies and the API docs app loads without this ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, backend, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.