<s> from django . conf . urls . defaults import * <EOL> from tastypie . api import Api <EOL> from basic . api . resources import NoteResource , UserResource , BustedResource , CachedUserResource , SlugBasedNoteResource , SessionUserResource <EOL> api = Api ( api_name = '<STR_LIT>' ) <EOL> api . register ( NoteResource ( ) , canonical = True ) <EOL> api . register ( UserResource ( ) , canonical = True ) <EOL> api . register ( CachedUserResource ( ) , canonical = True ) <EOL> v2_api = Api ( api_name = '<STR_LIT>' ) <EOL> v2_api . register ( BustedResource ( ) , canonical = True ) <EOL> v2_api . register ( SlugBasedNoteResource ( ) ) <EOL> v2_api . register ( SessionUserResource ( ) ) <EOL> urlpatterns = v2_api . urls + api . urls </s>
