Queries regarding staticfiles | pgarchives

Поиск
Список
Период
Сортировка
От Sahil Harpal
Тема Queries regarding staticfiles | pgarchives
Дата
Msg-id CAKi=nndQXyBXYBAyknH3hZDYHvTG+8X72LmjW_tgyzYBw8T65A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Queries regarding staticfiles | pgarchives
Список 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
Вложения

В списке pgsql-www по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: pg_waldump - how read
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Queries regarding staticfiles | pgarchives