Skip to content

leopittelli/Django-on-App-Engine-Example

Repository files navigation

Django on App Engine Example

Run Django projects on Google App Engine Platform. This is a base project developed for using Django non-rel on Google App Engine.

Introduction

I started using python on Google App Engine but then I need something more powerful than the great webapp2 framework. Mainly something like the Django admin so after a research finished using with the great iniciative of Django non-rel.

Although you can use Django on App Engine third-party Django applications that use the Django data modeling interface—most notably Django's Admin application—may not work with App Engine directly. source

Features

  • Administrable global configurations with django-solo
  • Translation ready. Template and cacheable JS translation. Language selector in the index template.
  • Translatable fields in models with Model translation
  • WYSIWYG editor for admin with summernote
  • Cache enabled by default. Add @never_cache decorator to the views that must not be cached
  • Base template with Initializr.

Installation

  • Download and install the App Engine SDK for python
  • Clone this repo: git clone https://github.com/leopittelli/Django-Google-App-Engine-Base-Project.git
  • Run the app as usual, with the App Engine Launcher or in the command line: dev_appserver.py myapp

Usage

You can start in the folder main. It intends to be the main django app in your project. You can add your models, views and so on.

Third-party libraries

As you can not install any app/library in App Engine, all the dependencies must be part of the source code. Django non-rel and its dependencies are all added in the project. Also the applications described in features.

Deployment

  • Remember to run python manage.py collectstatic in the root of the project to collect all the staticfiles into the /static folder.
  • Uncomment the static handler in the app.yaml file.
  • Deploy as usual. I recommend the button of the App Engine Launcher.

About

Django base project for working on Google App Engine Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published