diff --git a/static/lencrypt/test b/static/lencrypt/test new file mode 100644 index 00000000..224e3ffb --- /dev/null +++ b/static/lencrypt/test @@ -0,0 +1 @@ +surprise! \ No newline at end of file diff --git a/urls.py b/urls.py index 06653c3b..93e276e6 100755 --- a/urls.py +++ b/urls.py @@ -7,6 +7,7 @@ from ckeditor_uploader import views as ckedit_views from regluit.admin import site from regluit.core.sitemaps import WorkSitemap, PublisherSitemap +from regluit.frontend.views import static_redirect_view sitemaps = { 'works': WorkSitemap, @@ -37,4 +38,6 @@ urlpatterns = [ name='django.contrib.sitemaps.views.sitemap'), url(r'^sitemap-(?P
.+)\.xml$', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'), + url(r'^\.well-known/acme-challenge/(?P[\w\.]*)', + static_redirect_view, {'dir': 'lencrypt'}), ]