Source

sumatra-wiki / bin / smtwiki

#!/usr/bin/env python
import sys
from django.core import management
from sumatra_wiki import get_settings

settings = get_settings()
management.setup_environ(settings)
if len(sys.argv) > 1:
    port = sys.argv[1]
else:
    port = "8000"
management.call_command('runserver', port)