blob: 940ee42ce160b275fe859a4920b348b7acd7847e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Steel Toe Web Interface
Requirements:
This is a Django application which was developed using Django 0.96.
You will still need to generate a project which includes this
application. Make the following changes to your project.
In settings.py:
INSTALLED_APPS = (
...
'st_web',
)
In urls.py:
urlpatterns += patterns('',
(r'^steeltoe/', include('st_web.urls')),
)
It depends on the media context processor which was not part of
Django 0.96, but is available in development versions of Django. A
version of it is included in this application and should be added to the
template context processors by including this snippet in your
settings.py:
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
TEMPLATE_CONTEXT_PROCESSORS += (
'st_web.context_processors.media',
)
The stylesheet is included in the templates directory, you'll need to
copy it to settings.MEDIA_ROOT/st_web/st_web.css.
|