This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": | |
{ | |
"responseType": | |
"closeAndResetToFilteredFeed", | |
"categoryId": | |
{ | |
"categories": 1 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command CMD-AppDeploy failed! | |
[2015-03-25T19:55:59.379Z] INFO [22022] : Command processor returning results: | |
{"status":"FAILURE","api_version":"1.0","truncated":"true","results":[{"status":"FAILURE","msg":"[CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/11_asset_compilation.sh] command failed with error code 1: /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh\n++ /opt/elasticbeanstalk/bin/get-config container -k script_dir\n+ EB_SCRIPT_DIR=/opt/elasticbeanstalk/support/scripts\n++ /opt/elasticbeanstalk/bin/get-config container -k app_staging_dir\n+ EB_APP_STAGING_DIR=/var/app/ondeck\n++ /opt/elasticbeanstalk/bin/get-config container -k app_user\n+ EB_APP_USER=webapp\n++ /opt/elasticbeanstalk/bin/get-config container -k support_dir\n+ EB_SUPPORT_DIR=/opt/elasticbeanstalk/support\n+ . /opt/elasticbeanstalk/support/envvars\n++ export BUNDLE_DISABLE_SHARED_GEMS=1\n++ BUNDLE_DISABLE_SHARED_GEMS=1\n++ export BUNDLE_PATH=vendor/bundle\n++ BUNDLE_PATH=vendor/bundle\n++ export RAILS_SKIP_MIGRATIONS=f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RROR: [Instance: i-6300a29f Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: [CMD-Startup/StartupStage0/AppDeployPreHook/10_bundle_install.sh] command failed with error code 5: /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh | |
++ /opt/elasticbeanstalk/bin/get-config container -k script_dir | |
+ EB_SCRIPT_DIR=/opt/elasticbeanstalk/support/scripts | |
++ /opt/elasticbeanstalk/bin/get-config container -k app_staging_dir | |
+ EB_APP_STAGING_DIR=/var/app/ondeck | |
++ /opt/elasticbeanstalk/bin/get-config container -k app_user | |
+ EB_APP_USER=webapp | |
++ /opt/elasticbeanstalk/bin/get-config container -k support_dir | |
+ EB_SUPPORT_DIR=/opt/elasticbeanstalk/support | |
+ . /opt/elasticbeanstalk/support/envvars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using extensions with menus | |
If you want the extension to show up in the menu (e.g. if you had created an extension that added an icon to the page) use menu modifiers. Every node.id corresponds to their related page.id. Page.objects.get(pk=node.id) is the way to get the page object. Every page extension has a one-to-one relationship with the page so you can access it by using the reverse relation, e.g. extension = page.yourextensionlowercased. Now you can hook this extension by storing it on the node: node.extension = extension. In the menu template you can access your icon on the child object: child.extension.icon. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load compress cms_tags menu_tags sekizai_tags staticfiles %} | |
<a class="mobile-nav" href="#"><i class="ico-hamburger ico"></i></a> | |
<a class="logo" href="/"> | |
<div class="logo-desktop"> | |
<img class="desktop-only" src="{{ STATIC_URL }}images/achieve_logo.svg" alt="Project Achieve"/> | |
</div> | |
<div class="logo-small"> | |
<img class="mobile-only" src="{{ STATIC_URL }}images/achieve_logo_mobile.svg" alt="Project Achieve"/> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.urlresolvers import reverse | |
from cms.menu_bases import CMSAttachMenu | |
from menus.base import NavigationNode | |
from menus.menu_pool import menu_pool | |
from .models import Category | |
class CategoryMenu(CMSAttachMenu): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/var/www/phnyc.org/envs/playwrights/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line | |
utility.execute() | |
File "/var/www/phnyc.org/envs/playwrights/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/var/www/phnyc.org/envs/playwrights/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command | |
klass = load_command_class(app_name, subcommand) | |
File "/var/www/phnyc.org/envs/playwrights/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python manage.py load_tweets | |
Retrieving query bits... | |
Found 2 user(s) | |
Initializing twitter connection... | |
Traceback (most recent call last): | |
File "manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/var/www/phnyc.org/envs/playwrights/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line | |
utility.execute() | |
File "/var/www/phnyc.org/envs/playwrights/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*************************** 1. row *************************** | |
id: 12 | |
priority: 0 | |
attempts: 4 | |
handler: --- !ruby/object:Delayed::PerformableMethod | |
object: !ruby/class 'DelayedAsset' | |
method_name: :uploadAndProcessImageJob | |
args: | |
- !ruby/ActiveRecord:PropertyPhoto | |
attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- unless gallery.blank? | |
.gallery data-timing="#{gallery.timing}" | |
- gallery.published_photos.each do |photo| | |
.slide | |
img src="#{photo.file.thumb('642x428#').url}" alt="#{photo.alt}" | |
p.image-caption = photo.description |