django-rest-framework-docs
django-rest-framework-docs copied to clipboard
Django 2.0 Support
While trying to upgrade one of my projects to Django 2.0, I received the following error for drf-docs:
File ".../ve3.6/lib/python3.6/site-packages/rest_framework_docs/api_docs.py", line 3, in <module>
from django.core.urlresolvers import RegexURLResolver, RegexURLPattern
ModuleNotFoundError: No module named 'django.core.urlresolvers'
So far I have not found much about how those classes have been moved/changed in Django's latest versions, so I cannot yet contribute to fix this.
I think I may have found the info I need. Will try to submit a fix for this in the next day or two.
Further error received with Django 2.0:
File "/home/helmut/code/django-rest-framework-docs/demo/project/organisations/models.py", line 32, in Membership
organisation = models.ForeignKey(Organisation)
TypeError: __init__() missing 1 required positional argument: 'on_delete'
That seems to be on the demo project.
Also looking for this problem Is there any solution to fix it
I have started on a fix, but ran into some difficulties that I have not been able to solve yet. Will hopefully get some more time to look at this further in the next week.
The problem is that it'll need conditional checks, since the changes in 2.0 that are the issue here are not all present or back-ported in 1.11 and 1.8, which are the two Django versions still being supported.
@psyonara Would be really nice to have support for Django 2.0. I'm not a super pro but any way I can help?
This is fixed by #177 , I hope it will be merged soon ;-).
Hi guys, I just created a new lib supporting Django 1.x and 2.x: django-rest-framework-redocs.
It's also a zero configuration automatic API doc page generator, please take a look and help me make it better!
wait for this is closed as well
Awaiting merging of #177 and close, anyone working on it?
Any changes, any info when will be merged?
I noticed this is still open and also still an issue... any ETA on fix?
+1 on an ETA on this.
I'm sorry to bring this up, but this repo is quite unmaintained, more than 2 years since it last merged PR. At some point I stepped in, but I have stopped using it since (change of job). @manosim was quite quick to add me as committer, so if anyone wants to step in...
Same simple version for django 3 and 4 https://pypi.org/project/drfdocs2/