Creating new apps

2006-08-29 Thread casibbald
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

Re: Django working but cant load stylesheet or images on my app

2006-08-28 Thread casibbald
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:

Re: Django working but cant load stylesheet or images on my app

2006-08-28 Thread casibbald
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

Django working but cant load stylesheet or images on my app

2006-08-28 Thread casibbald
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 [