Does your generated HTML source say:

<link rel="stylesheet" href=“/static/stylesheet.css"
type="text/css" />

??

In your settings the TEMPLATE_CONTEXT_PROCESSORS

should have:

“django.core.context_processors.static”

The CSS File should go into a folder: myapp/static/stylesheet.css

> urlpatterns += staticfiles_urlpatterns()

I think you don’t need this. If you have the static app in your INSTALLED_APPS, 
it does this for you because it overrides te runserver command.

good luck

On Nov 22, 2011, at 11:16 , Gchorn wrote:

> Oh yes, I definitely have this in my INSTALLED_APPS list (as simply
> 'myapp').  Sorry I left it out; I thought this was necessary
> regardless of whether or not I was using static files, so I didn't
> include it in the list of settings I changed just to enable static
> files.   I do want to reiterate that I followed the tutorial closely
> in creating my project so I already have pretty much anything from
> there.
> 
> Any other ideas?
> 
> thanks,
> Guillaume
> 
> On Nov 22, 2:47 pm, Xavier Ordoquy <xordo...@linovia.com> wrote:
>> Hi,
>> 
>>> What follows are my current settings.  In settings.py, I have:
>> 
>>> STATIC_URL = '/static/'
>>> INSTALLED_APPS = ('django.contrib.staticfiles',)
>> 
>> In order to get their static files served, apps need to be listed in the 
>> INSTALLED_APPS list.
>> As you don't mention it, you probably need to add myapp in the 
>> INSTALLED_APPS.
>> 
>> Regards,
>> Xavier,
>> Linovia.
> 
> -- 
> 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.
> 

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