Sites are on the same box.  Really, i'm just trying to make a proof of
concept: each site is just a settings file, media directory, and
templates directory.  They all share a database.  i could use a common
MEDIA_ROOT, but just didn't want to.  Is there a way to have a
secondary media location and point a FileField to it, rather than the
standard "append to MEDIA_ROOT" behavior?



On Jul 2, 2:26 pm, Andrew Fong <fongand...@gmail.com> wrote:
> Need more data here. This ventures from strictly Django into
> deployment setups. Why exactly can't you just use a common MEDIA_ROOT?
> Are your sites on different boxes?
>
> -- Andrew
>
> On Jul 2, 2:19 pm, smcoll <smc...@gmail.com> wrote:
>
> > i have a project running multiple sites.   One of the apps in the
> > project has a model with a FileField and an M2M to `Site`.  Since each
> > site has its own MEDIA_ROOT, a model instance saved from SiteA
> > (publishing on both SiteA and SiteB) can only display the file from
> > SiteA, because the file only exists within its MEDIA_ROOT.
>
> > How is this typically dealt with?  Is there any way aside from sharing
> > a common MEDIA_ROOT?
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to