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
.ad_bar, | |
.ad_below_content, | |
.ad_belowmenu, | |
.ad_bg, | |
.ad_bg_300x250, | |
.ad_big_banner, | |
.ad_bigbox, | |
.ad_billboard, | |
.ad_biz, | |
.ad_blk, |
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
from fabric.api import local, run, cd, env, sudo, get, put, settings as fabric_settings | |
PROJECT_NAME = "myamazingproject" | |
# lets first set up some environments which we might want to go into | |
# allows us to use fab environment command | |
# we'll see later how this is used | |
def staging(): | |
"""Sets up the staging environment for fab remote commands""" | |
env.PROJECT_PATH = "~/path/to/your/%s/" % (PROJECT_NAME) |
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
from django.contrib.auth.models import User | |
from django.db.models.signals import post_save | |
class UserProfile(models.Model): | |
user = models.OneToOneField(User) | |
#other fields here | |
def __str__(self): | |
return "%s's profile" % self.user |