From f3c85569f394b2019fcd56a55bf2d6aacb67e5a5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 11 Aug 2008 20:50:21 -0700 Subject: transition for django 1 alpha2; seems to be all good --- equations/models.py | 6 ++++++ equations/templates/equations/equation_detail.html | 2 +- equations/templates/equations/equation_list.html | 2 +- equations/templates/equations/symbol_detail.html | 2 +- equations/templates/equations/symbol_list.html | 2 +- equations/templates/equations/variable_detail.html | 2 +- equations/templates/equations/variable_list.html | 2 +- urls.py | 6 +++++- 8 files changed, 17 insertions(+), 7 deletions(-) diff --git a/equations/models.py b/equations/models.py index 7a5f8fe..b34a93c 100644 --- a/equations/models.py +++ b/equations/models.py @@ -122,3 +122,9 @@ class Equation(models.Model): signals.post_save.connect(update_render, sender=Equation) #dispatcher.connect(update_render, signal=signals.post_save, sender=Equation) +from django.contrib import admin + +admin.site.register(Symbol) +admin.site.register(Variable) +admin.site.register(Equation) + diff --git a/equations/templates/equations/equation_detail.html b/equations/templates/equations/equation_detail.html index 978b2e1..968e5ef 100644 --- a/equations/templates/equations/equation_detail.html +++ b/equations/templates/equations/equation_detail.html @@ -4,7 +4,7 @@ {% block content %}
-
+
{% if object.description %} diff --git a/equations/templates/equations/equation_list.html b/equations/templates/equations/equation_list.html index 549c38f..9712182 100644 --- a/equations/templates/equations/equation_list.html +++ b/equations/templates/equations/equation_list.html @@ -8,7 +8,7 @@ {% for item in object_list %} {% endfor %} diff --git a/equations/templates/equations/symbol_detail.html b/equations/templates/equations/symbol_detail.html index 85f59d8..b53b1d6 100644 --- a/equations/templates/equations/symbol_detail.html +++ b/equations/templates/equations/symbol_detail.html @@ -4,7 +4,7 @@ {% block content %}
-
+
- + {{ item.name }}
diff --git a/equations/templates/equations/symbol_list.html b/equations/templates/equations/symbol_list.html index 1983b3f..99c4f55 100644 --- a/equations/templates/equations/symbol_list.html +++ b/equations/templates/equations/symbol_list.html @@ -8,7 +8,7 @@ {% for item in object_list %} {% endfor %} diff --git a/equations/templates/equations/variable_detail.html b/equations/templates/equations/variable_detail.html index 6488de2..ceec48c 100644 --- a/equations/templates/equations/variable_detail.html +++ b/equations/templates/equations/variable_detail.html @@ -4,7 +4,7 @@ {% block content %}
-
+
Raw LaTeX:
{{ object.latex }}
- + {{ item.name }}
{% if object.description %} diff --git a/equations/templates/equations/variable_list.html b/equations/templates/equations/variable_list.html index 9ff7a64..dbd6e41 100644 --- a/equations/templates/equations/variable_list.html +++ b/equations/templates/equations/variable_list.html @@ -8,7 +8,7 @@ {% for item in object_list %} {% endfor %} diff --git a/urls.py b/urls.py index 1e2f0de..5b0f494 100644 --- a/urls.py +++ b/urls.py @@ -1,11 +1,15 @@ from django.conf.urls.defaults import * from django.conf import settings +from django.contrib import admin from equations.models import Equation, Symbol, Variable +admin.autodiscover() + urlpatterns = patterns('', (r'^go/', 'django.views.generic.simple.direct_to_template', {'template': 'go.html'}), - (r'^admin/', include('django.contrib.admin.urls')), + (r'^admin/doc/', include('django.contrib.admindocs.urls')), + (r'^admin/(.*)', admin.site.root), (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) -- cgit v1.2.3
- + {{ item.name }}