MANAGERS = ADMINS
-DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = path.join(PROJECT_DIR, 'lektury.sqlite') # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
+DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = 'wolnelektury' # Or path to database file if using sqlite3.
+DATABASE_USER = 'root' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.middleware.doc.XViewMiddleware',
+ # 'django.middleware.doc.XViewMiddleware',
'pagination.middleware.PaginationMiddleware',
]
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
- PROJECT_DIR + '/templates/'
+ PROJECT_DIR + '/templates/',
)
# CSS and JS files to compress
'all': {
'source_filenames': ('css/master.css', 'css/jquery.autocomplete.css', 'css/master.plain.css',),
'output_filename': 'css/all.min.css',
+ },
+ 'book': {
+ 'source_filenames': ('css/master.book.css',),
+ 'output_filename': 'css/book.min.css',
}
}
COMPRESS_JS = {
+ 'jquery': {
+ 'source_filenames': ('js/jquery.js',),
+ 'output_filename': 'js/jquery.min.js',
+ },
'all': {
- 'source_filenames': ('js/jquery.js', 'js/jquery.autocolumn.js', 'js/jquery.autocomplete.js',
- 'js/jquery.form.js', 'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js',),
+ 'source_filenames': ('js/jquery.autocomplete.js', 'js/jquery.form.js',
+ 'js/jquery.jqmodal.js', 'js/jquery.labelify.js', 'js/catalogue.js',),
'output_filename': 'js/all.min.js',
+ },
+ 'book': {
+ 'source_filenames': ('js/jquery.eventdelegation.js', 'js/jquery.scrollto.js', 'js/jquery.highlightfade.js', 'js/book.js',),
+ 'output_filename': 'js/book.min.js',
}
}
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
+ 'django.contrib.admindocs',
'newtagging',
'pagination',
'chunks',