Sistema de Informações Gerenciais do Interlegis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
526 B

#!/usr/bin/env python
# -*- mode: python -*-
import os, sys
sys.path.insert(0, '/var/interlegis/sigi')
sys.path.insert(0, '/var/interlegis/sigi/sigi')
os.environ['DJANGO_SETTINGS_MODULE'] = 'sigi.settings'
from django.core.management.validation import get_validation_errors
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
s = StringIO()
num_errors = get_validation_errors(s, None)
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()