On Jan 24, 2:43 pm, John Baker <j...@jdiligence.com> wrote: > > write a custom file > > storagehttp://docs.djangoproject.com/en/dev/topics/files/ > > Thanks. However, I know I can store them somewhere else but my problem > is serving them up again in the local development environment. The > django.views.static.serve doesn't take an argument for serving from a > different system directory so its difficult to have 2.
Er, yes it does. For example: (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}), (r'^uploads/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/uploads'}), In both cases, /path/to/whatever can be anywhere you like, and you can have as many as you want. See http://docs.djangoproject.com/en/dev/howto/static-files/ -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---