add a special management using the production settings

This commit is contained in:
Benjamin Dauvergne 2012-10-08 15:28:46 +02:00
parent d75120b452
commit 1e921068d5
2 changed files with 12 additions and 1 deletions

11
docbow_project/prod.py Normal file
View File

@ -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)

View File

@ -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 "$@"