rest framework

58 views
Skip to first unread message

ifthikkarudheen t

unread,
Nov 3, 2020, 2:40:32 PM11/3/20
to Django REST framework
i ' m unable  to add rest framework  i get this error

  module = import_module(entry)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'rest-framework'

Abdulrahman Alotaibi

unread,
Nov 3, 2020, 4:37:09 PM11/3/20
to django-res...@googlegroups.com
Hi Ifthikkarudheen,

When you import 'rest-frameworm' inside .py files you need to use 'rest_framework' with an Underscore not a dash.

Sincerely,
Abdulrahman

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/f4106175-8ace-44a4-8793-606fd729ea59n%40googlegroups.com.

ifthikkarudheen t

unread,
Nov 3, 2020, 4:46:04 PM11/3/20
to django-res...@googlegroups.com
First i have tried with that.. that too doesn't work man... 

Xavier Ordoquy

unread,
Nov 3, 2020, 5:08:30 PM11/3/20
to django-res...@googlegroups.com
Hi,

Also make sure you install it first.
Django REST frameworks kickstart (https://www.django-rest-framework.org/tutorial/quickstart/#project-setup) should help you get it working.

Regards,
Xavier O.

Reply all
Reply to author
Forward
0 new messages