admin管理员组文章数量:1123011
I’ve been working on setting up OpenWISP with Ansible, and here’s what I’ve done so far:
Installed Ansible OpenWISP on my local system.
Located the CSS file I wanted to modify at /opt/openwisp2/static/admin/css/openwisp.css.
Instead of modifying the file directly, I created a custom CSS file in /opt/openwisp2/static_custom and updated it there.
Ran python manage.py collectstatic to gather all static files into the STATIC_ROOT
directory.
Restarted Nginx to ensure the changes would take effect.
Despite all these steps, the CSS changes are not reflecting in the browser. I’ve tried:
Clearing the browser cache and using Ctrl + F5. Verifying that the updated file is present in the STATIC_ROOT directory. Checking Nginx logs for any errors. What could I be missing? Is there any additional configuration needed for Nginx, Django, or OpenWISP to properly serve the updated CSS file?
Any help or insights would be greatly appreciated.
Thanks in advance!
What I Tried:
Located the CSS file I wanted to update: /opt/openwisp2/static/admin/css/openwisp.css.
Added my changes in a custom directory: /opt/openwisp2/static_custom.
Ran python manage.py collectstatic to update static files in the STATIC_ROOT directory.
Restarted Nginx to apply the changes.
Cleared my browser cache and force-refreshed the page (Ctrl + F5).
What I Expected:
I expected the updated CSS styles to be reflected on the web pages served by OpenWISP.
What Happened Instead: The old styles are still being applied, and the changes made to the custom CSS file are not reflected on the site.
This concise explanation makes it clear what you did, what you wanted to happen, and what the issue is.
本文标签:
版权声明:本文标题:openwrt - CSS Changes in optopenwisp2static_custom Not Reflecting After Collectstatic and Nginx Restart - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736540296a1944378.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论