The Data-Free application is a complete Django application that you can use as a template for a starting point for your own application. It has very minimal boilerplate template definitions and virtually no database usage (with one exception, explained below).
In this lesson, I will walk you through the different components of a Django App Engine application so you can understand how the parts work together. Below you can see a list of all the files that make up the application:
- app.yaml - Every (Python) App Engine application has an app.yaml file that describe how URL's are dispatched to render requests to the application. Note that we are statically serving /images/, /scripts/, /styles/, and files in the /static directories here.
- main.py - When you application is first started - it executed the code in main.py. This then sets up a handler for all future requests to your application (through the WSGI interface).
- settings.py - This is the first Django-specific file in our application. It sets up various global settings to modify the behavior of your application.
- urls.py - Directs how URL's are dispatched to Django View Functions in your application.
- views.py - This file contains View Functions that are called to fulfill requests to your application.
|
|