| 9 | | import os |
|---|
| 10 | | |
|---|
| 11 | | # Whether to include the .py files, rather than just .pyc's. Doesn't do anything yet. |
|---|
| 12 | | INCLUDE_SOURCE = True |
|---|
| 13 | | |
|---|
| 14 | | # Determines which apps are bundled with the distribution. |
|---|
| 15 | | INSTALLED_APPS = ('auth', 'categories', 'comments', 'core', 'media', 'news', 'polls', 'registration', 'search', 'sms', 'staff') |
|---|
| 16 | | |
|---|
| 17 | | # First, lump together all the generic, core packages that need to be included. |
|---|
| 18 | | packages = [ |
|---|
| 19 | | 'django', |
|---|
| 20 | | 'django.core', |
|---|
| 21 | | 'django.templatetags', |
|---|
| 22 | | 'django.utils', |
|---|
| 23 | | 'django.views', |
|---|
| 24 | | ] |
|---|
| 25 | | for a in INSTALLED_APPS: |
|---|
| 26 | | for dirname in ('parts', 'templatetags', 'views'): |
|---|
| 27 | | if os.path.exists('django/%s/%s/' % (dirname, a)): |
|---|
| 28 | | packages.append('django.%s.%s' % (dirname, a)) |
|---|
| 29 | | |
|---|
| 30 | | # Next, add individual modules. |
|---|
| 31 | | py_modules = [ |
|---|
| 32 | | 'django.cron.daily_cleanup', |
|---|
| 33 | | 'django.cron.search_indexer', |
|---|
| 34 | | ] |
|---|
| 35 | | py_modules += ['django.models.%s' % a for a in INSTALLED_APPS] |
|---|