Commit ee0be374 authored by Daniel W Bond's avatar Daniel W Bond

why is the compare url no longer working????

parent 3df6bffd
......@@ -11,6 +11,7 @@ urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^', include('mainapp.urls')),
url(r'^', include('compare.urls')),
url(r'^autocomplete/', include('autocomplete_light.urls')),
url(r'^login/$', 'django.contrib.auth.views.login', {
'template_name': 'login.html'
......
from django.conf.urls import patterns, include, url
from compare.views import compare, analytics
urlpatterns = patterns('',
url(r'^compare/$', compare, name = 'compare'),
url(r'^analytics/$', analytics, name = 'analytics'),
)
{% extends 'layouts/base.html' %}
{% block title %}
{% endblock %}
{% block content %}
<h1>No no the template from the other app! Fix said views and urls.</h1>
{% endblock %}
......@@ -22,7 +22,6 @@ urlpatterns = patterns('',
url(r'^api/', include(router.urls)),
url(r'^build/', build_trajectory, name='build'),
url(r'^new/', StartTrajectoryView.as_view(), name='new-trac'),
url(r'^compare/', compare, name='compare'),
url(r'^search/', search, name='search'),
#url(r'^student/(?P<slug>[^/]+)/$', DetailStudent.as_view(),
#name='detail-student'),
......
......@@ -26,10 +26,6 @@ class StartTrajectoryView(FormView):
template_name = 'new.html'
form_class = StartTrajectoryForm
def compare(request):
return render_to_response('compare.html', {
})
# BEN MAKE THIS A CBV OR SOMETHING IDK
def search(request):
return render_to_response('search.html', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment