started writing zone file creator script
This commit is contained in:
1 parent
833366ad0e
commit
e9b673c331
2 files changed
+18
No files matched your search
@@ -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.
|
||||
Executable
+10
@@ -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 *
|
||||
|
||||
Reference in new issue
Block a user