def tearDown(self): """ needs to reset the caches of what's inserted and what's mismatched """ Card.reset_names_inserted()
from django.conf.urls import patterns, url, include from django.contrib import admin from cuesbey_main.cube_diff.views import (card_contents, poll_state, available_heuristics, blindly_return_cube_diff, get_diff, get_diff_link_id) from cuesbey_main.cube_diff.models import Card admin.autodiscover() # http://stackoverflow.com/questions/1797046/correct-place-to-put-extra-startup-code-in-django Card.reset_names_inserted() Card.make_standard_mismatches() urlpatterns = patterns('', url(r'^djangular/', include('djangular.urls')), url(r'^card_contents/?$', card_contents), url(r'^heuristics/?$', available_heuristics), url(r'^get_diff/(?P<link_id>[^/]+)/?$', get_diff), url(r'^get_diff_link/$', get_diff_link_id), url(r'^poll_state/$', poll_state, name="poll_state"), # FIXME: this is ugly and probably unnecessary url(r'^$', blindly_return_cube_diff), )