I have been through the Django tutorial, but there is something it does
not clearly outline.
After creating a project, I have to create my first App, which in the
tutorial it was Polls.
I now want to start working on my own Application and wonder what the
best structure is for a sizable applicat
Hi Malcom,
So you mean something like this:
if settings.DEBUG:
urlpatterns += patterns('',
(r'^images/(?P.*)$', 'django.views.static.serve',
{'document_root': '/var/www/vhosts/opentelcom.org/openbilling/media'}),
)
and then in my template i can refer to an image as follows:
I have added the details from static_files example as follows:
from django.conf.urls.defaults import *
from django.conf import settings
urlpatterns = patterns('openbilling.polls.views',
# (r'^openbilling/', include('openbilling.apps.foo.urls.foo')),
(r'^polls/$', 'index'),
(r
is my template.:
#
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
{% block title %}{% endblock %}
{% block extrastyle %}{% endblock %}
{% block extrahead %}{% endblock %}
{% load i18n %}
Welcome, casibbald
[
4 matches
Mail list logo