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
@mixin block_width() { | |
// Device widths | |
$view_small: 320px; | |
$view_med: 568px; | |
$view_max: 1200px; | |
// Element widths | |
$small: 200px; | |
$med: 290px; |
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
@register.inclusion_tag('templatetags/global_promo.html', takes_context = True) | |
def current_promo(context): | |
context.update({'discount_code': Promo.objects.filter(parent_promo__isnull=True)}) | |
import datetime | |
from datetime import date | |
from datetime import time | |
current_date = datetime.date.today() | |
promo_date = datetime.date(2012, 11, 26) | |