Skip to content
Snippets Groups Projects
Commit c95ec9e6 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

getting real.

parent e6e7d8fc
No related branches found
No related tags found
No related merge requests found
File moved
"""
WSGI config for helsinki project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` setting.
Usually you will have the standard Django WSGI application here, but it also
might make sense to replace the whole Django WSGI application with a custom one
that later delegates to the Django one. For example, you could introduce WSGI
middleware here, or combine a Django application with an application of another
framework.
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "helsinki.settings")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
# application = HelloWorldApplication(application)
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)
import os
import sys
if __name__ == "__main__":
execute_manager(settings)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "helsinki.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Django==1.2.7
MySQL-python==1.2.3
PIL==1.1.7
Django==1.4.10
MySQL-python==1.2.5
Pillow==2.3.0
PyYAML==3.10
django-tinymce==1.5.1a2
django-tinymce==1.5.2
python-dateutil==1.5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment