Note that there are some explanatory texts on larger screens.

plurals
  1. POundefined uploads using django cms cmsplugin_filer_file and cmsplugin_filer_image
    text
    copied!<p>I have just started using django-cms so please forgive my newbieness.</p> <ol> <li><p>Every time i try to upload a file in the admin area, for example an image file using cmsplugin_filer_file' / cmsplugin_filer_image it comes up as undefined in the clipboard area. It’s strange because the running dots appear as if it is loading the image then bang image undefined. It allows me to create folders but I cannot view uploaded files.</p> <p>On closer inspection the image has been uploaded to a directory under today’s date in media / filer dir (i.e media/filer/2012/03/27) however, no files are displayed in admin. Could it be a problem related to easy thumbnails and it is in fact that the thumbnail doesn’t display?</p></li> <li><p>Also, would you recommend using the default django-cms filer and image plug-ins instead? It says in the documentation that it only works for local storages, does this mean that you will not be able to upload files from your local computer in to your application in a production / shared hosting setting?</p></li> </ol> <p>I would be very grateful for any help with these two questions.</p> <p>Thanks</p> <pre><code> SETTINGS MEDIA_ROOT = os.path.join(PROJECT_PATH, "media") MEDIA_URL = '/media/' STATIC_ROOT = os.path.join(PROJECT_PATH, "static") STATIC_URL = '/static/' ADMIN_MEDIA_PREFIX = '/static/admin/' THUMBNAIL_PROCESSORS = ( 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', #'easy_thumbnails.processors.scale_and_crop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters', ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'easy_thumbnails', 'cms', 'mptt', 'menus', 'south', 'sekizai', 'filer', 'cmsplugin_filer_file', 'cmsplugin_filer_folder', 'cmsplugin_filer_image', 'cmsplugin_filer_teaser', 'cmsplugin_filer_video', 'cms.plugins.twitter', 'cms.plugins.text', 'cms.plugins.flash', 'cms.plugins.googlemap', 'cms.plugins.link', URLS from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), url(r'^', include('cms.urls')), ) if settings.DEBUG: urlpatterns = patterns('', url(r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), url(r'', include('django.contrib.staticfiles.urls')), ) + urlpatterns </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload