Browse Source

Dropped MISAGO_JS_DEBUG

Rafał Pitoń 10 years ago
parent
commit
44ecfdf686

+ 0 - 6
docs/developers/settings.rst

@@ -247,12 +247,6 @@ MISAGO_HOURL_POST_LIMIT
 Hourly limit of posts that may be posted from single account. Fail-safe for situations when forum is flooded by spam bot. Change to 0 to lift this restriction.
 Hourly limit of posts that may be posted from single account. Fail-safe for situations when forum is flooded by spam bot. Change to 0 to lift this restriction.
 
 
 
 
-MISAGO_JS_DEBUG
----------------
-
-Switches between production and debug versions of Ember and Handlebars.
-
-
 MISAGO_MAILER_BATCH_SIZE
 MISAGO_MAILER_BATCH_SIZE
 ------------------------
 ------------------------
 
 

+ 0 - 48
misago/conf/defaults.py

@@ -38,12 +38,6 @@ MISAGO_JS_DEBUG = False
 # Assets Pipeline
 # Assets Pipeline
 # See http://django-pipeline.readthedocs.org/en/latest/configuration.html
 # See http://django-pipeline.readthedocs.org/en/latest/configuration.html
 PIPELINE_CSS = {
 PIPELINE_CSS = {
-    'misago': {
-        'source_filenames': (
-            'misago/css/style.less',
-        ),
-        'output_filename': 'misago.css',
-    },
     'misago_admin': {
     'misago_admin': {
         'source_filenames': (
         'source_filenames': (
             'misago/admin/css/style.less',
             'misago/admin/css/style.less',
@@ -53,47 +47,6 @@ PIPELINE_CSS = {
 }
 }
 
 
 PIPELINE_JS = {
 PIPELINE_JS = {
-    'misago_lib': {
-        'source_filenames': (
-            'misago/ember/jquery-1.11.1.min.js',
-            'misago/ember/handlebars.runtime-v2.0.0.js',
-            'misago/ember/ember.prod-1.10.b4.js',
-            'misago/ember/ember-data-1.0.0.b14.js',
-            'misago/app/preloadstore.js',
-            'misago/app/django-i18n.js',
-        ),
-        'output_filename': 'misago_lib.js',
-    },
-    'misago_lib_debug': {
-        'source_filenames': (
-            'misago/ember/jquery-1.11.1.min.js',
-            'misago/ember/handlebars-v2.0.0.js',
-            'misago/ember/ember-1.10.b4.js',
-            'misago/ember/ember-data.prod-1.0.0.b14.js',
-            'misago/app/preloadstore.js',
-            'misago/app/django-i18n.js',
-        ),
-        'output_filename': 'misago_lib_debug.js',
-    },
-    'misago': {
-        'source_filenames': (
-            'misago/app/application.js',
-            'misago/app/router.js',
-            'misago/app/components/*.js',
-            'misago/app/controllers/*.js',
-            'misago/app/routes/*.js',
-            'misago/app/models/*.js',
-            'misago/app/templates/*.hbs',
-        ),
-        'output_filename': 'misago.js',
-    },
-    'misago_editor': {
-        'source_filenames': (
-            'misago/js/jquery.autosize.js',
-            'misago/js/misago-editor.js',
-        ),
-        'output_filename': 'misago-editor.js',
-    },
     'misago_admin': {
     'misago_admin': {
         'source_filenames': (
         'source_filenames': (
             'misago/admin/js/jquery.js',
             'misago/admin/js/jquery.js',
@@ -190,7 +143,6 @@ TEMPLATE_CONTEXT_PROCESSORS = (
     'django.core.context_processors.static',
     'django.core.context_processors.static',
     'django.core.context_processors.tz',
     'django.core.context_processors.tz',
     'django.contrib.messages.context_processors.messages',
     'django.contrib.messages.context_processors.messages',
-    'misago.core.context_processors.js_debug',
     'misago.core.context_processors.site_address',
     'misago.core.context_processors.site_address',
     'misago.conf.context_processors.settings',
     'misago.conf.context_processors.settings',
     'misago.users.context_processors.sites_links',
     'misago.users.context_processors.sites_links',

+ 1 - 6
misago/core/context_processors.py

@@ -1,12 +1,6 @@
 from django.conf import settings
 from django.conf import settings
 
 
 
 
-def js_debug(request):
-    return {
-        'MISAGO_JS_DEBUG': settings.MISAGO_JS_DEBUG
-    }
-
-
 def site_address(request):
 def site_address(request):
     if request.is_secure():
     if request.is_secure():
         site_protocol = 'https'
         site_protocol = 'https'
@@ -14,6 +8,7 @@ def site_address(request):
     else:
     else:
         site_protocol = 'http'
         site_protocol = 'http'
         address_template = 'http://%s'
         address_template = 'http://%s'
+
     return {
     return {
         'SITE_PROTOCOL': site_protocol,
         'SITE_PROTOCOL': site_protocol,
         'SITE_HOST': request.get_host(),
         'SITE_HOST': request.get_host(),

+ 0 - 2
misago/project_template/project_name/settings.py

@@ -25,8 +25,6 @@ DEBUG = True
 
 
 TEMPLATE_DEBUG = DEBUG
 TEMPLATE_DEBUG = DEBUG
 
 
-MISAGO_JS_DEBUG = DEBUG
-
 # Hosts allowed to reach your site
 # Hosts allowed to reach your site
 
 
 ALLOWED_HOSTS = []
 ALLOWED_HOSTS = []