fysm-4-1space-accessstablestagetest-hooks
Last change
on this file was
0265c6d,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
Add code to actually update previews
|
-
Property mode set to
100755
|
File size:
379 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | import sys |
---|
3 | import os |
---|
4 | |
---|
5 | if __name__ == '__main__': |
---|
6 | cur_file = os.path.abspath(__file__) |
---|
7 | django_dir = os.path.abspath(os.path.join(os.path.dirname(cur_file), '..')) |
---|
8 | sys.path.append(django_dir) |
---|
9 | os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' |
---|
10 | |
---|
11 | import forms.models |
---|
12 | |
---|
13 | if __name__ == '__main__': |
---|
14 | forms.models.PagePreview.update_outdated_previews() |
---|
Note: See
TracBrowser
for help on using the repository browser.