~jnaous/rpc4django/urlgroups

« back to all changes in this revision

Viewing changes to example/urls.py

  • Committer: Jad Naous
  • Date: 2010-11-20 07:43:51 UTC
  • Revision ID: jnaous@jadsm-20101120074351-u40j1micda55hzqd
Implement isolation across URLs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.conf.urls.defaults import *
 
2
from rpc4django.utils import rpc_url
2
3
 
3
4
# Uncomment the next two lines to enable the admin:
4
5
# from django.contrib import admin
14
15
 
15
16
    # Uncomment the next line to enable the admin:
16
17
    # (r'^admin/(.*)', admin.site.root),
17
 
    ('^$', 'rpc4django.views.serve_rpc_request'),
18
 
    ('^RPC2$', 'rpc4django.views.serve_rpc_request'),
 
18
    rpc_url('^$'),
 
19
    rpc_url('^RPC2$'),
19
20
)