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

Got error unknown url type: '/static/ProjectName/style.css' #59

Open
OmeletPanM33 opened this issue Jun 17, 2022 · 0 comments
Open

Got error unknown url type: '/static/ProjectName/style.css' #59

OmeletPanM33 opened this issue Jun 17, 2022 · 0 comments

Comments

@OmeletPanM33
Copy link

OmeletPanM33 commented Jun 17, 2022

1{% load static %}
2{% load inlinecss %}
3{% inlinecss 'ProjectName/style.css' %}
4<html lang="en">
5<head>
6
7</head>
8<body>
...
9</body>
...
10<link rel="stylesheet" href="{% static 'ProjectName/style.css' %}">
11{% endinlinecss %}

so I have a html basically looks like this, while the 10th can load the css normally, but I got a ValueError exception with the value
unknown url type: '/static/ProjectName/style.css' and the exception occur on location: C:\mypathname\Python39\lib\urllib\request.py

anyone can help?

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

1 participant