Here are the examples of the python api django.get_version.split taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
3
Example 1
def test_version(self):
"--version is handled as a special case"
args = ['--version']
out, err = self.run_manage(args)
self.assertNoOutput(err)
# Only check the first part of the version number
self.assertOutput(out, get_version().split('-')[0])
3
Example 2
Project: django-flatcontent Source File: test_admin.py
def setUp(self):
self.user = UserFactory.create()
self.user.is_active = True
self.user.is_staff = True
self.user.is_superuser = True
self.user.save()
self.site = Site.objects.get()
self.django_version = [int(v) for v in django.get_version().split('.')]
0
Example 3
def django_version():
return [int(x) for x in django.get_version().split('.')]