Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread frocco
Thanks Bill, for taking the time to explain this. Regards, Frank On Monday, February 18, 2013 1:17:42 PM UTC-5, frocco wrote: > > Hello, > I have a site under apache www root. > www >mysite > templates >media >static > > I am following the two-scoops book. > The problem is th

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread Bill Freeman
Yes. The name is just to remind me that the stuff there is for apache. The only times that Django touches it is during collect static, or during file or image upload (these typically are stored under MEDIA_ROOT. But all these directories are things that you can configure. Do what makes the most

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread frocco
Thank you, So you have htdocs directory under each project on your website? so mine might look like. ntw htdocs assets On Tuesday, February 19, 2013 11:18:19 AM UTC-5, ke1g wrote: > > Yes, 'assets' would work, and yes your would put your static sources there. > > There are many poss

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread Bill Freeman
Yes, 'assets' would work, and yes your would put your static sources there. There are many possibilities. I actually tend to make STATIC_ROOT be PROJECT_ROOT/htdocs/static and MEDIA_ROOT be PROJECT_ROOT/htdocs/media and add PROJECT_ROOT/static to STATICFIELS_DIRS. I can also put things like robo

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread frocco
Thanks for the help. So STATICFILES_DIRS should be something line 'assets' and my static headings and css/js files would live there? On Tuesday, February 19, 2013 10:11:40 AM UTC-5, ke1g wrote: > > > > On Mon, Feb 18, 2013 at 1:17 PM, frocco >wrote: > >> Hello, >> I have a site under apache www r

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread Bill Freeman
On Mon, Feb 18, 2013 at 1:17 PM, frocco wrote: > Hello, > I have a site under apache www root. > www >mysite > templates >media >static > > I am following the two-scoops book. > The problem is that my app is looking for templates at www/templates > Here is my settings. > Thank

Question about not hardcoding paths in settings.py

2013-02-18 Thread frocco
Hello, I have a site under apache www root. www mysite templates media static I am following the two-scoops book. The problem is that my app is looking for templates at www/templates Here is my settings. Thanks from unipath import Path PROJECT_ROOT = Path(__file__).ancestor(3) M