Shubham
how to deal with it
Shubham
from .packages.urllib3.packages.ordered_dict import OrderedDict ImportError: No module named ordered_dict
Shubham
okay
Shubham
https://simpleisbetterthancomplex.com/tutorial/2018/11/22/how-to-implement-token-authentication-using-django-rest-framework.html
Shubham
im referring token-based authen
Shubham
as soon Im trying to hit http http://127.0.0.1:8000/hello/ on command line its throwing above error
Mirco
share your current code 😊
Shubham
okay
Shubham
https://github.com/sibtc/drf-token-auth-example
Mirco
https://github.com/sibtc/drf-token-auth-example
Which version of python are u using ?
Barry
Dear all, please I am fairly new to python and Django. I am working on project and I need to calculate the duration between two timefields. I will like to display the result in a view. Pls, can someone help me with the code to get this done.
Mirco
Python 3.5.2
Try to update your requirements.txt to the latest version of DRF and Django So 2.2 and 3.10.1
Shubham
let me try
Mirco
yup! it could be an issue related to urllib version
Mirco
done , but same issue
try to run pip install -U requests into your virtualenv
Mirco
Requirement already satisfied
which version of requests do you have ?
Pratiksha
Can anyone tell how to download images given from a drive link( input is given from a html page) using django
Mirco
requests 2.22.0
urllib3 instead ?
Shubham
urllib3 instead ?
urllib3 1.25.3
Shubham
urllib3 1.25.3
its latest
Mirco
its latest
try to downgrade urllib3 to 1.24.x
Mirco
anyway it's strange, with py3.x you should not have any problems
Shubham
how to create virtual environment with python 3.6 2 using virtual wrapper
Shubham
?
Shubham
mkivirtualenv nameVirtualmachine
with desired python version
Sheri's Tech
with desired python version
you want to install with version precisely?
Sheri's Tech
with desired python version
do you want to install with which version precisely?
Shubham
python 3.6.x
Mirco
how to create virtual environment with python 3.6 2 using virtual wrapper
using -p option mkvirtualenv -p path_to_your_py3.6.x name of venv
Sheri's Tech
python 3.6.x
use this command ' mkvirtualenv --python=/usr/bin/python3.6. nameOfEnvironment '
Sheri's Tech
-p is a shortcut 😊
at home I use it so brother! however, if my method is not accessible, he will have to use his own😄
Sheri's Tech
okay
you did it?
Shubham
Sheri's Tech
absolutely, everyone is free to use what they want 😃
😃😃😃you are not wrong
Sheri's Tech
doing
👍
Emeka
starting Django has been so confusing to me
Shubham
worked out
Shubham
thanks a lot everyone
Sheri's Tech
done bro
Congratulations
Emeka
can i start a project without creating virtual env?
Emeka
yes
it will have no problem right?
Emeka
not recommended 😊
creating env is frustrating for me.. does not work
Emeka
on windows
Rohan
Working on windows is not recommended
Anonymous
hmm
Shreehari
oh so where?
Linux based distros
Shreehari
Ubuntu/linux mint are suggested for beginners :)
Emeka
😕
Mirco
creating env is frustrating for me.. does not work
it's windows fault , not virtualenvs 😊
Emeka
i love python, but since i cant do django on my windows, wat else can i do with python?
Anonymous
i want to create a registeration forum in Django
Emeka
you can run django on windows
pls redirect me to best guide
Anonymous
is there is use of front-end language in Django?
Rohan
If by frontend language you mean HTML and CSS
Rohan
Yes. Sure.
Sai
How to find the logs of gunicorn