This file contains hidden or 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
<button class="btn"> | |
Info<span class="hidden-phone">rmation</span> | |
</button> |
This file contains hidden or 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
<h4 class="date"> | |
<span class="hidden-phone">January 13th, 1986</span> | |
<span class="visible-phone">1/13/1986</span> | |
</h4> |
This file contains hidden or 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
<select name="country"> | |
<option> | |
<span class="hidden-phone">United States of America</span> | |
<span class="visible-phone">US</span> | |
</option> | |
</select> |
This file contains hidden or 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
PUT /?versioning HTTP/1.1 | |
Authorization: AWS AKIAIOSFODNN7EXAMPLE:xQE0diMbLRepdf3YB+FIEXAMPLE= |
This file contains hidden or 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
DEFAULT_FILE_STORAGE = STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage' | |
AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID') | |
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY') | |
AWS_STORAGE_BUCKET_NAME = 'mybucket' |
This file contains hidden or 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
# s3config.py | |
import os | |
from storages.backends.s3boto import S3BotoStorage | |
media_storage = S3BotoStorage( | |
bucket=os.environ.get('S3_MEDIA_BUCKET_NAME'), | |
access_key=os.environ.get('S3_MEDIA_ACCESS_KEY'), | |
secret_key=os.environ.get('S3_MEDIA_SECRET_KEY'), | |
) |
This file contains hidden or 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
DEFAULT_FILE_STORAGE = 'myproject.s3config.media_storage' | |
STATICFILES_STORAGE = 'myproject.s3config.static_storage' |
This file contains hidden or 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
/* | |
Usage: | |
var ParentView = Backbone.View.extend({ | |
events: { | |
'click': 'doClick' | |
} | |
}); |
This file contains hidden or 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
AUTHENTICATION_BACKENDS = ('project_name.wherever.you.put.it.SmartModelBackend',) |
This file contains hidden or 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
<ul> | |
{% for product in products %} | |
<li> | |
<h4>{{ product.name }}</h4> | |
<ul> | |
{% for feature in product.feature_set.all %} | |
<li>{{ feature.name }}</li> | |
{% endfor %} | |
</ul> |
OlderNewer