app_manage.main( [ 'shop_example', 'shop', 'shop_categories', 'mptt', 'treeadmin', 'tinymce', 'better_test', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.staticfiles' ], DEBUG=True, SITE_ID=1, DATABASES=app_manage.DatabaseConfig( default='sqlite:///shopexampledb.sqlite' ), ROOT_URLCONF='shop_example.urls', SHOP_PRODUCT_MODEL = 'shop_example.models.product.Product', SHOP_ADDRESS_MODEL = 'shop_example.models.address.Address', SHOP_CATEGORIES_CATEGORY_MODEL = 'shop_example.models.category.Category', SHOP_PAYMENT_BACKENDS = [ 'shop.payment.backends.pay_on_delivery.PayOnDeliveryBackend' ], SHOP_SHIPPING_BACKENDS = [ 'shop.shipping.backends.flat_rate.FlatRateShipping' ], STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=app_manage.TempDir() )
from django.conf.urls import patterns import app_manage urlpatterns = patterns('') if __name__ == '__main__': app_manage.main( ['better_test'], DATABASES=app_manage.DatabaseConfig( default='sqlite://localhost/:memory:' ), ROOT_URLCONF='manage', )
app_manage.main( ['cms', 'menus'], app_manage.Argument(config=app_manage.Config( arg='--auth-user-model', env='AUTH_USER_MODEL', default=None, ), callback=install_auth_user_model), PROJECT_PATH=PROJECT_PATH, CACHES={ 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', } }, SESSION_ENGINE=SESSION_ENGINE, DEBUG=True, DATABASE_SUPPORTS_TRANSACTIONS=True, DATABASES=app_manage.DatabaseConfig( env='DATABASE_URL', arg='--db-url', default='sqlite://localhost/local.sqlite'), USE_TZ=app_manage.Config( env='USE_TZ', arg=app_manage.Flag('--use-tz'), default=False, ), TIME_ZONE='UTC', SITE_ID=1, USE_I18N=True, MEDIA_ROOT=app_manage.TempDir(), STATIC_ROOT=app_manage.TempDir(), CMS_MEDIA_ROOT=app_manage.TempDir(), CMS_MEDIA_URL='/cms-media/', MEDIA_URL='/media/', STATIC_URL='/static/', ADMIN_MEDIA_PREFIX='/static/admin/', EMAIL_BACKEND='django.core.mail.backends.locmem.EmailBackend', PLUGIN_APPS=PLUGIN_APPS, INSTALLED_APPS=INSTALLED_APPS, DEBUG_TOOLBAR_PATCH_SETTINGS=False, INTERNAL_IPS=['127.0.0.1'], AUTHENTICATION_BACKENDS=( 'django.contrib.auth.backends.ModelBackend', 'cms.test_utils.project.objectpermissionsapp.backends.ObjectPermissionBackend', ), LANGUAGE_CODE="en", LANGUAGES=( ('en', gettext('English')), ('fr', gettext('French')), ('de', gettext('German')), ('pt-br', gettext('Brazilian Portuguese')), ('nl', gettext("Dutch")), ('es-mx', u'Español'), ), CMS_LANGUAGES={ 1: [ { 'code': 'en', 'name': gettext('English'), 'fallbacks': ['fr', 'de'], 'public': True, }, { 'code': 'de', 'name': gettext('German'), 'fallbacks': ['fr', 'en'], 'public': True, }, { 'code': 'fr', 'name': gettext('French'), 'public': True, }, { 'code': 'pt-br', 'name': gettext('Brazilian Portuguese'), 'public': False, }, { 'code': 'es-mx', 'name': u'Español', 'public': True, }, ], 2: [ { 'code': 'de', 'name': gettext('German'), 'fallbacks': ['fr'], 'public': True, }, { 'code': 'fr', 'name': gettext('French'), 'public': True, }, ], 3: [ { 'code': 'nl', 'name': gettext('Dutch'), 'fallbacks': ['de'], 'public': True, }, { 'code': 'de', 'name': gettext('German'), 'fallbacks': ['nl'], 'public': False, }, ], 'default': { 'hide_untranslated': False, }, }, CMS_TEMPLATES=( ('col_two.html', gettext('two columns')), ('col_three.html', gettext('three columns')), ('nav_playground.html', gettext('navigation examples')), ('simple.html', 'simple'), ('static.html', 'static placeholders'), ), CMS_PLACEHOLDER_CONF={ 'col_sidebar': { 'plugins': ('FilePlugin', 'LinkPlugin', 'PicturePlugin', 'TextPlugin', 'SnippetPlugin'), 'name': gettext("sidebar column") }, 'col_left': { 'plugins': ('FilePlugin', 'LinkPlugin', 'PicturePlugin', 'TextPlugin', 'SnippetPlugin', 'GoogleMapPlugin', 'MultiColumnPlugin', 'StylePlugin'), 'name': gettext("left column"), 'plugin_modules': { 'LinkPlugin': 'Different Grouper' }, 'plugin_labels': { 'LinkPlugin': gettext('Add a link') }, }, 'col_right': { 'plugins': ('FilePlugin', 'LinkPlugin', 'PicturePlugin', 'TextPlugin', 'SnippetPlugin', 'GoogleMapPlugin', 'MultiColumnPlugin', 'StylePlugin'), 'name': gettext("right column") }, 'extra_context': { "plugins": ('TextPlugin', ), "extra_context": { "width": 250 }, "name": "extra context" }, }, CMS_PERMISSION=True, CMS_PUBLIC_FOR='all', CMS_CACHE_DURATIONS={ 'menus': 60, 'content': 60, 'permissions': 60, }, CMS_APPHOOKS=[], CMS_PLUGIN_PROCESSORS=(), CMS_PLUGIN_CONTEXT_PROCESSORS=(), CMS_SITE_CHOICES_CACHE_KEY='CMS:site_choices', CMS_PAGE_CHOICES_CACHE_KEY='CMS:page_choices', CMS_NAVIGATION_EXTENDERS=[ ('cms.test_utils.project.sampleapp.menu_extender.get_nodes', 'SampleApp Menu'), ], ROOT_URLCONF='cms.test_utils.project.urls', PASSWORD_HASHERS=('django.contrib.auth.hashers.MD5PasswordHasher', ), ALLOWED_HOSTS=['localhost'], TEST_RUNNER='django.test.runner.DiscoverRunner', MIGRATION_MODULES=MIGRATION_MODULES, **dynamic_configs)
app_manage.main( ['cms', 'menus'], app_manage.Argument( config=app_manage.Config( arg='--auth-user-model', env='AUTH_USER_MODEL', default=None, ), callback=install_auth_user_model ), PROJECT_PATH=PROJECT_PATH, CACHES={ 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', } }, SESSION_ENGINE=SESSION_ENGINE, CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True, DEBUG=True, DATABASE_SUPPORTS_TRANSACTIONS=True, DATABASES=app_manage.DatabaseConfig( env='DATABASE_URL', arg='--db-url', default='sqlite://localhost/local.sqlite' ), USE_TZ=app_manage.Config( env='USE_TZ', arg=app_manage.Flag('--use-tz'), default=False, ), TIME_ZONE='UTC', SITE_ID=1, USE_I18N=True, MEDIA_ROOT=app_manage.TempDir(), STATIC_ROOT=app_manage.TempDir(), CMS_MEDIA_ROOT=app_manage.TempDir(), CMS_MEDIA_URL='/cms-media/', MEDIA_URL='/media/', STATIC_URL='/static/', ADMIN_MEDIA_PREFIX='/static/admin/', EMAIL_BACKEND='django.core.mail.backends.locmem.EmailBackend', MIDDLEWARE_CLASSES=[ 'django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.http.ConditionalGetMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', ], INSTALLED_APPS=INSTALLED_APPS, DEBUG_TOOLBAR_PATCH_SETTINGS = False, INTERNAL_IPS = ['127.0.0.1'], AUTHENTICATION_BACKENDS=( 'django.contrib.auth.backends.ModelBackend', 'cms.test_utils.project.objectpermissionsapp.backends.ObjectPermissionBackend', ), LANGUAGE_CODE="en", LANGUAGES=( ('en', gettext('English')), ('fr', gettext('French')), ('de', gettext('German')), ('pt-br', gettext('Brazilian Portuguese')), ('nl', gettext("Dutch")), ('es-mx', u'Español'), ), CMS_LANGUAGES={ 1: [ { 'code': 'en', 'name': gettext('English'), 'fallbacks': ['fr', 'de'], 'public': True, }, { 'code': 'de', 'name': gettext('German'), 'fallbacks': ['fr', 'en'], 'public': True, }, { 'code': 'fr', 'name': gettext('French'), 'public': True, }, { 'code': 'pt-br', 'name': gettext('Brazilian Portuguese'), 'public': False, }, { 'code': 'es-mx', 'name': u'Español', 'public': True, }, ], 2: [ { 'code': 'de', 'name': gettext('German'), 'fallbacks': ['fr'], 'public': True, }, { 'code': 'fr', 'name': gettext('French'), 'public': True, }, ], 3: [ { 'code': 'nl', 'name': gettext('Dutch'), 'fallbacks': ['de'], 'public': True, }, { 'code': 'de', 'name': gettext('German'), 'fallbacks': ['nl'], 'public': False, }, ], 'default': { 'hide_untranslated': False, }, }, CMS_TEMPLATES=( ('col_two.html', gettext('two columns')), ('col_three.html', gettext('three columns')), ('nav_playground.html', gettext('navigation examples')), ('simple.html', 'simple'), ('static.html', 'static placeholders'), ), CMS_PLACEHOLDER_CONF={ 'col_sidebar': { 'plugins': ('FilePlugin', 'FlashPlugin', 'LinkPlugin', 'PicturePlugin', 'TextPlugin', 'SnippetPlugin'), 'name': gettext("sidebar column") }, 'col_left': { 'plugins': ('FilePlugin', 'FlashPlugin', 'LinkPlugin', 'PicturePlugin', 'TextPlugin', 'SnippetPlugin', 'GoogleMapPlugin', 'MultiColumnPlugin', 'StylePlugin'), 'name': gettext("left column"), 'plugin_modules': { 'LinkPlugin': 'Different Grouper' }, 'plugin_labels': { 'LinkPlugin': gettext('Add a link') }, }, 'col_right': { 'plugins': ('FilePlugin', 'FlashPlugin', 'LinkPlugin', 'PicturePlugin', 'TextPlugin', 'SnippetPlugin', 'GoogleMapPlugin', 'MultiColumnPlugin', 'StylePlugin'), 'name': gettext("right column") }, 'extra_context': { "plugins": ('TextPlugin',), "extra_context": {"width": 250}, "name": "extra context" }, }, CMS_PERMISSION=True, CMS_PUBLIC_FOR='all', CMS_CACHE_DURATIONS={ 'menus': 0, 'content': 0, 'permissions': 0, }, CMS_APPHOOKS=[], CMS_PLUGIN_PROCESSORS=(), CMS_PLUGIN_CONTEXT_PROCESSORS=(), CMS_SITE_CHOICES_CACHE_KEY='CMS:site_choices', CMS_PAGE_CHOICES_CACHE_KEY='CMS:page_choices', CMS_NAVIGATION_EXTENDERS=[ ('cms.test_utils.project.sampleapp.menu_extender.get_nodes', 'SampleApp Menu'), ], ROOT_URLCONF='cms.test_utils.project.urls', PASSWORD_HASHERS=( 'django.contrib.auth.hashers.MD5PasswordHasher', ), ALLOWED_HOSTS=['localhost'], TEST_RUNNER='django.test.runner.DiscoverRunner', **dynamic_configs )
try: from django.conf.urls import patterns except ImportError: patterns = lambda x: [] import app_manage urlpatterns = patterns('') if __name__ == '__main__': app_manage.main( ['better_test'], DATABASES=app_manage.DatabaseConfig( default='sqlite://localhost/:memory:'), ROOT_URLCONF='manage', )
from django.conf.urls import patterns import app_manage urlpatterns = patterns('') if __name__ == '__main__': app_manage.main( ['test_app'], DATABASES=app_manage.DatabaseConfig( env='DATABASE_URL', arg='--db-url', default='sqlite://localhost/local.sqlite'), ROOT_URLCONF='manage', STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=app_manage.TempDir(), )
'django.core.context_processors.request', 'django.core.context_processors.media', 'django.core.context_processors.static', 'cms.context_processors.cms_settings', 'sekizai.context_processors.sekizai', ) if django.VERSION < (1, 7): INSTALLED_APPS += [ 'south', ] app_manage.main( [ 'aldryn_newsblog', ], INSTALLED_APPS=INSTALLED_APPS, DATABASES=app_manage.DatabaseConfig( env='DATABASE_URL', arg='--db-url', default='sqlite://localhost/local.sqlite'), SOUTH_MIGRATION_MODULES={ 'aldryn_newsblog': 'aldryn_newsblog.south_migrations', }, TEMPLATE_CONTEXT_PROCESSORS=TEMPLATE_CONTEXT_PROCESSORS, ROOT_URLCONF='manage', SITE_ID=1, STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=app_manage.TempDir(), )
#!/usr/bin/env python import app_manage if __name__ == '__main__': app_manage.main( [ 'shop_example', 'shop', 'shop_categories', 'mptt', 'treeadmin', 'tinymce', 'better_test', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.staticfiles' ], DEBUG=True, SITE_ID=1, DATABASES=app_manage.DatabaseConfig( default='sqlite:///shopexampledb.sqlite'), ROOT_URLCONF='shop_example.urls', SHOP_PRODUCT_MODEL='shop_example.models.product.Product', SHOP_ADDRESS_MODEL='shop_example.models.address.Address', SHOP_CATEGORIES_CATEGORY_MODEL='shop_example.models.category.Category', SHOP_PAYMENT_BACKENDS=[ 'shop.payment.backends.pay_on_delivery.PayOnDeliveryBackend' ], SHOP_SHIPPING_BACKENDS=[ 'shop.shipping.backends.flat_rate.FlatRateShipping' ], STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=app_manage.TempDir())
from django.conf.urls import patterns import app_manage urlpatterns = patterns('') if __name__ == '__main__': app_manage.main( ['test_app'], DATABASES=app_manage.DatabaseConfig( env='DATABASE_URL', arg='--db-url', default='sqlite://localhost/local.sqlite' ), ROOT_URLCONF='manage', STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=app_manage.TempDir(), )
'django.core.context_processors.static', 'cms.context_processors.cms_settings', 'sekizai.context_processors.sekizai', ) if django.VERSION < (1, 7): INSTALLED_APPS += [ 'south', ] app_manage.main( ['aldryn_newsblog', ], INSTALLED_APPS=INSTALLED_APPS, DATABASES=app_manage.DatabaseConfig( env='DATABASE_URL', arg='--db-url', default='sqlite://localhost/local.sqlite' ), SOUTH_MIGRATION_MODULES={ 'aldryn_newsblog': 'aldryn_newsblog.south_migrations', }, MIGRATION_MODULES = { 'filer': 'filer.migrations_django', }, TEMPLATE_CONTEXT_PROCESSORS=TEMPLATE_CONTEXT_PROCESSORS, ROOT_URLCONF='manage', SITE_ID=1, STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=app_manage.TempDir(), )
] MIDDLEWARE_CLASSES=list(DEFAULT_SETTINGS['MIDDLEWARE_CLASSES'])+['livereload.middleware.LiveReloadScript'] if __name__ == '__main__': app_manage.main( [ 'better_test', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.sites', 'django.contrib.staticfiles' ], DEBUG=True, SITE_ID=1, DATABASES=app_manage.DatabaseConfig( default='sqlite:///baseapp.sqlite' ), STATICFILES_DIRS=STATICFILES_DIRS, TEMPLATE_DIRS=TEMPLATE_DIRS, MIDDLEWARE_CLASSES=MIDDLEWARE_CLASSES, ROOT_URLCONF='app.urls', STATIC_ROOT=app_manage.TempDir(), MEDIA_ROOT=os.path.join(os.path.dirname(upath(__file__)), "../media"), MEDIA_URL = "/media/", THUMBNAIL_DEBUG = True )