Scripts posted recently tagged to script in Kelpi

1- 2 of 2.

Access django trought a python shell script

to django python console script by nando.quintana

#!/usr/bin/python
from sys import path
path.append('/path/to/folder/where/argazkiak_org/is/')
from argazkiak_org.photokora.models import TempPhoto
print TempPhoto.objects.all()

Launch a django script from console

to django python console script bash by nando.quintana

#!/bin/bash

export DJANGO_SETTINGS_MODULE=argazkiak_org.settings
python /var/csmant/django/argazkiak_org/photokora/background_process.py
hits counter