diff options
Diffstat (limited to 'cron/create_country_sidebar.py')
-rw-r--r-- | cron/create_country_sidebar.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cron/create_country_sidebar.py b/cron/create_country_sidebar.py deleted file mode 100644 index f660c73..0000000 --- a/cron/create_country_sidebar.py +++ /dev/null @@ -1,19 +0,0 @@ -import sys, os - -sys.path.append('/home/luxagraf/webapps/django1_1') -sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf') -sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf/apps') -sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf/lib') -sys.path.append('/home/luxagraf/webapps/django1_1/lib/python2.5/') -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' - -from django.template import Context -from django.template import loader -from django.conf import settings -from locations.models import Country,Region -c = Context({'country_list': Country.objects.filter(visited=True),}) -t = loader.render_to_string('includes/country_sidebar_template.html',c) -fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/country_sidebar.html') -file = open(fpath, 'w') -file.write(t) -file.close()
\ No newline at end of file |