Merge pull request #754 from Gluejar/fix-image-loading

Fix image loading
pull/46/head
eshellman 2018-01-26 12:56:02 -05:00 committed by GitHub
commit f37649dd40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -425,6 +425,7 @@ SHOW_GOOGLE_ANALYTICS = False
# to enable uploading to S3 and integration of django-storages + django-ckeditor
# some variables to be overriddden in more specific settings files -- e.g., prod.py,
CKEDITOR_ALLOW_NONIMAGE_FILES = False
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''

View File

@ -1,5 +1,9 @@
from django.conf.urls import patterns, url, include
from django.contrib.auth.decorators import login_required
from django.contrib.sitemaps.views import index, sitemap
from django.views.decorators.cache import never_cache
from ckeditor import views as ckedit_views
from regluit.admin import site
from regluit.core.sitemaps import WorkSitemap, PublisherSitemap
@ -20,7 +24,8 @@ urlpatterns = [
url(r'^admin/', include(site.urls)),
url(r'^comments/', include('django_comments.urls')),
url(r"^notification/", include('notification.urls')),
url(r'^ckeditor/', include('ckeditor.urls')),
url(r'^ckeditor/upload/', login_required(ckedit_views.upload), name='ckeditor_upload'),
url(r'^ckeditor/browse/', never_cache(login_required(ckedit_views.browse)), name='ckeditor_browse'),
# questionnaire urls
url(r'^survey/', include('questionnaire.urls')),
# sitemaps