source: asadb/util/update_old_previews.py

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
2import sys
3import os
4
5if __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
11import forms.models
12
13if __name__ == '__main__':
14    forms.models.PagePreview.update_outdated_previews()
Note: See TracBrowser for help on using the repository browser.