diff --git a/src/bornhack/settings.py b/src/bornhack/settings.py index 9139996b..d8c3e20d 100644 --- a/src/bornhack/settings.py +++ b/src/bornhack/settings.py @@ -49,7 +49,7 @@ INSTALLED_APPS = [ 'django_extensions', ] -MEDIA_URL = '/media/' +#MEDIA_URL = '/media/' STATIC_URL = '/static/' STATIC_ROOT = local_dir('static') STATICFILES_DIRS = [local_dir('static_src')] diff --git a/src/bornhack/urls.py b/src/bornhack/urls.py index 946903cc..68054116 100644 --- a/src/bornhack/urls.py +++ b/src/bornhack/urls.py @@ -334,5 +334,3 @@ if settings.DEBUG: urlpatterns = [ url(r'^__debug__/', include(debug_toolbar.urls)), ] + urlpatterns - - urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/src/sponsors/models.py b/src/sponsors/models.py index 4aaa010e..fca251d6 100644 --- a/src/sponsors/models.py +++ b/src/sponsors/models.py @@ -25,15 +25,15 @@ class Sponsor(CreatedUpdatedModel): help_text='A short description of the sponsorship' ) - logo = models.ImageField( - upload_to=get_sponsor_upload_path, - help_text='A logo for the sponsor' + logo = models.URLField( + max_length=255, + help_text='A URL to the logo' ) url = models.URLField( null=True, blank=True, - help_text="A URL to the sponsor." + help_text="An URL to the sponsor." ) def __str__(self): diff --git a/src/sponsors/templates/sponsors.html b/src/sponsors/templates/sponsors.html index a68d43af..ab01395e 100644 --- a/src/sponsors/templates/sponsors.html +++ b/src/sponsors/templates/sponsors.html @@ -25,7 +25,7 @@ Sponsors | {{ block.super }} {% endif %}
@@ -35,7 +35,7 @@ Sponsors | {{ block.super }} {% if sponsor.url %} {% endif %} - +
{{ sponsor.description }}