Because it runs on the same hostname as www.postgresql.org, and otherwise there would be a potential conflict. The folder /media/ is in the filesystem, and should be served up as /media-static/ on http.
What is the use case of that dynamic_css() method?
It is to reduce the number of files in a quick and hacky way. We had too many different CSS files and this is one way to serve them up under a single URL to make things faster.
CSS and images will reflect on the HTML pages when I set STATIC_URL = "/media/" and change all media-archives to media. Also I need to add 'django.contrib.staticfiles' in the INSTALLED_APPS.
We don't use staticfiles.
In the main.css also many things are missing. I have attached the main.css present in the GitHub and main.css that actual pgarchives is using. Why do we have such differences in the code?
What do you mean "present in the github" and the one that's in pgarchives? Where is it on github and where do you see it in pgarchives?