django-1.3

Django 1.3: MEDIA_URL vs. STATIC_URL


What does MEDIA_URL does now? I am particularly confused after I got "django.core.exceptions.ImproperlyConfigured: The MEDIA_URL and STATIC_URL settings must have different values".

I'd appreciate Django explaining why this is. Regards


Solution

  • MEDIA_URL is used to point to the base URL for user-generated content - uploaded images, files, that sort of thing.

    STATIC_URL is used as the prefix for JavaScript, CSS, etc.