mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-03-16 20:10:24 +00:00
Fixing setup mistake
This commit is contained in:
parent
b75cca20a4
commit
bcd9c6b665
3 changed files with 8 additions and 4 deletions
|
|
@ -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')),
|
||||
)
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
<h2>Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT" }}</h2>
|
||||
|
||||
{{ tos.content }}
|
||||
{{ tos.content|safe }}
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue