mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Removed all inline <script> tags
This commit is contained in:
@@ -1,16 +1,33 @@
|
||||
import uuid
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from django.utils import timezone
|
||||
from django.views.decorators.cache import cache_page
|
||||
from django.views.decorators.http import etag
|
||||
from django.views.i18n import javascript_catalog
|
||||
|
||||
import pretix.base.views.cachedfiles
|
||||
import pretix.control.urls
|
||||
import pretix.presale.urls
|
||||
|
||||
from .base.views import cachedfiles
|
||||
|
||||
# This is not a valid Django URL configuration, as the final
|
||||
# configuration is done by the pretix.multidomain package.
|
||||
js_info_dict = {
|
||||
'packages': ('pretix',),
|
||||
}
|
||||
|
||||
# Yes, we want to regenerate this every time the module has been imported to
|
||||
# refresh the cache at least at every code deployment
|
||||
import_date = timezone.now().strftime("%Y%m%d%H%M")
|
||||
|
||||
base_patterns = [
|
||||
url(r'^download/(?P<id>[^/]+)/$', pretix.base.views.cachedfiles.DownloadView.as_view(),
|
||||
name='cachedfile.download')
|
||||
url(r'^download/(?P<id>[^/]+)/$', cachedfiles.DownloadView.as_view(),
|
||||
name='cachedfile.download'),
|
||||
url(r'^jsi18n/$',
|
||||
etag(lambda *s, **k: import_date)(cache_page(3600, key_prefix='js18n-%s' % import_date)(javascript_catalog)),
|
||||
js_info_dict, name='javascript-catalog'),
|
||||
]
|
||||
|
||||
control_patterns = [
|
||||
|
||||
Reference in New Issue
Block a user