File: urls.py

package info (click to toggle)
python-facebook 0.svn20100209-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 208 kB
  • ctags: 196
  • sloc: python: 1,818; makefile: 39
file content (23 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from django.conf.urls.defaults import *

# Hack to get the project name
project = __name__.split('.')[0]

# You'd want to change this to wherever your app lives
urlpatterns = patterns(project + '.pyfacebook_sample.views',
    # Some functionality - users can post text to their homepage
    (r'^canvas/post/', 'post'),

    # For the mock AJAX functionality
    (r'^canvas/ajax/', 'ajax'),

    # This is the canvas callback, i.e. what will be seen
    # when you visit http://apps.facebook.com/<appname>.
    (r'^canvas/', 'canvas'),

    # Extra callbacks can be set in the Facebook app settings
    # page. For example, post_add will be called when a user
    # has added the application.
    (r'^post_add/', 'post_add'),

)