X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=djsite%2Fsettings.py;h=4c0385e62b73941ecf430c1f0af922cef387e3b8;hb=5c563ff1701456a2ca7108a301e4e48457475daa;hp=d81d8bc83b706b537a3167b21f03008a149760a1;hpb=c308c8ce32eaf212172d9b5df82fbe655a08c37d;p=djsite.git diff --git a/djsite/settings.py b/djsite/settings.py index d81d8bc..4c0385e 100644 --- a/djsite/settings.py +++ b/djsite/settings.py @@ -25,8 +25,7 @@ SECRET_KEY = 's665xl1i*aa@k@-!3xnga&qf47^hl*g9z7z7r51e_3*5vqi7=m' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] - +ALLOWED_HOSTS = ['quotes.fperrin.net'] # Application definition @@ -37,6 +36,8 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'tagging', + 'tinymce', 'quotes', ) @@ -96,8 +97,17 @@ USE_L10N = True USE_TZ = True +USE_X_FORWARDED_HOST = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.8/howto/static-files/ STATIC_URL = '/static/' + +TINYMCE_DEFAULT_CONFIG = { +# 'theme_advanced_buttons1' : ['bold', 'underline', 'italic', 'separator', 'insertdate', 'inserttime'], + 'theme_advanced_buttons1' : 'undo,redo,cut,copy,paste,|,bold,italic,underline,strikethrough,fontsizeselect,removeformat,|,bullist,numlist,|,link,unlink', + 'theme_advanced_buttons2' : 'tablecontrols,table,row_props,cell_props,delete_col,delete_row,col_after,col_before,row_after,row_before,split_cells,merge_cells', + 'theme_advanced_buttons3' : "", + 'plugins': 'table', +}