I am using django-cms for my project right now and I am using their file and image plugins on my pages, but when I try to upload a file, I get a suspiciousoperation error. I have looked at my media_url and media_root, and played with them but I haven't been able to have any success. There is also a django cms media root which I have played with too. I have gotten this error on the dev server as well as apache. I have set file upload permissions to 0644 as well (which was recommended by others with similar problems). All other media files work properly. Here is my traceback.
Environment: Request Method: POST Request URL: http://localhost:8000/admin/cms/page/1/edit-plugin/13/?popup=true&no_preview Django Version: 1.2.4 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.admindocs', 'menus', 'mptt', 'appmedia', 'south', 'cms.plugins.text', 'cms.plugins.picture', 'cms.plugins.link', 'cms.plugins.file', 'cms.plugins.snippet', 'cms.plugins.googlemap', 'publisher', 'myproject.polls', 'social_auth', 'registration', 'voting', 'cms'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.media.PlaceholderMediaMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "C:\Python27\lib\site-packages\django\utils\decorators.py" in _wrapped_view 76. response = view_func(request, *args, **kwargs) File "C:\Python27\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func 78. response = view_func(request, *args, **kwargs) File "C:\Python27\lib\site-packages\django\contrib\admin\sites.py" in inner 190. return view(request, *args, **kwargs) File "C:\Python27\lib\site-packages\cms\admin\pageadmin.py" in edit_plugin 1239. response = plugin_admin.add_view(request) File "C:\Python27\lib\site-packages\django\utils\decorators.py" in _wrapper 21. return decorator(bound_func)(*args, **kwargs) File "C:\Python27\lib\site-packages\django\utils\decorators.py" in _wrapped_view 76. response = view_func(request, *args, **kwargs) File "C:\Python27\lib\site-packages\django\utils\decorators.py" in bound_func 17. return func(self, *args2, **kwargs2) File "C:\Python27\lib\site-packages\django\db\transaction.py" in _commit_on_success 299. res = func(*args, **kw) File "C:\Python27\lib\site-packages\django\contrib\admin\options.py" in add_view 821. self.save_model(request, new_object, form, change=False) File "C:\Python27\lib\site-packages\cms\plugin_base.py" in save_model 169. return super(CMSPluginBase, self).save_model(request, obj, form, change) File "C:\Python27\lib\site-packages\django\contrib\admin\options.py" in save_model 623. obj.save() File "C:\Python27\lib\site-packages\cms\models\pluginmodel.py" in save 206. super(CMSPlugin, self).save() File "C:\Python27\lib\site-packages\django\db\models\base.py" in save 456. self.save_base(using=using, force_insert=force_insert, force_update=force_update) File "C:\Python27\lib\site-packages\django\db\models\base.py" in save_base 542. for f in meta.local_fields] File "C:\Python27\lib\site-packages\django\db\models\fields\files.py" in pre_save 255. file.save(file.name, file, save=False) File "C:\Python27\lib\site-packages\django\db\models\fields\files.py" in save 92. self.name = self.storage.save(name, content) File "C:\Python27\lib\site-packages\django\core\files\storage.py" in save 47. name = self.get_available_name(name) File "C:\Python27\lib\site-packages\django\core\files\storage.py" in get_available_name 73. while self.exists(name): File "C:\Python27\lib\site-packages\django\core\files\storage.py" in exists 196. return os.path.exists(self.path(name)) File "C:\Python27\lib\site-packages\django\core\files\storage.py" in path 212. raise SuspiciousOperation("Attempted access to '%s' denied." % name) Exception Type: SuspiciousOperation at /admin/cms/page/1/edit-plugin/ 13/ Exception Value: Attempted access to 'C:\Users\Tony\Documents\My Music \1\Penguins.jpg' denied. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

