Using a separate sub domain future-proofs your site in the event it grows
large and you need to split your dynamic and static content between
servers.

It also makes it easier to parse statistics from the logs. Most web log
analyzers will handle a separate sub domain out of the box better than
using a sub directory (although both should work fine if your log analysis
tool is decent) when trying to determine hits to dynamic content vs. static
content.

Don't stress on it for lower traffic sites though. Start with the basics
and work your way up to fancy.

Just my personal thoughts. :-D

-James



On Saturday, April 26, 2014, Venkatraman S <venka...@gmail.com> wrote:

>
> On Sat, Apr 26, 2014 at 2:46 PM, James Schneider 
> <jrschneide...@gmail.com<javascript:_e(%7B%7D,'cvml','jrschneide...@gmail.com');>
> > wrote:
>
>> If you use a separate subdomain for static content (recommended), even on
>> the same server, include that as well.
>>
>
>
> Thanks James. I did not know this(subdomain for static content) was
> recommended. Why?
>
> Regards,
> Venkat
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> django-users+unsubscr...@googlegroups.com<javascript:_e(%7B%7D,'cvml','django-users%2bunsubscr...@googlegroups.com');>
> .
> To post to this group, send email to 
> django-users@googlegroups.com<javascript:_e(%7B%7D,'cvml','django-users@googlegroups.com');>
> .
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAN7tdFSzWbUm8ejN16exktHfTK2RjwPMZESKoTSDOPYYVFZC6g%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAN7tdFSzWbUm8ejN16exktHfTK2RjwPMZESKoTSDOPYYVFZC6g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciW-7aKOHn2J1X0hACfhuEy6giRHAKWf8kzfPmS7CJdZWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to