Hi.
-- i was creating simple REST_framework this api view ,connot import name in error. how to reslove this error
__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\Meghanathan\Desktop\java script\drf_api\drf_api\urls.py", line 4, in <module>
from core.views import test_view
File "C:\Users\Meghanathan\Desktop\java script\drf_api\core\views.py", line 6, in <module>
from rest_framework.views import APIview
ImportError: cannot import name 'APIview' from 'rest_framework.views' (C:\Users\Meghanathan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\rest_framework\views.py)
Regards
Meganathan G
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/caadf361-1757-4c28-bdc3-fd00f4cddd5e%40googlegroups.com.
No comments:
Post a Comment