# Path: moto/moe/api/views.py
# USER_MODEL = get_user_model()
# class Avatar(GenericAPIView):
# class Post(GenericAPIView):
# class PostList(GenericAPIView):
# class PostDetail(RetrieveUpdateDestroyAPIView):
# class UserList(ListCreateAPIView):
# class UserProfile(RetrieveUpdateDestroyAPIView):
# class UserDetail(RetrieveUpdateDestroyAPIView):
# class CommentMixin(object):
# class CommentListCreateView(CommentMixin, ListCreateAPIView):
# class ReplyView(CommentMixin, ListCreateAPIView,
#         DestroyAPIView):
# class LikeView(ListCreateAPIView,DestroyAPIView):
#     def post(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):
#     def create(self,request,*args,**kwargs):
#     def perform_create(self, serializer):
#     def get_success_headers(self, data):
#     def post(self, request, *args, **kwargs):
#     def list(self):
#     def get(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):
#     def list(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):
#     def content_object_filter(self):
#     def get_queryset(self):
#     def list(self, request, *args, **kwargs):
#     def get_queryset(self):
#     def list(self, request, *args, **kwargs):
#     def delete(self, request, *args, **kwargs):
#      def get_queryset(self):
# 
# Path: moto/moe/api/views2.py
# class Catch_url(GenericAPIView):
# class Download(GenericAPIView):
#     def post(self, request, *args, **kwargs):
#     def post(self, request, *args, **kwargs):
# 
# Path: moto/moe/api/search.py
# RESULTS_PER_PAGE = getattr(settings, 'HAYSTACK_SEARCH_RESULTS_PER_PAGE', 20)
# class SearchView(GenericAPIView):
#     def build_form(self, form_kwargs=None):
#     def get_query(self):
#     def get_results(self):
#     def get_queryset(self):
#     def build_page(self):
#     def list(self, request, *args, **kwargs):
#     def post(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):


from django.conf.urls import url,patterns,include
from moto.moe.api import views,views2
from moto.moe.api import search
from rest_framework.authentication import SessionAuthentication
# urls
urlpatterns = patterns('',
    url(r'^post/$', views.Post.as_view() ,name='post'),
    url(r'^posts/$', views.PostList.as_view() ,name='posts'),
    url(r'^post/(?P<key>[0-9a-zA-Z]+)/$', views.PostDetail.as_view(),name='post_detail'),
    url(r'^user/$', views.UserList.as_view()),
    url('^search',search.SearchView.as_view(),name="search"),
    url('^avatar/$',views.Avatar.as_view(authentication_classes=[SessionAuthentication]),name='avatar'),
    url('^catch/$',views2.Catch_url.as_view(authentication_classes=[SessionAuthentication]),name='catch'),
    url('^download/$',views2.Download.as_view(),name='download'),
    url(r'^user/(?P<pk>[0-9a-z]+)/$', views.UserDetail.as_view()),

# Path: moto/moe/api/views.py
# USER_MODEL = get_user_model()
# class Avatar(GenericAPIView):
# class Post(GenericAPIView):
# class PostList(GenericAPIView):
# class PostDetail(RetrieveUpdateDestroyAPIView):
# class UserList(ListCreateAPIView):
# class UserProfile(RetrieveUpdateDestroyAPIView):
# class UserDetail(RetrieveUpdateDestroyAPIView):
# class CommentMixin(object):
# class CommentListCreateView(CommentMixin, ListCreateAPIView):
# class ReplyView(CommentMixin, ListCreateAPIView,
#         DestroyAPIView):
# class LikeView(ListCreateAPIView,DestroyAPIView):
#     def post(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):
#     def create(self,request,*args,**kwargs):
#     def perform_create(self, serializer):
#     def get_success_headers(self, data):
#     def post(self, request, *args, **kwargs):
#     def list(self):
#     def get(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):
#     def list(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):
#     def content_object_filter(self):
#     def get_queryset(self):
#     def list(self, request, *args, **kwargs):
#     def get_queryset(self):
#     def list(self, request, *args, **kwargs):
#     def delete(self, request, *args, **kwargs):
#      def get_queryset(self):
# 
# Path: moto/moe/api/views2.py
# class Catch_url(GenericAPIView):
# class Download(GenericAPIView):
#     def post(self, request, *args, **kwargs):
#     def post(self, request, *args, **kwargs):
# 
# Path: moto/moe/api/search.py
# RESULTS_PER_PAGE = getattr(settings, 'HAYSTACK_SEARCH_RESULTS_PER_PAGE', 20)
# class SearchView(GenericAPIView):
#     def build_form(self, form_kwargs=None):
#     def get_query(self):
#     def get_results(self):
#     def get_queryset(self):
#     def build_page(self):
#     def list(self, request, *args, **kwargs):
#     def post(self, request, *args, **kwargs):
#     def get(self, request, *args, **kwargs):


# Path: moto/moe/api/urls.py
from django.conf.urls import url,patterns,include
from moto.moe.api import views,views2
from moto.moe.api import search
from rest_framework.authentication import SessionAuthentication

# urls
urlpatterns = patterns('',
    url(r'^post/$', views.Post.as_view() ,name='post'),
    url(r'^posts/$', views.PostList.as_view() ,name='posts'),
    url(r'^post/(?P<key>[0-9a-zA-Z]+)/$', views.PostDetail.as_view(),name='post_detail'),
    url(r'^user/$', views.UserList.as_view()),
    url('^search',search.SearchView.as_view(),name="search"),
    url('^avatar/$',views.Avatar.as_view(authentication_classes=[SessionAuthentication]),name='avatar'),
    url('^catch/$',views2.Catch_url.as_view(authentication_classes=[SessionAuthentication]),name='catch'),
    url('^download/$',views2.Download.as_view(),name='download'),
    url(r'^user/(?P<pk>[0-9a-z]+)/$', views.UserDetail.as_view()),

    url(r'^user/profile/(?P<username>[0-9a-z]+)/$', views.UserProfile.as_view(),name="user_profile"),