Browse Source

Priprava autocomplete tagu a pod., vzhled adminu

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

19
mamweb/settings_common.py

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

3
requirements.txt

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

4
seminar/autocomplete_light_registry.py

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

Loading…
Cancel
Save