Fixing setup mistake

This commit is contained in:
pydanny 2010-06-21 09:49:26 -05:00
parent b75cca20a4
commit bcd9c6b665
3 changed files with 8 additions and 4 deletions

View file

@ -18,6 +18,10 @@ Installation
2. Run the command `manage.py syncdb`.
3. In your root urlconf file `urls.py` add `(r'^login/$', 'tos.views.login', {}, 'login',),` to your url patterns.
3. In your root urlconf file `urls.py` add::
4. In your root urlconf file `urls.py` add `(r'^terms-of-service/$', 'tos.views.tos', {}, 'tos',),` to your url patterns.
# terms of service links
urlpatterns += patterns('',
(r'^login/$', 'tos.views.login', {}, 'login',),
(r'^terms-of-service/', include('tos.urls')),
)

View file

@ -1,3 +1,3 @@
<h2>Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT" }}</h2>
{{ tos.content }}
{{ tos.content|safe }}

View file

@ -4,7 +4,7 @@
<h2>Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT" }}</h2>
{% endif %}
{{ tos.content }}
{{ tos.content|safe }}
<h2>Accept Terms of Service?</h2>