More Vagrant stuff.

master
Nick Sergeant 2014-10-30 16:19:53 -04:00
parent b09c753b9d
commit a47b7dd494
1 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ class Snipt(models.Model):
return u'https://{}.snipt.net/{}/'.format(self.user.username, self.slug)
if settings.DEBUG:
root = 'http://snipt.localhost'
root = 'http://local.snipt.net'
else:
root = 'https://snipt.net'
@ -193,7 +193,7 @@ class Snipt(models.Model):
filename = u'{}.txt'.format(self.slug)
if settings.DEBUG:
root = 'http://snipt.localhost'
root = 'http://local.snipt.net'
else:
root = 'https://snipt.net'
@ -202,7 +202,7 @@ class Snipt(models.Model):
def get_embed_url(self):
if settings.DEBUG:
root = 'http://snipt.localhost'
root = 'http://local.snipt.net'
else:
root = 'https://snipt.net'
@ -211,7 +211,7 @@ class Snipt(models.Model):
def get_raw_url(self):
if settings.DEBUG:
root = 'http://snipt.localhost'
root = 'http://local.snipt.net'
else:
root = 'https://snipt.net'