Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline CSS not rendering #7

Open
edlvox opened this issue Apr 21, 2022 · 1 comment
Open

Inline CSS not rendering #7

edlvox opened this issue Apr 21, 2022 · 1 comment

Comments

@edlvox
Copy link

edlvox commented Apr 21, 2022

Hi, thank you for the project, im trying to implement it but when it runs I don't see any feedback/errors (added CRITICAL_CSS_VERBOSE in settings just in case to no avail), but the only thing that renders is a normal link to my css file:

template: {% critical_css "css/style2.css" %}
rendered on page:

Is there another flag to activate the debug and see if there is any issue that could be fixed?

-- Just adding that on DB I got NULL on CSS, and can access directly and generate critical via the penthouse service.

Thank you!

@lenarother
Copy link
Owner

Hi, thanks for taking interest in the project and reporting an issue.

No there is no CRITICAL_CSS_VERBOSE setting.
Docu on settings:
https://django-critical-css.readthedocs.io/en/latest/usage.html#additional-settings
Example:
https://github.com/lenarother/django-critical-css/blob/master/examples/critical-example/criticalexample/settings.py

Have you set the PENTHOUSE_URL in your settings?
Do you get the correct result (your critical css) after manually calling the service?
http://<PENTHOUSE_URL>/?url=&css=
(you can find more details on penthouse service here: https://github.com/moccu/penthouse-service)

Which django and python versions are you using?

Best,
Magda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants