Re: Queries regarding staticfiles | pgarchives - Mailing list pgsql-www

From Magnus Hagander
Subject Re: Queries regarding staticfiles | pgarchives
Date
Msg-id CABUevEy4V1oNfnAL74sdk3tNpGu5cz+e855PKdU-Mm+cAz+9kg@mail.gmail.com
Whole thread Raw
In response to Queries regarding staticfiles | pgarchives  (Sahil Harpal <sahilharpal1234@gmail.com>)
Responses Re: Queries regarding staticfiles | pgarchives  (Sahil Harpal <sahilharpal1234@gmail.com>)
List pgsql-www


On Tue, Jun 14, 2022 at 2:43 PM Sahil Harpal <sahilharpal1234@gmail.com> wrote:
Hello,
I have following queries related to staticfiles:

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?  

--

pgsql-www by date:

Previous
From: Sahil Harpal
Date:
Subject: Queries regarding staticfiles | pgarchives
Next
From: Sahil Harpal
Date:
Subject: Re: Queries regarding staticfiles | pgarchives