Okay I've solved the problem of the missing editor after I turned DEBUG = 
True, and traceback reveals:

Django Version: 1.8.5
Python Version: 2.7.9
Installed Applications:
(u'mezzanine.boot',
 u'solid',
 u'django.contrib.auth',
 u'django.contrib.contenttypes',
 u'django.contrib.redirects',
 u'django.contrib.sessions',
 u'django.contrib.sites',
 u'django.contrib.sitemaps',
 u'mezzanine.conf',
 u'mezzanine.core',
 u'mezzanine.generic',
 u'mezzanine.pages',
 u'mezzanine.blog',
 u'mezzanine.forms',
 u'mezzanine.galleries',
 u'mezzanine.twitter',
 u'filebrowser_safe',
 u'grappelli_safe',
 u'django.contrib.admin',
 u'django.contrib.staticfiles',
 u'django_comments')
Installed Middleware:
(u'django.contrib.sessions.middleware.SessionMiddleware',
 u'django.middleware.common.CommonMiddleware',
 u'django.middleware.csrf.CsrfViewMiddleware',
 u'django.contrib.auth.middleware.AuthenticationMiddleware',
 u'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 u'django.contrib.messages.middleware.MessageMiddleware',
 u'django.middleware.clickjacking.XFrameOptionsMiddleware',
 u'mezzanine.core.request.CurrentRequestMiddleware',
 u'mezzanine.core.middleware.RedirectFallbackMiddleware',
 u'mezzanine.core.middleware.TemplateForDeviceMiddleware',
 u'mezzanine.core.middleware.TemplateForHostMiddleware',
 u'mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware',
 u'mezzanine.core.middleware.SitePermissionMiddleware',
 u'mezzanine.pages.middleware.PageMiddleware')


Template error:
In template /opt/python/run/venv/lib/python2.7/site-packages/grappelli_safe/
templates/admin/includes/fieldset.html, error at line 15


Traceback:

File 
"/opt/python/run/venv/lib/python2.7/site-packages/django/core/handlers/base.py" 
in get_response
  164.                 response = response.render()
...
File 
"/opt/python/run/venv/lib/python2.7/site-packages/filebrowser_safe/storage.py" 
in makedirs
  63.         os.makedirs(self.path(name))
File "/opt/python/run/baselinenv/lib64/python2.7/os.py" in makedirs
  150.             makedirs(head, mode)
File "/opt/python/run/baselinenv/lib64/python2.7/os.py" in makedirs
  157.     mkdir(name, mode)


Exception Type: OSError at /admin/blog/blogpost/1/
Exception Value: [Errno 13] Permission denied: 
'/opt/python/current/app/mezzy_top/static/media'


In case anyone meets with the same problem: 

The problem was related to the static / media directory. I deleted the 
entire 'galleries' component since I had no use for the demo images, which 
caused the media library and, for some reason, the WYSIWYG editor to 
disappear.

*Solution*:

I replaced the 'static/media/uploads' folder with the default generated and 
deleted the images within the folders. Everything fell back nicely in 
place, and got working.


On Sunday, 18 October 2015 22:07:57 UTC-7, Shannon Chan wrote:
>
>
> Hi,
>
> I recently tried to deploy Mezzanine on Elastic beanstalk. 
>
> Mostly I followed the instructions from realpython 
> <https://realpython.com/blog/python/deploying-a-django-app-to-aws-elastic-beanstalk/>
>  
> on deploying a Django app on Elastic Beanstalk. Aside from installing a 
> theme and making changes to local_settings.py to ready it for deployment, 
> there wasn't any other adjustments I did. After deploying it successfully, 
> the site looks great, and everything appears to be functioning normally. 
>
> Except when I wanted to create my first post, I noticed that the WYSIWYG 
> editor was missing, regardless whether I was changing or adding a blog 
> post. 
>
> The only way I am able to add a blog post now is through the Quick Blog 
> feature on the Admin page dashboard, and then changing to site view, and 
> calling up the WYSIWYG editor from the post on the site.
>
>
>
> <https://lh3.googleusercontent.com/-itPW5xwes8I/ViR5VkTg7KI/AAAAAAAAALY/rSmqGVFBaSg/s1600/Screen%2BShot%2B2015-10-18%2Bat%2B10.00.24%2BPM.png>
>
>
> <https://lh3.googleusercontent.com/-PHhFLSXzjGs/ViR5PvIUoEI/AAAAAAAAALQ/SeYYw2FHL1M/s1600/Screen%2BShot%2B2015-10-18%2Bat%2B10.00.55%2BPM.png>
>  
>
>
>
>
> Here are the commands I ran on.ebextensions/.config:
>
> container_commands:
>   01_migrate:
>     command: "source /opt/python/run/venv/bin/activate && python 
> mezzy_top/manage.py migrate --noinput"
>     leader_only: true
>   02_createsu:
>     command: "source /opt/python/run/venv/bin/activate && python 
> mezzy_top/manage.py createsu || true"
>     leader_only: true
>   03_collectstatic:
>     command: "source /opt/python/run/venv/bin/activate && python 
> mezzy_top/manage.py collectstatic --noinput"
>   04_uninstall_pil:
>     command: "source /opt/python/run/venv/bin/activate && yes | pip 
> uninstall Pillow"
>   06_reinstall_pil:
>     command: "source /opt/python/run/venv/bin/activate && yes | pip 
> install Pillow --no-cache-dir"
>     
> packages:
>   yum:
>     git: []
>     postgresql93-devel: []
>     libjpeg-turbo-devel: []
>     libpng-devel: []
>     freetype-devel: []
>
>
> Requirements.txt:
>
> beautifulsoup4==4.4.1
> bleach==1.4.2
> chardet==2.3.0
> Django==1.8.5
> django-contrib-comments==1.6.1
> filebrowser-safe==0.4.0
> future==0.15.2
> grappelli-safe==0.4.1
> html5lib==0.9999999
> Mezzanine==4.0.1
> oauthlib==1.0.3
> Pillow==3.0.0
> psycopg2==2.6.1
> pytz==2015.6
> requests==2.8.1
> requests-oauthlib==0.5.0
> six==1.10.0
> tzlocal==1.2
> wheel==0.24.0
>
>
> File tree:
>
> .
>> ├── __init__.py
>> ├── deploy
>> │   ├── crontab.template
>> │   ├── gunicorn.conf.py.template
>> │   ├── local_settings.py.template
>> │   ├── nginx.conf.template
>> │   └── supervisor.conf.template
>> ├── fabfile.py
>> ├── manage.py
>> ├── mysite
>> │   ├── __init__.py
>> │   ├── __init__.pyc
>> │   ├── local_settings.py
>> │   ├── settings.py
>> │   ├── settings.pyc
>> │   ├── urls.py
>> │   ├── urls.pyc
>> │   └── wsgi.py
>> ├── theme
>> └── static
>>     └── media
>>         └── uploads
>>             ├── blog
>>             └── gallery
>
>
> Been banging my head on this for days. Would really appreciate any help! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to