मैं Django 1.3 पर जा रहा हूं और मीडिया और स्थैतिक फ़ाइलों को इस भ्रम को थोड़ा उलझन में ढूंढ रहा हूं। यहाँ कैसे डिफ़ॉल्ट settings.py
की तरह लग रहा है:Django में स्थिर फ़ाइलों और मीडिया फ़ाइलों के बीच क्या अंतर है?
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = ''
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = ''
# Absolute path to the directory that holds static files.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = ''
# URL that handles the static files served from STATIC_ROOT.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'
मैं MEDIA_ROOT
और एक STATIC_ROOT
में क्या रखना चाहिए? क्या वे अलग निर्देशिका होनी चाहिए? अंतर क्या है?
इस पोस्ट को https://groups.google.com/forum/#!topic/django-users/tSb4EC0G040 – laike9m