Closed jaylaw closed 7 years ago
Hi Jay,
There is probably something like this:
<link href="${request.static_url('packagename:static/theme.css')}" rel="stylesheet">
This is basically useless but often causes trouble. Just put this instead:
<link href="/static/theme.css" rel="stylesheet">
Thanks! That seemed to work. PyCharm still highlights the as unresolved, but I have the breadcrumbs, at least. If I climb up one directory:
<link href="../static/theme.css" rel="stylesheet">
the warning goes away.
Yeah, that's annoying that it does that. To fix the missing static files, right click on the folder containing static, and choose mark directory as "resources root". Then it will find them.
That did it! Thanks a lot! I really appreciate the work you put into your podcast and courses. They have taught me a lot.
Great and you're welcome Jay!
I am having a problem with PyCharm using relative imports in my template files. I have found resources that provide solutions for a Django project. I have not been able to find anything specific about Pyramid projects. It would be helpful if I could see affected css tags when highlighting in the template as I see in your videos.