For your URLs, use {{ STATIC_URL }}/css/index_css.css (or maybe {{
STATIC_URL }}/app_name/css/index_css.css -- I've never tried this approach
before)

On Fri, Jun 22, 2012 at 11:55 AM, surya <kasturisu...@gmail.com> wrote:

> Well.. apart from that mistake..
>
> Is everything alright??
>
>
> On Friday, June 22, 2012 8:37:55 PM UTC+5:30, Kurtis wrote:
>>
>> Here's a vaguely similar post: http://stackoverflow.**
>> com/questions/6409920/django-**static-files-from-app-**directories<http://stackoverflow.com/questions/6409920/django-static-files-from-app-directories>
>>
>> Like one of the respondents recommended, try adding a "print
>> str(STATICFILES_DIRS)" in your settings.py and then run "runserver" so you
>> can see what actual directories are being included.
>>
>> On Fri, Jun 22, 2012 at 9:53 AM, surya <kasturisu...@gmail.com> wrote:
>>
>>> This is my project folder hierarchy:
>>>
>>> project \
>>>            project \
>>>                       __init__.py
>>>                       settings.py
>>>                       urls.py
>>>                       views.py
>>>                       ... etc
>>>            templates \
>>>                            css \
>>>                                 index_css.css
>>>
>>>                            media \
>>>                                  logo.png
>>>
>>>                            templates \
>>>                                      home.html
>>>            manage.py
>>>
>>>
>>> So, these are the settings I made in "settings.py"
>>>
>>> currDir = os.path.dirname(__file__)
>>> templateDir_media = os.path.join(os.path.join(os.**
>>> path.split(currDir)[0],"**Templates"), "media")
>>> templateDir_css = os.path.join(os.path.join(os.**
>>> path.split(currDir)[0],"**Templates"), "css")
>>>
>>> STATICFILES_DIRS = (
>>>                     templateDir_media,
>>>                     templateDir_css,
>>>                     "d:/code/projects-dev/readdme/**"
>>> )
>>> ## I JUST ADDED THOSE /MEDIA AND /CSS DIR IN IT
>>>
>>> The HTML source file contains:
>>>
>>> Image URL:  src="../media/logo.png"
>>> CSS URL : href="../css/twoColFixLtHdr.**css"
>>>
>>>
>>> So, when I am loading the page, I am unable to find the logo and CSS
>>>  settings..
>>>
>>> Where I am going wrong and how should I fix it?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/**QKcKdIHVqY0J<https://groups.google.com/d/msg/django-users/-/QKcKdIHVqY0J>
>>> .
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/X2Bd6g9yPPMJ.
>
> 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.
>

-- 
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