Jump to content


Sigadore

Member Since 23 Aug 2014
Offline Last Active Aug 25 2014 08:31 PM
-----

Posts I've Made

In Topic: Chapter 10 Django Error Page 369

23 August 2014 - 02:14 PM

From the following in Google App Engine Python Third Party Libraries (Django), it appears that Django is available with Python 2.7, but needs to be explicitly included in the "app.yaml" by indicating it as a library:

libraries:
- name: django
  version: "1.2"

This gets past the first hurdle, of not having anything available from the django module. However, it still requires an environment variable set to load the Django settings, so "app.yaml" needed this as well:

env_variables:
  DJANGO_SETTINGS_MODULE: 'settings'

Finally, since most appear to be played with by the Google framework, I placed some benign values into the file named "settings.py":

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'America/Los_Angeles'

USE_I18N = True

USE_L10N = True

USE_TZ = True

At this point I have the Webpage displaying with the Form, hopefully the remainder works as well.