/[adm]/puppet/modules/transifex/templates/50-project.conf
ViewVC logotype

Annotation of /puppet/modules/transifex/templates/50-project.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 628 - (hide annotations) (download)
Wed Dec 15 12:56:34 2010 UTC (10 years, 9 months ago) by misc
File size: 2521 byte(s)
- add templating extraction logic to transifex
1 misc 627 # List of callables that know how to import templates from various sources.
2     TEMPLATE_LOADERS = (
3     'django.template.loaders.filesystem.load_template_source',
4     'django.template.loaders.app_directories.load_template_source',
5     # 'django.template.loaders.eggs.load_template_source',
6     )
7    
8     TEMPLATE_CONTEXT_PROCESSORS = [
9     "django.core.context_processors.auth",
10     "django.core.context_processors.debug",
11     "django.core.context_processors.i18n",
12     "django.core.context_processors.media",
13     "django.core.context_processors.request",
14     "notification.context_processors.notification",
15     "staticfiles.context_processors.static_url",
16     ]
17    
18     TEMPLATE_CONTEXT_PROCESSORS += (
19     'userprofile.context_processors.css_classes',
20     'txcommon.context_processors.site_section',
21     'txcommon.context_processors.bidi',
22     )
23    
24     MIDDLEWARE_CLASSES = [
25     # Enable GZIP compression
26     'django.middleware.gzip.GZipMiddleware',
27     'django.middleware.common.CommonMiddleware',
28     # Enable protection against Cross Site Request Forgeries
29     # FIXME: Enable CSRF!
30     'django.contrib.sessions.middleware.SessionMiddleware',
31     'django.contrib.auth.middleware.AuthenticationMiddleware',
32     'django.middleware.locale.LocaleMiddleware',
33     'django.middleware.doc.XViewMiddleware',
34     'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
35     'django_sorting.middleware.SortingMiddleware',
36     'pagination.middleware.PaginationMiddleware',
37     ]
38    
39     ROOT_URLCONF = 'urls'
40    
41     TEMPLATE_DIRS = [
42 misc 628 '<%= templates_dir %>',
43 misc 627 os.path.join(TX_ROOT, 'templates'),
44     ]
45    
46     INSTALLED_APPS = [
47     'django.contrib.admin',
48     'django.contrib.auth',
49     'django.contrib.comments',
50     'django.contrib.contenttypes',
51     'django.contrib.flatpages',
52     'django.contrib.markup',
53     'django.contrib.sessions',
54     'django.contrib.sites',
55     'django.contrib.admindocs',
56     'notification',
57     'django_filters',
58     'django_sorting',
59     'south',
60     'tagging',
61     'pagination',
62     'piston',
63     'contact_form',
64     'ajax_select',
65     'threadedcomments',
66     'staticfiles',
67     'authority',
68     # Transifex specific apps:
69     'transifex.txcommon',
70     # It's coming here due http://trac.transifex.org/ticket/596
71     'userprofile',
72     'transifex.languages',
73     'transifex.projects',
74     'transifex.releases',
75     'transifex.actionlog',
76     'transifex.txpermissions',
77     'transifex.teams',
78     'transifex.resources',
79     'transifex.storage',
80     # Must come in the end
81     'django_addons',
82     ]
83    
84     COMMENTS_APP = 'threadedcomments'

  ViewVC Help
Powered by ViewVC 1.1.28