Author: leidel
Date: Sat Mar 21 04:12:42 2009
New Revision: 1149
Modified:
wiki/MediaHandling.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/MediaHandling.wiki
==============================================================================
--- wiki/MediaHandling.wiki (original)
+++ wiki/MediaHandling.wiki Sat Mar 21 04:12:42 2009
@@ -50,4 +50,16 @@
{{{
<project_name>/python manage.py build_media --help
+}}}
+
+==serving static files during development==
+
+Pinax provide the static file serving view `misc.views.serve` to handle
the app and theme media. Make sure your projects' `urls.py` contains the
following snippet below the rest of the url configuration:
+
+{{{
+from django.conf import settings
+if settings.SERVE_MEDIA:
+ urlpatterns += patterns('',
+ (r'^site_media/(?P<path>.*)$', 'misc.views.serve')
+ )
}}}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---