(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
<div class="product-item__container"> | |
{% raw %} | |
{{#unless productAvailable}} | |
<span class="badge soldout"> | |
<span class="badge-label soldout">Sold out</span> | |
</span> | |
{{/unless}} | |
{{#if onSale}} | |
{{#unless soldOut}} |
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
In this tutorial, I will be going over to how to deploy a Django app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app Hygge Homes (a vacation home rental app for searching and booking vacation homes based off Airbnb) and we wanted to share with other developers some of the lessons we learned along the way.
Following this tutorial, you will have an application that has:
# add this script in product liquid (Just before addtocart form) | |
<!-- Code added for Inventory in Pipeline --> | |
<script> | |
var inv_qty = {}; | |
{% for var in product.variants %} | |
inv_qty[{{- var.id -}}] = {{ var.inventory_quantity | default: 0 }}; | |
{% endfor %} | |
</script> | |
{% if current_variant.inventory_management == "shopify" %} |
<div {{ $attributes }} wire:ignore x-data="{ | |
signaturePadId: $id('signature'), | |
signaturePad: null, | |
signature: @entangle($attributes->get('wire:model')), | |
ratio: null, | |
init() { | |
this.resizeCanvas(); | |
this.signaturePad = new SignaturePad(this.$refs.canvas); | |
if (this.signature) { | |
this.signaturePad.fromDataURL(this.signature, { ratio: this.ratio }); |