Code layout change.
[wolnelektury.git] / src / wolnelektury / context_processors.py
diff --git a/src/wolnelektury/context_processors.py b/src/wolnelektury/context_processors.py
new file mode 100644 (file)
index 0000000..5885e03
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django.conf import settings
+
+def extra_settings(request):
+    return {
+        'STATIC_URL': settings.STATIC_URL,
+        'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL)
+    }