Home > appengine, django > Appengine – Appstats (python)

Appengine – Appstats (python)

Setting up Appstats for python and djangoappengine.

Assuming you have your djangoappengine setup as explained here.
Now following the instructions from http://code.google.com/appengine/docs/python/tools/appstats.html

1. Add this to settings.py

MIDDLEWARE_CLASSES = (
    'google.appengine.ext.appstats.recording.AppStatsDjangoMiddleware',

    # ...
)

2. Add this to app.yaml

builtins:
- appstats: on

That’s it. Now start your server is running

python2.5 manage.py runserver

Point your browser to http://127.0.0.1:8000/_ah/stats/
You should see something like
Appstats

Now add some data by visiting some pages eg http://127.0.0.1:8000/ (Do this in a different tab then refresh.) You should have some stats now.
Appstats

That’s it. Very simple and straight forward instructions from the docs.

Advertisements
Categories: appengine, django Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: