Not sure when this got added, but you can now see the ip’s most accessing your app, and hopefully you can block someone from using up your quota.
Posts Tagged ‘AppEngine’
Google AppEngine adds blacklists
Friday, May 28th, 2010Using django.contrib.sitemaps on AppEngine
Monday, May 17th, 2010If you use Google AppEngine and want to use the sites and sitemaps contrib apps you can use this modified version of the google-app-engine-django helper here: http://code.google.com/p/dherbst-app-engine-django/wiki/Sitemaps
AppEngine Design Philosophy
Saturday, February 13th, 2010I suppose I knew in the back of my mind, you’re not going to need it now, but eventually you will need to shard this*. So if you’re going to do anything in appengine, my advice is: just shard everything from the start. You’ll save yourself a world of hurt later on.
http://code.google.com/appengine/articles/sharding_counters.html
* This could be anything, it needn’t be just counters. Now the article is all about write contention, but it also demonstrates a very good approach to sharding data in the abstract. Depending on what you’re doing this is a very useful thing to do.
Amazon steps up to AppEngine
Thursday, May 28th, 2009Google’s AppEngine was quite promising from the start. Automatic scaling and load balancing without having to think about the administrative side is extremely nice.
But that’s about it. There’s a couple of things which make AppEngine a bit cumbersome to recommend for a new application, all of which are well served by Amazon EC2+ELB+ES:
- Lack of SSL for your custom domain
- Can’t use many django pluggables out of the box because of RDMS dependencies
- Some would say naked domains, but ELB can’t do naked domains either, so this is a wash.
- Can’t use other off the shelf software, like wordpress, etc.
Don’t get me wrong, I really like AppEngine, and for small apps I’m going to stick with it because of:
- Cost – the free instance can’t be beat. You’re at an automatic $100/month with EC2.
- Little to no infrastructure admin needed – mainly just some DNS.
- You can run Django 1.0 with either app-engine-patch, or the django-helper.
Google App Engine – django login_required Google Accounts
Tuesday, September 9th, 2008I like to use Google Accounts with App Engine and django. The django login_required decorator depends on the django auth model – so I rewrote it for use with Google Accounts authentication.
I’m not sure if it is better to cache the create_login_url or not, but this works well enough for now.
from django.http import HttpResponseRedirect from google.appengine.api import users def login_required(fn): """ checks to see if the user is logged in, if not, redirect to login """ def _dec(view_func): def _checklogin(request, *args, **kwargs): user = users.get_current_user() if user: return view_func(request, *args, **kwargs) else: return HttpResponseRedirect(users.create_login_url('/')) _checklogin.__doc__ = view_func.__doc__ _checklogin.__dict__ = view_func.__dict__ return _checklogin return _dec(fn)