2008/12/29 geezer <[email protected]>:
>
> hi
>
> i am following the tutorial for laying out a store from:
> http://gosatchmo.com/starting-a-new-store-real-world-project-layout
>
> and i think that these instructions don't tell you how to put the
> satchmo demo content, such as images, and templates into your site
> app.
It's a django problem.
Did you ever managed to make a django app working?
The problem with django media files (such as css, images, and static
files) it that the best way to handle them is to serve directly from
apache.
So you can use the urls.py "temp" way,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
#The following is used to serve up local media files like images
if getattr(settings, 'LOCAL_DEV', False):
baseurlregex = r'^static/(?P<path>.*)$'
urlpatterns += patterns('',
(baseurlregex, 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
(r'^site_media/(.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
but you must have read the django tutorial to understand the problem
and the solutions.
--
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net
SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928
Rispetta l'ambiente: se non ti è necessario, non stampare questa mail
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---