In last 2 weeks I tryed so much so a bit lost.
I think I did used the Django helper. Not sure at the moment. How to
check that?
Sorry for dumb questions - late nights do makes me stupid...
Here is my main.py:
============================================
import logging
import os,sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings'
#sys.path.append('c:/tmp/mashname')
# Google App Engine imports.
from google.appengine.ext.webapp import util
# Force Django to reload its settings.
from django.conf import settings
settings._target = None
import django.core.handlers.wsgi
import django.core.signals
import django.db
import django.dispatch.dispatcher
# Log errors.
#django.dispatch.dispatcher.connect(
# log_exception, django.core.signals.got_request_exception)
# Unregister the rollback event handler.
django.dispatch.dispatcher.disconnect(
django.db._rollback_on_exception,
django.core.signals.got_request_exception)
def main():
logging.getLogger().setLevel(logging.DEBUG)
# Create a Django application for WSGI.
application = django.core.handlers.wsgi.WSGIHandler()
# Run the WSGI CGI handler with that application.
util.run_wsgi_app(application)
if __name__ == '__main__':
main()
============================================
--
Alex
On Jun 27, 11:07 am, Mattias Johansson <
mattias.johans...@gmail.com>
wrote: