Commits

Tibor Tóth committed edfd612

Added URL config for static files.

Comments (0)

Files changed (1)

docs/installation.rst

 
    from django.contrib import admin
    admin.autodiscover()
-   urlpatterns = patterns('',   
+   urlpatterns = patterns('',
+      # Set up static files, you can do it with you web server configuration.
+      # Dont forget to check if your envrioment installed it to the same 
+      # location as the example shows.
+      (r'^static/media/expense(?P<path>.*)$',
+         'django.views.static.serve',{
+      	     'document_root': '/usr/local/lib/python2.6/dist-packages/expense/static/expense/',
+          'show_indexes': True }),
+       # set up expense's urls
        (r'^expense/', include('expense.urls')),
        (r'^', include(admin.site.urls)),
    )