diff --git a/scripts/README b/scripts/README new file mode 100644 index 0000000..bec068a --- /dev/null +++ b/scripts/README @@ -0,0 +1,8 @@ +To use this scripts, you have to add the projects location to the +pythonpath. This is easily archieved by setting an environment variable +like this: + +export PYTHONPATH=/opt/projects/:/opt/projects/dns_mdb + +It is important that both the path abov the project and the project +folder itself are added to the path before the script is run. diff --git a/scripts/zone_file_creator.py b/scripts/zone_file_creator.py new file mode 100755 index 0000000..708a429 --- /dev/null +++ b/scripts/zone_file_creator.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +# coding: utf-8 + +from django.core.management import setup_environ +from dns_mdb import settings + +setup_environ(settings) + +from mdb.models import * +