Queries regarding staticfiles | pgarchives - Mailing list pgsql-www

From Sahil Harpal
Subject Queries regarding staticfiles | pgarchives
Date
Msg-id CAKi=nndQXyBXYBAyknH3hZDYHvTG+8X72LmjW_tgyzYBw8T65A@mail.gmail.com
Whole thread Raw
Responses Re: Queries regarding staticfiles | pgarchives  (Magnus Hagander <magnus@hagander.net>)
List pgsql-www
Hello,
I have following queries related to staticfiles:
  • Why do we have /media-archives/... URL for CSS files? [https://github.com/postgres/pgarchives/blob/master/django/archives/mailarchives/templates/base.html#L18] Such folder is not present in the project. We have a folder named media which contains all static files. Can I change all /media-archives/ to /media/ ? Also the css_map that dynamic_css() method is using and in the css files for specifying path to images, contain /media/ and not /media-archives/.
  • What is the use case of that dynamic_css() method?
  • 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.
  • 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?
Thanks,
Sahil Harpal
Attachment

pgsql-www by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: pg_waldump - how read
Next
From: Magnus Hagander
Date:
Subject: Re: Queries regarding staticfiles | pgarchives