Projects tagged ‘django’ and ‘gae’


Jump to tag:

Projects tagged ‘django’ and ‘gae’

Filtered by Project Tags django gae

Refine results Project Tags python (40) appengine (13) blog (7) cms (4) app (4) jquery (4) ajax (3) engine (3) web (3) java (2) appspot (2) google (2)

[53 total ]

0 Users

一个简单的django示例,在google app engine上跑起来,用的是google中默认的django0.96
Created 9 months ago.

0 Users

A port of Simon Willison's ratelimitcache http://simonwillison.net/2009/Jan/7/ratelimitcache/ to use with Django on Google App Engine: ratelimitcache.py Basic usage (max 20 requests every 3 ... [More] minutes): from ratelimitcache import ratelimit @ratelimit(minutes = 3, requests = 20) def myview(request): # ... return HttpResponse('...')Protecting a login form, i.e rate limit on IP address and attempted username: from ratelimitcache import ratelimit_post @ratelimit_post(minutes = 3, requests = 10, key_field = 'username') def login(request): # ... return HttpResponse('...') [Less]
Created 4 months ago.

0 Users

This applications aims to find the most core values of a given society. More information will be available as it gets developed.
Created 3 months ago.

0 Users

an website project base on GAE for conllection information about HOT NEWS.
Created 12 months ago.

0 Users

Welcome to Django-gae-cacheThis project contains Django middleware and Google App Engine application. MotivationI have few small web application on poor VPS (Virtual Private Server). Because there ... [More] is everything on single server (Django, MySQL server, static content), I though how to lower server load/save memory/whatever. And this project is a result of my invention. Using this application, you will save bandwidth, memory and CPU load of your web server, because all static resources will be served with Google App Engine. Installation InstructionsThese instructions was written for version 1.0.0, but following versions are backward compatible. Download and installInstall package using distutils: svn checkout http://django-gae-cache.googlecode.com/svn/trunk/ django-gae-cache cd django-gae-cache sudo python setup.py installUpdate your settings.py... and add the middleware and installed apps settings: # Something long and unpredictable GAE_CACHE_SECRET_KEY = 'qwertyuiop' # URL of your google app GAE_CACHE_URL = 'http://yourapp.appspot.com' # Turn on/off GAE cache GAE_CACHE_USE = True MIDDLEWARE_CLASSES = ( ... 'django_gae_cache.middleware.DjangoGaeCacheMiddleware', ... ) INSTALLED_APPS = ( ... 'django_gae_cache', ... )Signup for Google app engine... and download Google SDK to your computer. http://code.google.com/appengine/ Configure GAE applicationGo to PACKAGE_DIR/gae-cache, copy _app.yaml to app.yaml and _config.py to config.py In app.yaml, replace YourAppName with name of your Google App Engine application. In config.py, fill SOURCE_URL with name of your site. Also set up SECRET_KEY to the same string, as is settings.GAE_CACHE_SECRET_KEY in your Django application. Also set MEDIA_URL to the same string, as is settings.MEDIA_URL in your Django application. Deploy GAE applicationIn PACKAGE_DIR/gae-cache, run "appcfg.py update ." (appcfg.py is part of GAE SDK, which you downloaded in 3rd step). Now visit http://yourapp.appspot.com. You should be redirected to your site or see 403 Forbidden (depends on gae-cache configuration). It is OK. Find some existing resource file on your site (http://yourdjangosite.com/media_url/some_file.jpg and call them thru appspot: http://yourapp.appspot.com/media_url/some_file.jpg. Working? Great! UsageCaching mechanism is working out of the box. Immediately after setting up middleware and GAE application, your HTML pages are searched for hyperlinks to static resources and replaced by URL to the same resource using GAE application. On first call of resource, GAE application downloads static resource from your server and save it into memcache. On next request, resource is loaded from memcache, without request to your web server. Invalidate cacheSometimes you want to change or delete resource. You can invalidate one specific file or whole GAE cache: from django_gae_cache import api a = api.Api() a.Invalidate('/relative/path/to/resource.jpg') # or a.InvalidateAll()That's all! You can use that for example in save()/delete() method of your Resource model. Memcache principeOn GAE application, resources are stored in memcache structures (there is 10GB free quota on GAE, which is enough for middle-size site). Memcache will free the oldest unused resources, when there application need space for newer resource. It means, we don't care of any advanced cache management, because in memcache are the most useful items at every time... TODOMy web application is far to GAE quota limits, so GAE cache dont have any fallback mechanism yet. It means, that resources are always redirected to GAE and Django dont care, if GAE application is working (GAE is down or over free quota). If you are near to quota limits, it is good idea to enable billing. In near future, I will add some intelligence to Django middleware, which will be able to decide, if resource should be redirected to GAE or not. CONCLUSIONLet me know, if you are using this GAE cache in your project! [Less]
Created 3 months ago.

0 Users

OpenID Consumer/Relying Party (RP) for Google App Engine Django projects implemented as a Django app. Derived by Wesley Tanaka from Brian Ellin's WSGI demand.openid.net OpenID consumer. ... [More] Patches/suggestions appreciated. Join the discussion group To install with a new Google App Engine project: Get the Google App Engine Helper for Django. You will need a version which works with the Django bundled with the latest version of the App Engine SDK. Get the google-app-engine-django-openid source (using the Source tab above) and copy it into the same directory, overwriting urls.py from the App Engine Helper distribution add 'openidgae' to INSTALLED_APPS in settings.py add 'openidgae.middleware.OpenIDMiddleware' to MIDDLEWARE_CLASSES in settings.py To install with an existing Google App Engine project: get the openid and openidgae directories from the subversion respository and put them in your main application directory Modify your urls.py using this urls.py as an example add 'openidgae' to INSTALLED_APPS in settings.py add 'openidgae.middleware.OpenIDMiddleware' to MIDDLEWARE_CLASSES in settings.py To get a copy of the latest svn trunk without any polluting .svn directories, you should be able to do: svn export http://google-app-engine-django-openid.googlecode.com/svn/trunk/ google-app-engine-django-openid-export [Less]
Created 12 months ago.

0 Users

IntroJIEBlog is a simple blog engine host on Google App Engine.Currently, we just finished the basically functions of the blog engine. You can get the developing code from ... [More] http://github.com/jie/jieblog/tree/master,i used http://code.google.com to write the docs of JIEBlog, and i used http://www.Github.com as my version control system. Just install Git and clone it: git clone git://github.com/jie/jieblog.gitJIEBlog use google account as admin account, so just Signin and goto http://youappspot.appspot.com/admin to get start. ---- To do listCurrently we are trying to finish the blog engine functions:Pic upload Admin dashboard Theme functions Feeds [Less]
Created 12 months ago.

0 Users

Thing that makes decisions instead of You...
Created 7 months ago.

0 Users

grac stands for GAE tRAc Clone, where GAE stands for Google Apps Engine. grac is an attempt to develop a simple trac sobstitute in google apps engine and python.
Created 7 months ago.

0 Users

Site presents collection of photos. The plan is to use Picasa API for publiching pictures to site built on GAE with Django from Picasa client. Portions of site were taken from Rietveld project.
Created 12 months ago.