Priprava autocomplete tagu a pod., vzhled adminu

This commit is contained in:
Tomas Gavenciak 2015-05-21 22:17:46 +02:00
parent 74bf1afafe
commit 8e1e30e672
3 changed files with 22 additions and 10 deletions

View file

@ -49,9 +49,11 @@ AUTHENTICATION_BACKENDS = (
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader'
('django.template.loaders.cached.Loader', (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader'
)),
)
MIDDLEWARE_CLASSES = (
@ -95,17 +97,22 @@ INSTALLED_APPS = (
'solo',
'ckeditor',
'taggit',
'autocomplete_light',
# MaMweb
'mamweb',
'seminar',
# Prvni:
'autocomplete_light',
'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
# Admin upravy:
# 'material',
# 'material.admin',
# 'admin_tools',
# 'admin_tools.theming',
# 'admin_tools.menu',
# 'admin_tools.dashboard',
'flat',
'django.contrib.admin',
)

View file

@ -17,9 +17,10 @@ django-sekizai==0.8.1
django-countries==3.2
django-solo==1.1.0
django-ckeditor==4.4.7
django-admin-tools==0.5.2
django-flat-theme==0.9.3
django-taggit==0.14.0
django-autocomplete-light==2.1.1
# django-admin-tools==0.5.2
# debug tools/extensions

View file

@ -3,6 +3,10 @@
import autocomplete_light
from models import Skola, Resitel, Problem
from taggit.models import Tag
autocomplete_light.register(Tag)
class SkolaAutocomplete(autocomplete_light.AutocompleteModelBase):