You can have a look here for Django's docs on these... https://docs.djangoproject.com/en/dev/ref/settings/ https://docs.djangoproject.com/en/dev/topics/files/
The media stuff are for where files are stored typically after upload. So for example, there's the ImageField that you can use as a field on your model. Those settings will determine where those files'll be stored. The MEDIA_URL will just be how those files will be accessed via the browser. As for the static stuff, scripts and images and other static files (in that there are not processed then output generated for them, like python scripts) that your site will serve. The STATIC_URL is how they again will be accessed in the browser. So If I put a example.png file in the STATIC_ROOT directory, I could access it like http://yoursite/site_media/static/example.png. Hope this helps. On Feb 8, 9:39 pm, John Yeukhon Wong <gokoproj...@gmail.com> wrote: > # Absolute path to the directory that holds media. > # Example: "/home/media/media.lawrence.com/" > MEDIA_ROOT = os.path.join(PROJECT_ROOT, "site_media", "media") > > # 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", "http://example.com/media/" > MEDIA_URL = "/site_media/media/" > > # Absolute path to the directory that holds static files like app > media. > # Example: "/home/media/media.lawrence.com/apps/" > STATIC_ROOT = os.path.join(PROJECT_ROOT, "site_media", "static") > > # URL that handles the static files like app media. > # Example: "http://media.lawrence.com" > STATIC_URL = "/site_media/static/" > > I am kinda new with site_media settings. THis is a legacy code. > Right now I have two directories under the site_root > > /media/ and /site_media/ (which contains site_media/static/*.*) The > latter one is where all the css, js comes from. But I have the same > exact copies in /media/. > > I just don't understand what each of the options above mean.... Can > someone please explain them? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.