Skip to content
This repository
Newer
Older
100755 26 lines (23 sloc) 0.778 kb
71919c6b »
2012-09-21 added makemessages script
1 #!/usr/bin/env python
2 from cms.test_utils.cli import configure
3 from cms.test_utils.tmpdir import temp_dir
4 import os
5
6 def main():
7 with temp_dir() as STATIC_ROOT:
8 with temp_dir() as MEDIA_ROOT:
9 configure(
10 ROOT_URLCONF='cms.test_utils.project.urls',
11 STATIC_ROOT=STATIC_ROOT,
12 MEDIA_ROOT=MEDIA_ROOT,
13 DATABASES = {
14 'default': {
15 'ENGINE': 'django.db.backends.sqlite3',
16 'NAME': 'cmstestdb.sqlite',
17 }
18 }
19 )
20 from django.core.management import call_command
21 os.chdir('cms')
22 call_command('makemessages', all=True)
23
24 if __name__ == '__main__':
25 main()
Something went wrong with that request. Please try again.