Ejemplo n.º 1
0
    },
]

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.admin',
    'django.contrib.contenttypes',
    'django.contrib.messages',
    'django.contrib.sessions',
    'django.contrib.sites',
    'mptt',
    'haystack',
    'widget_tweaks',
    'tests',
] + get_machina_apps([
    'tests._testsite.apps.forum_conversation',
])

SITE_ID = 1

ROOT_URLCONF = 'tests._testsite.urls'

if DJANGO_VERSION >= (1, 10):
    MIDDLEWARE = (
        'django.middleware.common.CommonMiddleware',
        'django.contrib.sessions.middleware.SessionMiddleware',
        'django.middleware.csrf.CsrfViewMiddleware',
        'django.contrib.auth.middleware.AuthenticationMiddleware',
        'django.contrib.messages.middleware.MessageMiddleware',
        'django.middleware.gzip.GZipMiddleware',
        'django.middleware.clickjacking.XFrameOptionsMiddleware',
Ejemplo n.º 2
0
    'djangocms_column',
    'djangocms_link',
    'cmsplugin_filer_file',
    'cmsplugin_filer_folder',
    'cmsplugin_filer_image',
    'cmsplugin_filer_utils',
    'djangocms_style',
    'djangocms_snippet',
    'djangocms_googlemap',
    'djangocms_video',
    'sopds_site',
    # Machina related apps:
    'mptt',
    'haystack',
    'widget_tweaks',
] + get_machina_apps()

LANGUAGES = (
    ## Customize this
    ('ru', gettext('ru')), )

# DJANGO-MACHINE CONFIG
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
    },
    'machina_attachments': {
        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
        'LOCATION': '/tmp',
    },
}
Ejemplo n.º 3
0
    'django.contrib.sites',
    'django.contrib.sitemaps',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',

    # Third party apps
    'compressor',
    'mptt',
    'haystack',
    'widget_tweaks',
    'django_markdown',

    # Local apps
    'vanilla_project',
] + get_machina_apps()

TEST_RUNNER = 'django.test.runner.DiscoverRunner'


# Django compressor setings
# --------------------------------------
COMPRESS_ENABLED = True

COMPRESS_PRECOMPILERS = (
    ('text/less', 'lessc {infile} {outfile}'),
)

COMPRESS_OUTPUT_DIR = 'machina'

Ejemplo n.º 4
0
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'Source',
    'AMGallery',
    'social.apps.django_app.default',

    # Machina related apps:
    'mptt',
    'haystack',
    'widget_tweaks',
    'pagedown',
    'markdown',
)  + tuple(get_machina_apps())

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
    # Machina
    'machina.apps.forum_permission.middleware.ForumPermissionMiddleware',
)

ROOT_URLCONF = 'mysite.urls'
Ejemplo n.º 5
0
    MACHINA_MAIN_TEMPLATE_DIR,
)

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.admin',
    'django.contrib.contenttypes',
    'django.contrib.messages',
    'django.contrib.sessions',
    'django.contrib.sites',
    'mptt',
    'haystack',
    'widget_tweaks',
    'django_markdown',
    'tests',
] + get_machina_apps(['tests._testsite.apps.forum_conversation', ])

SITE_ID = 1

ROOT_URLCONF = 'tests._testsite.urls'

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.gzip.GZipMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    # Machina
    'machina.apps.forum_permission.middleware.ForumPermissionMiddleware',
Ejemplo n.º 6
0
    'django.contrib.sitemaps',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',

    # Third party apps
    'compressor',
    'mptt',
    'haystack',
    'widget_tweaks',
    'ckeditor',

    # Local apps
    'demo_project',
] + get_machina_apps([
    'demo_project.apps.forum_conversation',
    'demo_project.apps.forum_member',
])

TEST_RUNNER = 'django.test.runner.DiscoverRunner'

MIGRATION_MODULES = {
    'forum_conversation': 'machina.apps.forum_conversation.migrations',
    'forum_member': 'machina.apps.forum_member.migrations',
}

LOGIN_URL = reverse_lazy('login')


# Django compressor setings
# --------------------------------------
COMPRESS_ENABLED = True
Ejemplo n.º 7
0
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.sitemaps',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',

    # Third party apps
    'mptt',
    'haystack',
    'widget_tweaks',
    'ckeditor',
] + get_machina_apps([
    'demo.apps.forum_conversation',
    'demo.apps.forum_member',
])

# MIGRATION CONFIGURATION
# ------------------------------------------------------------------------------

MIGRATION_MODULES = {
    'forum_conversation': 'machina.apps.forum_conversation.migrations',
    'forum_member': 'machina.apps.forum_member.migrations',
}

# MIDDLEWARE CONFIGURATION
# ------------------------------------------------------------------------------

