Skip to content

django 1.3 STATIC_URL #28

@munhitsu

Description

@munhitsu

Django 1.3 introduces STATIC_URL as a standard approach for app static files.
So from now on there are two paths for not dynamic files:
MEDIA_URL - more like uploaded files
STATIC_URL - statics delivered with app

At this point there are two issues with django-css.

  1. defeulting to context MEDIA_URL
    I guess it should be enough jus to remove templatetags/compress.py lines:
    if 'MEDIA_URL' in context:
    media_url = context['MEDIA_URL']
    else:
  2. During development STATIC_ROOT is often empty as it is being dynamically filled by static app. A standard practice is to have all files collected to STATIC_ROOT only on development

It might be useful to either document this limitation or get real static file path while in development mode (runserver)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions