diff --git a/main.py b/main.py index 18103e44..fe945714 100644 --- a/main.py +++ b/main.py @@ -30,15 +30,23 @@ import datetime import traceback import StringIO -from google.appengine.runtime import DeadlineExceededError - -from google.appengine.api import taskqueue -from google.appengine.ext.webapp import template -from google.appengine.api import users -from google.appengine.ext import webapp -from google.appengine.ext.webapp import util +## Just to shut up the appengine warning about "You are using the +## default Django version (0.96). The default Django version will +## change in an App Engine release in the near future. Please call +## use_library() to explicitly select a Django version. For more +## information see +## http://code.google.com/appengine/docs/python/tools/libraries.html#Django" +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' +from google.appengine.dist import use_library +use_library('django', '1.2') from google.appengine.ext import db +from google.appengine.api import taskqueue +from google.appengine.api import users +from google.appengine.ext import webapp +from google.appengine.ext.webapp import template +from google.appengine.ext.webapp import util +from google.appengine.runtime import DeadlineExceededError from ffstorage import * diff --git a/settings.py b/settings.py new file mode 100644 index 00000000..1e2a09d2 --- /dev/null +++ b/settings.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +# Copyright 2011 Fanficdownloader team +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +## Just to shut up the appengine warning about "You are using the +## default Django version (0.96). The default Django version will +## change in an App Engine release in the near future. Please call +## use_library() to explicitly select a Django version. For more +## information see +## http://code.google.com/appengine/docs/python/tools/libraries.html#Django" + +pass