Created
May 9, 2013 07:43
-
-
Save gaqzi/5546123 to your computer and use it in GitHub Desktop.
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
class Migration(DataMigration): | |
def forwards(self, orm): | |
if settings.DEBUG: | |
app, _ = FacebookApplication.objects.get_or_create( | |
id=123456, | |
secret='sssh', | |
default_scope='user_likes,email' | |
) | |
# Yet another test page | |
page, _ = FacebookPage.objects.get_or_create(id=123456) | |
tab, _ = FacebookTab.objects.get_or_create(application=app, | |
page=page) | |
elif settings.STAGING: | |
FacebookApplication.objects.create( | |
id=510804, | |
secret='sshhhss', | |
default_scope='user_likes,email' | |
) | |
# Yet another test page | |
page, _ = FacebookPage.objects.get_or_create(id=12346840) | |
tab, _ = FacebookTab.objects.get_or_create(application=app, | |
page=page) | |
elif settings.PRODUCTION: | |
FacebookApplication.objects.create( | |
id=2135610, | |
secret='IM NOT TELLING ANYONE, MOOOOOOM!', | |
default_scope='user_likes,email' | |
) | |
else: | |
raise Exception('NO VALID ENVIRONMENT FOR APP MIGRATION') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment