.
This commit is contained in:
+2
-2
@@ -155,8 +155,8 @@ REMOTE_URL = "http://penracourses.org.uk/"
|
|||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
||||||
|
|
||||||
if DEBUG:
|
#if DEBUG:
|
||||||
MEDIA_URL = REMOTE_URL + MEDIA_URL
|
# MEDIA_URL = REMOTE_URL + MEDIA_URL
|
||||||
|
|
||||||
# Redirect to home URL after login (Default redirects to /accounts/profile/)
|
# Redirect to home URL after login (Default redirects to /accounts/profile/)
|
||||||
LOGIN_REDIRECT_URL = "/"
|
LOGIN_REDIRECT_URL = "/"
|
||||||
|
|||||||
+2
-2
@@ -275,8 +275,8 @@ class RapidImage(models.Model):
|
|||||||
def image_tag(self):
|
def image_tag(self):
|
||||||
if self.image:
|
if self.image:
|
||||||
return mark_safe(
|
return mark_safe(
|
||||||
'<img src="{}media{}" class="admin-rapid-image" /><span class="admin-rapid-image-info">Click and hold to zoom<span>'
|
'<img src="{}" class="admin-rapid-image" /><span class="admin-rapid-image-info">Click and hold to zoom<span>'
|
||||||
.format(settings.MEDIA_URL, self.image))
|
.format(self.image.url))
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user