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
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
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
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
---
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
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
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
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
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
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
10 matches
Mail list logo