fusionbox / django-widgy

A CMS framework for Django built on a heterogenous tree editor.
http://wid.gy
Other
332 stars 52 forks source link

django.core.exceptions.SuspiciousFileOperation #378

Open shamrox opened 8 years ago

shamrox commented 8 years ago

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\djangoinit.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\importlibinit.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\formsinit.py", line 42, in class CKEditorWidget(forms.Textarea): File "C:\SagePath\Virtualenv\Mezza\lib\site-packages\widgy\contrib\page_builde r\formsinit.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\formsinit.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)