MIDDLEWARE = (
    'django.middleware.common.CommonMiddleware',
Ejemplo n.º 8
0
    'haystack',
    'whoosh',
    'widget_tweaks',
    'pagedown',
    'pytz',
    'community',
    'contact.apps.ContactConfig',
    'metadata.apps.MetadataConfig',
    'headers.apps.HeadersConfig',
    'myip.apps.MyIPConfig',
    'treenav',
    'pubdocs.apps.PubdocsConfig',
    'tagging',
    'blog.apps.BlogConfig',
] + get_machina_apps([
    'community.apps.forum_conversation',
    'community.apps.forum_member',
])

CACHE_MIDDLEWARE_KEY_PREFIX = 'mainsite'
CACHE_MIDDLEWARE_SECONDS = 120

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django_hosts.middleware.HostsRequestMiddleware',
    'django.middleware.cache.UpdateCacheMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.cache.FetchFromCacheMiddleware',
    #    'django.middleware.http.ConditionalGetMiddleware',
    #   'headers.middleware.VaryAcceptEncodingMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
Ejemplo n.º 9
0
    'haystack',
    'whoosh',
    'widget_tweaks',
    'pagedown',
    'pytz',
    'community',
    'contact.apps.ContactConfig',
    'metadata.apps.MetadataConfig',
    'headers.apps.HeadersConfig',
    'myip.apps.MyIPConfig',
    'treenav',
    'pubdocs.apps.PubdocsConfig',
    'tagging',
    'blog.apps.BlogConfig',
] + get_machina_apps([
    'community.apps.forum_conversation',
    'community.apps.forum_member',
])

CACHE_MIDDLEWARE_KEY_PREFIX='mainsite'
CACHE_MIDDLEWARE_SECONDS=120

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django_hosts.middleware.HostsRequestMiddleware',
    'django.middleware.cache.UpdateCacheMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.cache.FetchFromCacheMiddleware',
#    'django.middleware.http.ConditionalGetMiddleware',
#   'headers.middleware.VaryAcceptEncodingMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
Ejemplo n.º 10
0
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
    'django.contrib.flatpages',
    'mptt',
    'widget_tweaks',
    'indexapp',
    'mapa',
    'contact',
    'faq',
    'challenge',
] + get_core_apps() + get_machina_apps()

SITE_ID = 1

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'oscar.apps.basket.middleware.BasketMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
    'machina.apps.forum_permission.middleware.ForumPermissionMiddleware',
    'whitenoise.middleware.WhiteNoiseMiddleware',
Ejemplo n.º 11
0
    "django.contrib.sessions",
    "django.contrib.sites",
    "django.contrib.sitemaps",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "django.contrib.admin",
    # Third party apps
    "corsheaders",
    "django_markdown",
    "haystack",
    "mptt",
    "rest_framework",
    "widget_tweaks",
    # Local apps
    "project",
] + get_machina_apps(["project.apps.forum"])

TEST_RUNNER = "django.test.runner.DiscoverRunner"

MIGRATION_MODULES = {"forum": "machina.apps.forum.migrations"}


# Haystack settings
# --------------------------------------
HAYSTACK_CONNECTIONS = {
    "default": {"ENGINE": "haystack.backends.whoosh_backend.WhooshEngine", "PATH": str(PROJECT_PATH / "whoosh_index")}
}


# REST Framework settings
# --------------------------------------
Ejemplo n.º 12
0
    'django.contrib.sitemaps',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',

    # Third party apps
    'compressor',
    'mptt',
    'haystack',
    'widget_tweaks',
    'ckeditor',

    # Local apps
    'demo_project',
] + get_machina_apps([
    'demo_project.apps.forum_conversation',
])

TEST_RUNNER = 'django.test.runner.DiscoverRunner'

MIGRATION_MODULES = {
    'forum_conversation': 'machina.apps.forum_conversation.migrations',
}

# Django compressor setings
# --------------------------------------
COMPRESS_ENABLED = True

COMPRESS_PRECOMPILERS = (('text/less', 'lessc {infile} {outfile}'), )

COMPRESS_OUTPUT_DIR = 'machina'
Ejemplo n.º 13
0
    'customer2',
    'game',
    'team',
    'betting',
    'Iuno.member',
    'django_extensions',
    'mptt',
    'haystack',
    'widget_tweaks',
    'paypal',
    'ecpay',
    'compressor',
    'widget_tweaks',
    'ckeditor',
    'ckeditor_uploader',
] + get_machina_apps(['apps.forum_conversation']) + get_core_apps([
    'checkout',
])

CKEDITOR_JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'
CKEDITOR_IMAGE_BACKEND = "pillow"

CKEDITOR_UPLOAD_PATH = "uploads/"

CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'full',
        'height': 500,
        'width': 1000,
    },
}