Hi there,
first, there's a difference between MEDIA files and STATIC files (since
1.3, I think). Media files are files uploaded by users, while static
files are usually persistent files on the server from the beginning,
eg. stylesheets, images, javascripts, robots.txt, etc.
It's good to keep
Hi,
Better not use hard coded url path for static, use {{ STATIC_URL }} in your
link ;
eg :
On Mon, Jul 15, 2013 at 7:28 AM, Sébastien Billion <
sebastien.bill...@gmail.com> wrote:
> Hi,
>
> In your project folder, you can create a folder media zith a subfolder
> css, an other img, js,
Hi,
In your project folder, you can create a folder media zith a subfolder css,
an other img, js, whatever.
In your settings.py, you can use this line to get the absolute path
dynamically:
from os import path
PROJECT_ROOT = path.dirname(path.abspath(__file__))
After, you need to specify your
Hello,
I read the django docs, but my still confused. How do i use the static
files, for css?
Thank you.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
4 matches
Mail list logo