urls.py
759 Bytes
#-*- coding:utf-8 -*-
from django.conf import settings
from django.conf.urls import patterns, include, url
from common.util import url
from webapp.views import ExpressionsJson
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
(r'^accounts/', include('registration.urls')),
)
urlpatterns += patterns('webapp.views',
url(r'^$', 'main_page'),
url(r'^datatable/data/$', ExpressionsJson.as_view(), name='expressions'),
url(r'^ajax/expression_info/$', 'expression_info'),
)
urlpatterns += patterns('restapi.views',
url(r'^get_expressions/$', 'get_expressions'),
url(r'^get_synonyms/$', 'get_synonyms'),
)