Skip to content

Instantly share code, notes, and snippets.

[user]
name = dan peade
email = dan.peade@gmail.com
[diff]
tool = xxdiff
[difftool "xxdiff"]
cmd = xxdiff \"\" \"\"
[difftool]
prompt = false
[merge]
#-*- coding: utf-8 -*-
from optparse import make_option
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""
Note that this is taken directly from here:
* https://github.com/stefanfoulis/django-graceful-session-cleanup/
The only difference is that it includes a call to
https://gist.github.com/7112974
CHECKOUT_STEPS = [{"template": "billing_shipping", "url": "details",
"title": _("Details")}]
CHECKOUT_STEP_FIRST = CHECKOUT_STEP_PAYMENT = CHECKOUT_STEP_LAST = 1
if settings.SHOP_CHECKOUT_STEPS_SPLIT:
CHECKOUT_STEPS[0].update({"url": "billing-shipping",
"title": _("Address")})
if settings.SHOP_PAYMENT_STEP_ENABLED:
CHECKOUT_STEPS.append({"template": "payment", "url": "payment",
"title": _("Payment")})
CHECKOUT_STEP_PAYMENT = CHECKOUT_STEP_LAST = 2
# Set up some constants for identifying each checkout step.
CHECKOUT_STEPS = [{"template": "billing_shipping", "url": "details",
"title": _("Details")}]
CHECKOUT_STEP_FIRST = CHECKOUT_STEP_PAYMENT = CHECKOUT_STEP_LAST = 1
if settings.SHOP_CHECKOUT_STEPS_SPLIT:
CHECKOUT_STEPS[0].update({"url": "billing-shipping",
"title": _("Address")})
if settings.SHOP_PAYMENT_STEP_ENABLED:
CHECKOUT_STEPS.append({"template": "payment", "url": "payment",
"title": _("Payment")})
https://gist.github.com/7112871
#
C
C
i
SHOP_CHECKOUT_STEP_DISPLAYED_FIELDS
#checkout {
header {
div {
@include clearfix;
}
.secure {
text-align: right;
padding-top: 24px;
img {
@include inline-block();
alias efo
efo
runserver
127.0.0.1:8000
cd ~/projects
mkdir mysqldumped
cd mysqldumped
virtualenv --no-site-packages mysqldumped-env
source mysqldumped-env/bin/activate