add a special management using the production settings
This commit is contained in:
parent
d75120b452
commit
1e921068d5
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
import sys
|
||||
import os.path
|
||||
|
||||
from django.core.management import execute_manager
|
||||
import settings.prod as settings
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
if __name__ == "__main__":
|
||||
execute_manager(settings)
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
/home/docbow/env/bin/python /home/docbow/source/docbow_project/manage.py sendmail "$@"
|
||||
/home/docbow/env/bin/python /home/docbow/source/docbow_project/prod.py sendmail "$@"
|
||||
|
||||
|
|
Loading…
Reference in New Issue