Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. version1 = ('1.0','2.0')
  2. version2 = ('3.0','4.0')
  3. if request.META['HTTP_VERSION'] in version1:
  4. #run this code
  5. elif request.META['HTTP_VERSION'] in version2:
  6. #run this code
  7. else:
  8. # run this code
Add Comment
Please, Sign In to add comment