Browse Source

Priprava autocomplete tagu a pod., vzhled adminu

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
8e1e30e672
  1. 25
      mamweb/settings_common.py
  2. 3
      requirements.txt
  3. 4
      seminar/autocomplete_light_registry.py

25
mamweb/settings_common.py

@ -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',
)

3
requirements.txt

@ -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

4
seminar/autocomplete_light_registry.py

@ -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):

Loading…
Cancel
Save