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

django.core.exceptions.SuspiciousFileOperation #378

Open
shamrox opened this issue Jun 27, 2016 · 0 comments
Open

django.core.exceptions.SuspiciousFileOperation #378

shamrox opened this issue Jun 27, 2016 · 0 comments

Comments

@shamrox
Copy link

shamrox commented Jun 27, 2016

After make changes and run "python manage.py migrate" I get this:

C:\SagePath\Virtualenv\Mezza\lib\site-packages\mezzanine\utils\conf.py:47: UserW
arning: You haven't defined the ALLOWED_HOSTS settings, which Django requires. W
ill fall back to the domains configured as sites.
warn("You haven't defined the ALLOWED_HOSTS settings, which "
Traceback (most recent call last):
File "manage.py", line 14, in
execute_from_command_line(sys.argv)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\core\management__
init__.py", line 353, in execute_from_command_line
utility.execute()
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\core\management__
init__.py", line 327, in execute
django.setup()
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django__init__.py", line
18, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\apps\registry.py",
line 108, in populate
app_config.import_models(all_models)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\apps\config.py", l
ine 202, in import_models
self.models_module = import_module(models_module_name)
File "C:\tools\python2\Lib\importlib__init__.py", line 37, in import_module
import(name)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\widgy\contrib\page_builde
r\models.py", line 19, in
from widgy.contrib.page_builder.db.fields import MarkdownField, VideoField,
ImageField
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\widgy\contrib\page_builde
r\db\fields.py", line 14, in
from widgy.contrib.page_builder.forms import MarkdownField as MarkdownFormFi
eld, MarkdownWidget
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\widgy\contrib\page_builde
r\forms__init__.py", line 42, in
class CKEditorWidget(forms.Textarea):
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\widgy\contrib\page_builde
r\forms__init__.py", line 81, in CKEditorWidget
'contentsCss': scss_compile('/widgy/page_builder/html.scss'),
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\widgy\contrib\page_builde
r\forms__init__.py", line 22, in scss_compile
css_content = scss.compile(scss_filename)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django_pyscss\compiler.py
", line 43, in compile
filename, storage = get_file_and_storage(str(path))
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django_pyscss\utils.py",
line 47, in get_file_and_storage
name, storage = get_file_from_storage(filename)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django_pyscss\utils.py",
line 25, in get_file_from_storage
filename = staticfiles_storage.path(filename)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\contrib\staticfile
s\storage.py", line 51, in path
return super(StaticFilesStorage, self).path(name)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\core\files\storage
.py", line 307, in path
return safe_join(self.location, name)
File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\django\utils_os.py", lin
e 78, in safe_join
'component ({})'.format(final_path, base_path))
django.core.exceptions.SuspiciousFileOperation: The joined path (C:\widgy\page_b
uilder\html.scss) is located outside of the base path component (C:\SagePath\Vir
tualenv\Mezza\TestMezzCMS\static)

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