initial commit
This commit is contained in:
0
mandelstudio/__init__.py
Normal file
0
mandelstudio/__init__.py
Normal file
9
mandelstudio/main.py
Normal file
9
mandelstudio/main.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mandelstudio.settings.base")
|
||||
from django.core.management import execute_from_command_line
|
||||
|
||||
execute_from_command_line(sys.argv)
|
||||
149
mandelstudio/ocyan.json
Normal file
149
mandelstudio/ocyan.json
Normal file
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"ocyan_plugins": [
|
||||
"ocyan.plugin.contact_form",
|
||||
"ocyan.plugin.cookie_jar",
|
||||
"ocyan.plugin.demo_data",
|
||||
"ocyan.plugin.django",
|
||||
"ocyan.plugin.newsletter",
|
||||
"ocyan.plugin.oscar",
|
||||
"ocyan.plugin.oscar_basket",
|
||||
"ocyan.plugin.oscar_catalogue",
|
||||
"ocyan.plugin.oscar_catalogue_dashboard",
|
||||
"ocyan.plugin.oscar_checkout",
|
||||
"ocyan.plugin.oscar_elasticsearch",
|
||||
"ocyan.plugin.oscar_importexport",
|
||||
"ocyan.plugin.oscar_order",
|
||||
"ocyan.plugin.oscar_partner",
|
||||
"ocyan.plugin.oscar_shipping",
|
||||
"ocyan.plugin.oscar_sequential_order_numbers",
|
||||
"ocyan.plugin.payment_dummy",
|
||||
"ocyan.plugin.roadrunner_bs5",
|
||||
"ocyan.plugin.roadrunner_productchooser",
|
||||
"ocyan.plugin.sentry_logging",
|
||||
"ocyan.plugin.seo",
|
||||
"oxyan.themes",
|
||||
"ocyan.plugin.varnish",
|
||||
"ocyan.plugin.wagtail",
|
||||
"ocyan.plugin.wagtail_blog",
|
||||
"ocyan.plugin.wagtail_content_page",
|
||||
"ocyan.plugin.wagtail_oscar_integration",
|
||||
"ocyan.plugin.roadrunner_highlight_slider"
|
||||
],
|
||||
"settings": {
|
||||
"cookie_jar": {
|
||||
"analytical": true,
|
||||
"functional": true,
|
||||
"google_analytics": "",
|
||||
"google_tag_manager": "",
|
||||
"marketing": false,
|
||||
"social": false,
|
||||
"trusted": ""
|
||||
},
|
||||
"django": {
|
||||
"description": "",
|
||||
"domain": "mandelstudio.nl",
|
||||
"email_from": "webshop@mandelblog.com",
|
||||
"email_host": "vps.transip.email",
|
||||
"email_host_password": "CHANGE_ME",
|
||||
"email_host_user": "noreply@mandelblog.com",
|
||||
"email_port": "587",
|
||||
"email_to": "info@mandelstudio.nl",
|
||||
"email_use_tls": true,
|
||||
"language_code": "nl",
|
||||
"name": "mandelstudio",
|
||||
"username": "administrator"
|
||||
},
|
||||
"ocyan_dummy_payment_plugin": {
|
||||
"help_text": "Hit pay, to simulate payment."
|
||||
},
|
||||
"oscar": {
|
||||
"allow_anon_checkout": true,
|
||||
"cancelled_order_status": "cancelled",
|
||||
"complete_order_status": "complete",
|
||||
"dashboard_items_per_page": 21,
|
||||
"default_currency": "EUR",
|
||||
"delayed_payment_status": "delayed-payment",
|
||||
"enable_cost_prices": false,
|
||||
"enable_long_description": true,
|
||||
"enable_retail_prices": false,
|
||||
"enable_reviews": true,
|
||||
"enable_wishlist": true,
|
||||
"homepage": true,
|
||||
"initial_order_status": "new",
|
||||
"moderate_reviews": true,
|
||||
"order_pipeline": [],
|
||||
"paid_order_status": "paid",
|
||||
"product_image_geometry": "x230",
|
||||
"refund_order_status": "refund",
|
||||
"shop_base_url": "shop",
|
||||
"show_tax_everywhere": true,
|
||||
"tax_rates": [
|
||||
"high"
|
||||
],
|
||||
"use_price_incl_tax": true,
|
||||
"waiting_for_payment_order_status": "pending-payment"
|
||||
},
|
||||
"oscar_catalogue": {
|
||||
"minimum_quantity_attribute_code": "min_quantity",
|
||||
"slug_id_separator": "-"
|
||||
},
|
||||
"oscar_elasticsearch": {
|
||||
"facet_bucket_size": 10,
|
||||
"facets": [],
|
||||
"filter_available": false,
|
||||
"price_ranges": "25, 100, 500, 1000",
|
||||
"query_page_size": 100
|
||||
},
|
||||
"oscar_importexport": {
|
||||
"category_extra_fields": [],
|
||||
"category_separator": "|",
|
||||
"product_extra_fields": [],
|
||||
"stockrecord_extra_fields": []
|
||||
},
|
||||
"sentry logging": {
|
||||
"dsn_secret": "https://309733f5d10b9210a99e269db8b95520:112999435d89a49657fc417fd42dbbec@sentry.mandelblog.com/34"
|
||||
},
|
||||
"shipping": {
|
||||
"enable_charged_shipping": true,
|
||||
"enable_free_shipping": true,
|
||||
"enable_weightbased_shipping": true,
|
||||
"paid_shipping_first": true
|
||||
},
|
||||
"themes": {
|
||||
"theme": "default",
|
||||
"theme-switcher": false
|
||||
},
|
||||
"theme": {
|
||||
"category_navigation_depth": 1,
|
||||
"danger_color": "",
|
||||
"header": "header5",
|
||||
"info_color": "",
|
||||
"menu_depth": 2,
|
||||
"name": "template9",
|
||||
"primary_color": "#da0627",
|
||||
"secondary_color": "",
|
||||
"secondary_text_color": "",
|
||||
"success_color": "",
|
||||
"warning_color": "",
|
||||
"dark_color": "#333333"
|
||||
},
|
||||
"wagtail": {
|
||||
"wagtailuserbar_position": "bottom-right"
|
||||
},
|
||||
"wagtail content page": {
|
||||
"actionbuttons": false,
|
||||
"add_to_cart": false,
|
||||
"heading": true,
|
||||
"html": false,
|
||||
"image": true,
|
||||
"paragraph": true,
|
||||
"table": true
|
||||
},
|
||||
"wagtail_blog": {
|
||||
"items_per_page": 10
|
||||
},
|
||||
"wagtail_oscar": {
|
||||
"sitemap_include_child_products": false
|
||||
}
|
||||
}
|
||||
}
|
||||
0
mandelstudio/settings/__init__.py
Normal file
0
mandelstudio/settings/__init__.py
Normal file
36
mandelstudio/settings/base.py
Normal file
36
mandelstudio/settings/base.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""
|
||||
Django settings for de tilde project.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/2.0/topics/settings/
|
||||
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/2.0/ref/settings/
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from configtype.jsonconfig import setup_search_paths
|
||||
|
||||
_project_app_path = Path(__file__).parent.parent
|
||||
BASE_PATH = _project_app_path.parent
|
||||
BASE_DIR = str(BASE_PATH)
|
||||
|
||||
setup_search_paths("/etc/ocyan/", str(_project_app_path))
|
||||
|
||||
from ocyan.main.settings import * # pylint:disable=W0401,W0614
|
||||
|
||||
INSTALLED_APPS = ["mandelstudio"] + INSTALLED_APPS
|
||||
|
||||
STATIC_ROOT = str(BASE_PATH / "static")
|
||||
MEDIA_ROOT = str(BASE_PATH / "media")
|
||||
PRIVATE_MEDIA_ROOT = str(BASE_PATH / "private")
|
||||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": str(BASE_PATH / "db.sqlite3"),
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = "xyh998+wzhzueld8u6=)l@imh^!07&c6i_hjn7=8=jl$8%z_4t"
|
||||
0
mandelstudio/settings/env/__init__.py
vendored
Normal file
0
mandelstudio/settings/env/__init__.py
vendored
Normal file
21
mandelstudio/settings/env/dev.py
vendored
Normal file
21
mandelstudio/settings/env/dev.py
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
from ..base import * # pylint:disable=W0401,W0614
|
||||
|
||||
try:
|
||||
from mandelstudio.json import * # pylint:disable=W0401,W0614,E0611,E0401
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
DEBUG = False
|
||||
STATIC_ROOT = "/srv/www/mandelstudio/static/"
|
||||
MEDIA_ROOT = "/srv/www/mandelstudio/media/"
|
||||
PRIVATE_MEDIA_ROOT = "/srv/www/mandelstudio/private/"
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
# Force mail to console
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
|
||||
EDEN_URL = ["https://search.mandelblog.com:9200"]
|
||||
# pylint: disable=E0602
|
||||
WAGTAILSEARCH_BACKENDS["default"]["URLS"] = EDEN_URL
|
||||
OSCAR_ELASTICSEARCH_SERVER_URLS = EDEN_URL
|
||||
15
mandelstudio/settings/env/prd.py
vendored
Normal file
15
mandelstudio/settings/env/prd.py
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
from ..base import * # pylint:disable=W0401,W0614
|
||||
|
||||
try:
|
||||
from mandelstudio.json import * # pylint:disable=W0401,W0614,E0611,E0401
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
DEBUG = False
|
||||
STATIC_ROOT = "/srv/www/mandelstudio/static/"
|
||||
MEDIA_ROOT = "/srv/www/mandelstudio/media/"
|
||||
PRIVATE_MEDIA_ROOT = "/srv/www/mandelstudio/private/"
|
||||
ALLOWED_HOSTS.append("mandelstudio.%s" % salt_target) # pylint: disable=E0602
|
||||
# pylint: disable=E0602
|
||||
WAGTAILSEARCH_BACKENDS["default"]["URLS"] = ["https://search.mandelblog.com:9200"]
|
||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||
16
mandelstudio/settings/env/stg.py
vendored
Normal file
16
mandelstudio/settings/env/stg.py
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
from ..base import * # pylint:disable=W0401,W0614
|
||||
|
||||
try:
|
||||
from mandelstudio.json import * # pylint:disable=W0401,W0614,E0611,E0401
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
DEBUG = False
|
||||
STATIC_ROOT = "/srv/www/mandelstudio/static/"
|
||||
MEDIA_ROOT = "/srv/www/mandelstudio/media/"
|
||||
PRIVATE_MEDIA_ROOT = "/srv/www/mandelstudio/private/"
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
# Force mail to console
|
||||
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
||||
0
mandelstudio/static/mandelstudio/css/.gitkeep
Normal file
0
mandelstudio/static/mandelstudio/css/.gitkeep
Normal file
0
mandelstudio/static/mandelstudio/img/.gitignore
vendored
Normal file
0
mandelstudio/static/mandelstudio/img/.gitignore
vendored
Normal file
0
mandelstudio/static/mandelstudio/js/.gitignore
vendored
Normal file
0
mandelstudio/static/mandelstudio/js/.gitignore
vendored
Normal file
0
mandelstudio/templates/mandelstudio/.gitignore
vendored
Normal file
0
mandelstudio/templates/mandelstudio/.gitignore
vendored
Normal file
1
mandelstudio/wsgi.py
Normal file
1
mandelstudio/wsgi.py
Normal file
@@ -0,0 +1 @@
|
||||
from ocyan.main.wsgi import application # pylint: disable=W0611
|
||||
Reference in New Issue
Block a user