Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version1 = ('1.0','2.0')
- version2 = ('3.0','4.0')
- if request.META['HTTP_VERSION'] in version1:
- #run this code
- elif request.META['HTTP_VERSION'] in version2:
- #run this code
- else:
- # run this code
Add Comment
Please, Sign In to add comment