"""jda URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Import the include() function: from django.conf.urls import url, include
    3. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import url
from django.contrib import admin
from api.views import SubmissionView
from api.models import Submission
from api.views import SubmissionSerializer
from rest_framework.pagination import PageNumberPagination
from api import views as api_views

urlpatterns = [
    
    # home page
	url(r'^$', api_views.render_landing_page),

    # admin panel
    url(r'^admin/', admin.site.urls),

    # general api
    url(r'^submissions/$', SubmissionView.as_view()),

    # status filter api
    url(r'^submissions_status/(?P<status>.+)/$', SubmissionView.as_view()),

    # title filter api
    url(r'^submissions_title/(?P<title>.+)/$', SubmissionView.as_view()),

    # language filter api
    url(r'^submissions_language/(?P<language>.+)/$', SubmissionView.as_view()),

    # statistical analysis api
    url(r'^stats/$', SubmissionView().stats),    

]

2e2f3009297736ece47c2028465d342cf874f60b
<mask token>

<mask token>
urlpatterns = [url('^$', api_views.render_landing_page), url('^admin/',
    admin.site.urls), url('^submissions/$', SubmissionView.as_view()), url(
    '^submissions_status/(?P<status>.+)/$', SubmissionView.as_view()), url(
    '^submissions_title/(?P<title>.+)/$', SubmissionView.as_view()), url(
    '^submissions_language/(?P<language>.+)/$', SubmissionView.as_view()),
    url('^stats/$', SubmissionView().stats)]

<mask token>
from django.conf.urls import url
from django.contrib import admin
from api.views import SubmissionView
from api.models import Submission
from api.views import SubmissionSerializer
from rest_framework.pagination import PageNumberPagination
from api import views as api_views
urlpatterns = [url('^$', api_views.render_landing_page), url('^admin/',
    admin.site.urls), url('^submissions/$', SubmissionView.as_view()), url(
    '^submissions_status/(?P<status>.+)/$', SubmissionView.as_view()), url(
    '^submissions_title/(?P<title>.+)/$', SubmissionView.as_view()), url(
    '^submissions_language/(?P<language>.+)/$', SubmissionView.as_view()),
    url('^stats/$', SubmissionView().stats)]

"""jda URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Import the include() function: from django.conf.urls import url, include
    3. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import url
from django.contrib import admin
from api.views import SubmissionView
from api.models import Submission
from api.views import SubmissionSerializer
from rest_framework.pagination import PageNumberPagination
from api import views as api_views

urlpatterns = [
    
    # home page
	url(r'^$', api_views.render_landing_page),

    # admin panel
    url(r'^admin/', admin.site.urls),

    # general api
    url(r'^submissions/$', SubmissionView.as_view()),

    # status filter api
    url(r'^submissions_status/(?P<status>.+)/$', SubmissionView.as_view()),

    # title filter api
    url(r'^submissions_title/(?P<title>.+)/$', SubmissionView.as_view()),

    # language filter api
    url(r'^submissions_language/(?P<language>.+)/$', SubmissionView.as_view()),

    # statistical analysis api
    url(r'^stats/$', SubmissionView().stats),    

]
