14👍
✅
Originally I did pip3 install django-cors-headers
, instead by fluke I tried pip install django-cors-headers
and voila it worked.
Hope it helps somebody
0👍
I think you suppose to type the following command
pip3 install django-cors-headers
Hope this can help
- [Django]-How to create a custom 404 page for my Django/Apache?
- [Django]-Django on Heroku, url template tag causes 'ParseResult' object not callable
- [Django]-Import data into Django model with existing data?
- [Django]-Django-OIDC with keycloak – OIDC callback state not found in session oidc_states
- [Django]-Django AllAuth gives SSLError
0👍
I had a similar issue. In my case, Pip was installing Packages Into global environment While VirtualEnv was Activated. So following command worked for me-
<path-to-your-env>/bin/pip3 install -r requirements.txt
- [Django]-How to allow editing of templates for email by admin user in Django?
- [Django]-How to get the filename and line number of a Django template error when calling render()?
- [Django]-How to use has_object_permission with APIView in Django Rest Framework?
Source:stackexchange.com