Re: Cannot serve static files

2009-01-22 Thread john
Ok finally got it. David Zhou above, earlier mentioned adding static file directory to css link (ie, ) but when i did that it didn't work. I must have had something wrong somewhere else. Anyway, i made some more changes after reading info here: http://stackoverflow.com/questions/446026/django-how

Re: Cannot serve static files

2009-01-22 Thread john
ah ok. good catch. My MEDIA_ROOT = C:\dev\proj. But my media directory is actually in my app directory, one directory down. I fixed MEDIA_ROOT to equal C:\dev\proj\app and still not having any luck. my use of -\ in directory structure example is just to indicate a folder in directory tree. Let me

Re: Cannot serve static files

2009-01-22 Thread Dj Gilcrease
Sorry that should be {{MEDIA_URL}} Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 22, 2009 at 9:30 AM, Puneet Madaan wrote: > beside you need to correct settings.py to > > SETTINGS_FILE_FOLDER = os.path.dirname( os.path.abspath(__file__)) > > > On Thu, Jan 22, 2009 at 5

Re: Cannot serve static files

2009-01-22 Thread Puneet Madaan
well at my side it works well on both *nix and windoof platforms... here is what I use on my projects... settings.py -- import platform import os PROJECT_DIR = os.path.dirname( os.path.abspath(__file__)) MEDIA_ROOT = os.path.join(PROJECT_DIR, 'static') --- urls.py ---

Re: Cannot serve static files

2009-01-22 Thread john
Thanks but no change. On Jan 22, 11:30 am, Puneet Madaan wrote: > beside href="{MEDIA_URL}css/styles.css"> > you need to correct settings.py to > > SETTINGS_FILE_FOLDER = os.path.dirname( os.path.abspath(__file__)) > > > > On Thu, Jan 22, 2009 at 5:26 PM, john wrote: > > > Thanks but no change

Re: Cannot serve static files

2009-01-22 Thread Puneet Madaan
beside you need to correct settings.py to SETTINGS_FILE_FOLDER = os.path.dirname( os.path.abspath(__file__)) On Thu, Jan 22, 2009 at 5:26 PM, john wrote: > > Thanks but no change. > > On Jan 22, 11:02 am, Dj Gilcrease wrote: > > change > > > > to > > > > > > Dj Gilcrease > > OpenRPG Develo

Re: Cannot serve static files

2009-01-22 Thread john
Thanks but no change. On Jan 22, 11:02 am, Dj Gilcrease wrote: > change > > to > > > Dj Gilcrease > OpenRPG Developer > ~~http://www.openrpg.com > > On Thu, Jan 22, 2009 at 8:53 AM, john wrote: > > > No matter what i do i can't get my css to load. 100% Frustrated with > > Django. My index pag

Re: Cannot serve static files

2009-01-22 Thread Dj Gilcrease
change to Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 22, 2009 at 8:53 AM, john wrote: > > No matter what i do i can't get my css to load. 100% Frustrated with > Django. My index page loads when i request http://127.0.0.1:8000/ but > it is not styled. Django dev serv

Re: Cannot serve static files

2009-01-22 Thread David Zhou
On Thu, Jan 22, 2009 at 10:53 AM, john wrote: > > No matter what i do i can't get my css to load. 100% Frustrated with > Django. My index page loads when i request http://127.0.0.1:8000/ but > it is not styled. Django dev server returns 404 in console for "GET / > css/styles.css HTTP/1.1" Try do

Cannot serve static files

2009-01-22 Thread john
No matter what i do i can't get my css to load. 100% Frustrated with Django. My index page loads when i request http://127.0.0.1:8000/ but it is not styled. Django dev server returns 404 in console for "GET / css/styles.css HTTP/1.1" In my base template i have: In my urls.py I have: urlpatterns