Yes. Proper root referencing requires the preceeding / in /a/b
The django way i have seen is to generally create a /static/ directory
Put /static in your static settings rather than /static/assets
place your files in respectively named directories such as /static/js
/static/css /static/images
Yeah Sanjay you're right. my mistake that should be ( /static/ ... instead
of static/ ... ) for
>
Thanks for correcting me.
--
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
On Sat, Apr 20, 2013 at 10:43 AM, Paras Nath Chaudhary <
opnchaudh...@gmail.com> wrote:
> How I do this is in settings.py:
> PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
> STATIC_ROOT = os.path.join(PROJECT_ROOT, '../static')
> STATIC_URL = '/static/'
> STATICFILES_DIRS = (
> # Pu
How I do this is in settings.py:
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(PROJECT_ROOT, '../static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes,
4 matches
Mail list logo