I hereby claim:
- I am cmsimike on github.
- I am cmsimike (https://keybase.io/cmsimike) on keybase.
- I have a public key whose fingerprint is 30BE B5C7 6C8B C855 62C3 E996 9DB9 E2D1 4D57 E30F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
model: | |
class Subscription(models.Model): | |
user = models.ForeignKey(User) | |
stripe_id = models.CharField(max_length=255) | |
subscribed = models.BooleanField(default=False) | |
created = models.DateTimeField(auto_now_add=True) | |
updated = models.DateTimeField(auto_now=True) | |
expires = models.DateTimeField(null=True, blank=True) | |
def save(self, *args, **kwargs): |
<IfModule mod_headers.c> | |
<FilesMatch "\.(css|js)$"> | |
Header set Cache-Control "no-store" | |
</FilesMatch> | |
</IfModule> | |
$ sudo a2enmod headers |
class MyCallable(object): | |
def __init__(self, urlparts, callable): | |
self.urlparts = urlparts | |
self.callable = callable | |
def __call__(self, **kwargs): | |
print kwargs | |
print self.urlparts | |
def __getattr__(self, name): | |
# Return a callable object of this same type so that you can just keep | |
# chaining together calls and just adding that missing attribute to the |
if item == None: | |
item = Instance() | |
item.populate(context) |
+ config.vm.provision :puppet do |puppet| | |
+ puppet.manifests_path = "website/setup/manifests" | |
+ puppet.manifest_file = "lucid32.pp" | |
+ puppet.module_path = "website/setup/modules" | |
+ puppet.options = "--modulepath /tmp/vagrant-puppet/modules-0"# --verbose --debug" | |
+ end |