forked from django-cms/django-cms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python | ||
from cms.test_utils.cli import configure | ||
from cms.test_utils.tmpdir import temp_dir | ||
import os | ||
|
||
def main(): | ||
with temp_dir() as STATIC_ROOT: | ||
with temp_dir() as MEDIA_ROOT: | ||
configure( | ||
ROOT_URLCONF='cms.test_utils.project.urls', | ||
STATIC_ROOT=STATIC_ROOT, | ||
MEDIA_ROOT=MEDIA_ROOT, | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': 'cmstestdb.sqlite', | ||
} | ||
} | ||
) | ||
from django.core.management import call_command | ||
os.chdir('cms') | ||
call_command('makemessages', all=True) | ||
|
||
if __name__ == '__main__': | ||
main() |