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

TypeError: source_comments must be bool, not 'True' #12

Open
sury072 opened this issue Jan 17, 2021 · 1 comment
Open

TypeError: source_comments must be bool, not 'True' #12

sury072 opened this issue Jan 17, 2021 · 1 comment

Comments

@sury072
Copy link

sury072 commented Jan 17, 2021

After install on Django Compressor Toolkit:

If run with COMPRESS_ENABLED = False
Debug = True
Compress_offline = False :
The Traceback error:

File "/opt/miniconda3/envs/myEnv/lib/python3.8/site-packages/sass.py", line 609, in compile
raise TypeError(
TypeError: source_comments must be bool, not 'True'

if i have
COMPRESS_ENABLED = "True"
Debug = True
Compress_offline = True i get:

Request Method: GET
http://127.0.0.1:8000/
3.1
OfflineGenerationError
You have offline compression enabled but key "043d76da398044230a6ae8b256404e2449ec2e0423764cae77709d98fd70515a" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:
    <link rel="stylesheet" type="text/x-scss" href="https://d1...g9us.cloudfront.net/css/main.scss">      <link rel="stylesheet" type="text/less" href="https://d.....us.cloudfront.net/css/select2.min.css">       <link rel="stylesheet" type="text/css" href="https://d1a-..9us.cloudfront.net/css/jquery-ui.css">       <link rel="stylesheet" type="text/css" href="https://d1axca..us.cloudfront.net/css/introjs.css">       <link rel="stylesheet" type="text/css" href="https://d1a..us.cloudfront.net/css/jquery-ui-slider-pips.css">         <link rel="stylesheet" type="text/css" href="https://d1a....us.cloudfront.netif i run the python mangae.py compress atheres some tag errors its says no registered or loading. I like to establish a connection with you prior.

can anyone recommend?

@andybotting
Copy link

This was an issue for me when I had
DEBUG = "True"
set as a string.

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