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
[user] | |
name = dan peade | |
email = dan.peade@gmail.com | |
[diff] | |
tool = xxdiff | |
[difftool "xxdiff"] | |
cmd = xxdiff \"\" \"\" | |
[difftool] | |
prompt = false | |
[merge] |
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
#-*- 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 |
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
https://gist.github.com/7112974 |
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
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 |
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
# 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")}) |
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
# | |
C | |
C | |
i | |
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
https://gist.github.com/7112871 |
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
SHOP_CHECKOUT_STEP_DISPLAYED_FIELDS |
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
#checkout { | |
header { | |
div { | |
@include clearfix; | |
} | |
.secure { | |
text-align: right; | |
padding-top: 24px; | |
img { | |
@include inline-block(); |
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
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 |