Monday, January 31, 2011

Re: loading the external css file

Hi all,

I was having the same trouble (using version 1.2). I double checked
that I was looking at the correct documentation:

http://docs.djangoproject.com/en/1.2/howto/static-files/

and it does indicate that I should be truing to use
django.contrib.staticfiles .

Should I instead be using the docs for version 1.1 ?

Many thanks,
Ben

On Jan 3, 7:28 pm, Chris Lawlor <lawlor.ch...@gmail.com> wrote:
> If you don't have astaticfilesmodule, you most likely aren't using
> Django 1.3. Make sure you select the correct version of Django when
> viewing the docs, as things are often done differently in older
> versions, but the doc pages usually default to the latest SVN release.
>
> On Dec 27 2010, 10:43 pm, Bithu <bithin2...@gmail.com> wrote:
>
> > When i was trying to set my static files. When i added the
> > 'django.contrib.staticfiles' into INSTALLED_APP in my setting.py the
> > development server was not running showing anerror Error:Nomodule
> >namedstaticfiles.
>
> > On Dec 27, 7:07 pm, Chris Lawlor <lawlor.ch...@gmail.com> wrote:
>
> > > Django doesn't server static files (like your CSS file) by default -
> > > but you can configure the development server to do so:http://docs.djangoproject.com/en/dev/howto/static-files/
>
> > > Note that this has changed a lot in Django 1.3, so be sure to view the
> > > correct version of that page for the version of Django that you are
> > > using.
>
> > > In production, you should almost always configure another server to
> > > serve static files.
>
> > > On Dec 27, 8:29 am, Bithu <bithin2...@gmail.com> wrote:
>
> > > > When i was trying to load an external stylesheet it was not working.
> > > > But the internal css is working nicely.
>
> > > > What should i do to link my .css file to my html template which is
> > > > inside my template folder.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment