예제 #1
0
from BdayApp.EventMembersView import EventMembersView
from BdayApp.FriendListView import FriendListView
from BdayApp.ReminderView import ReminderView
from BdayApp.ReminderListView import ReminderListView
from BdayApp.NotificationView import NotificationView
from BdayApp.NotificationListView import NotificationListView
from BdayApp.MessageView import MessageView
from BdayApp.MessageListView import MessageListView
from BdayApp.WishView import WishView
from BdayApp.WishListView import WishListView
from BdayApp.ChatListView import ChatListView
from BdayApp.UnreadChatBufferView import UnreadChatBufferView
from BdayApp.OtherLifeEventsListView import OtherLifeEventsListView
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^(?P<access_token>\w+)/user_profile', UserProfileView.as_view(), name='user_profile_view'),
    url(r'^(?P<access_token>\w+)/events/(?P<id>\d*)(/*)$',EventView.as_view(),name='event_view'),
    url(r'^(?P<access_token>\w+)/events/(?P<id>\d+)/admin',EventAdminView.as_view(),name='event_admin_view'),
    url(r'^(?P<access_token>\w+)/events/(?P<id>\d+)/members',EventMembersView.as_view(),name='event_members_view'),
    url(r'^(?P<access_token>\w+)/events/list$',EventListView.as_view(),name='event_list_view'),
    url(r'^(?P<access_token>[\w]*)(/*)user$',UserView.as_view(),name='user_view'),
    url(r'^(?P<access_token>\w+)/user/friends', FriendListView.as_view(), name='friend_list_view'),

    url(r'^(?P<access_token>\w+)/reminders/(?P<id>\d*)(/*)$',ReminderView.as_view(),name='reminder_view'),

    url(r'^(?P<access_token>\w+)/other_life_events/(?P<other_life_event_id>\d*)(/*)$', OtherLifeEventsListView.as_view(),name='other_life_events_view'),

    url(r'^(?P<access_token>\w+)/reminders/list$',ReminderListView.as_view(),name='reminder_list_view'),

    url(r'^(?P<access_token>\w+)/messages/(?P<id>\d*)(/*)$', MessageView.as_view(),name='message_view'),
예제 #2
0
from BdayApp.FriendListView import FriendListView
from BdayApp.ReminderView import ReminderView
from BdayApp.ReminderListView import ReminderListView
from BdayApp.NotificationView import NotificationView
from BdayApp.NotificationListView import NotificationListView
from BdayApp.MessageView import MessageView
from BdayApp.MessageListView import MessageListView
from BdayApp.WishView import WishView
from BdayApp.WishListView import WishListView
from BdayApp.ChatListView import ChatListView
from BdayApp.FileUploadTest import FileUploadTest
from BdayApp.UnreadChatBufferView import UnreadChatBufferView
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^(?P<access_token>\w+)/user_profile',
        UserProfileView.as_view(),
        name='user_profile_view'),
    url(r'^(?P<access_token>\w+)/events/(?P<id>\d*)(/*)$',
        EventView.as_view(),
        name='event_view'),
    url(r'^(?P<access_token>\w+)/events/(?P<id>\d+)/admin',
        EventAdminView.as_view(),
        name='event_admin_view'),
    url(r'^(?P<access_token>\w+)/events/(?P<id>\d+)/members',
        EventMembersView.as_view(),
        name='event_members_view'),
    url(r'^(?P<access_token>\w+)/events/list$',
        EventListView.as_view(),
        name='event_list_view'),
    url(r'^(?P<access_token>[\w]*)(/*)user$',
        UserView.as_view(),