diff options
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,8 @@ from equations.models import Equation, Symbol, Variable #admin.autodiscover() urlpatterns = patterns('', + (r'^$', 'django.views.generic.simple.direct_to_template', + {'template': 'index.html'}), (r'^go/', 'django.views.generic.simple.direct_to_template', {'template': 'go.html'}), (r'^admin/doc/', include('django.contrib.admindocs.urls')), @@ -27,7 +29,7 @@ urlpatterns += patterns('django.views.generic.list_detail', (r'^variable/(?P<object_id>\d+)/$', 'object_detail', dict(queryset=Variable.objects.all() )), ) -urlpatterns += patterns('equator.equations.views', +urlpatterns += patterns('equations.views', (r'^json/equs_by_vars/(?P<whichvars>[\d\,]*)/?$', 'equs_by_vars'), (r'^json/vars_by_symbs/(?P<which_symbols>[\d\,]*)/?$', 'vars_by_symbs'), (r'^json/all_variables/$', 'all_variables'), |