More Vagrant stuff.
parent
b09c753b9d
commit
a47b7dd494
|
@ -168,7 +168,7 @@ class Snipt(models.Model):
|
||||||
return u'https://{}.snipt.net/{}/'.format(self.user.username, self.slug)
|
return u'https://{}.snipt.net/{}/'.format(self.user.username, self.slug)
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
root = 'http://snipt.localhost'
|
root = 'http://local.snipt.net'
|
||||||
else:
|
else:
|
||||||
root = 'https://snipt.net'
|
root = 'https://snipt.net'
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ class Snipt(models.Model):
|
||||||
filename = u'{}.txt'.format(self.slug)
|
filename = u'{}.txt'.format(self.slug)
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
root = 'http://snipt.localhost'
|
root = 'http://local.snipt.net'
|
||||||
else:
|
else:
|
||||||
root = 'https://snipt.net'
|
root = 'https://snipt.net'
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ class Snipt(models.Model):
|
||||||
def get_embed_url(self):
|
def get_embed_url(self):
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
root = 'http://snipt.localhost'
|
root = 'http://local.snipt.net'
|
||||||
else:
|
else:
|
||||||
root = 'https://snipt.net'
|
root = 'https://snipt.net'
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ class Snipt(models.Model):
|
||||||
def get_raw_url(self):
|
def get_raw_url(self):
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
root = 'http://snipt.localhost'
|
root = 'http://local.snipt.net'
|
||||||
else:
|
else:
|
||||||
root = 'https://snipt.net'
|
root = 'https://snipt.net'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue