|
|
|
@ -48,6 +48,7 @@ INSTALLED_APPS = [ |
|
|
|
'referral', |
|
|
|
'referral', |
|
|
|
'products', |
|
|
|
'products', |
|
|
|
'cart', |
|
|
|
'cart', |
|
|
|
|
|
|
|
'blog_ext', |
|
|
|
'accounts_ext', |
|
|
|
'accounts_ext', |
|
|
|
'index', |
|
|
|
'index', |
|
|
|
'contact_us', |
|
|
|
'contact_us', |
|
|
|
@ -60,6 +61,8 @@ INSTALLED_APPS = [ |
|
|
|
'snowpenguin.django.recaptcha2', |
|
|
|
'snowpenguin.django.recaptcha2', |
|
|
|
'crispy_forms', |
|
|
|
'crispy_forms', |
|
|
|
'mptt', |
|
|
|
'mptt', |
|
|
|
|
|
|
|
'pinax.blog', |
|
|
|
|
|
|
|
'pinax.images', |
|
|
|
'import_export', |
|
|
|
'import_export', |
|
|
|
'django_feedparser', |
|
|
|
'django_feedparser', |
|
|
|
'jet.dashboard', |
|
|
|
'jet.dashboard', |
|
|
|
@ -76,7 +79,6 @@ INSTALLED_APPS = [ |
|
|
|
'django.contrib.flatpages', |
|
|
|
'django.contrib.flatpages', |
|
|
|
'django.contrib.admin', |
|
|
|
'django.contrib.admin', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
MIDDLEWARE = [ |
|
|
|
MIDDLEWARE = [ |
|
|
|
@ -88,6 +90,7 @@ MIDDLEWARE = [ |
|
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
|
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', |
|
|
|
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', |
|
|
|
|
|
|
|
'cart.middleware.CartMonkeyPatchingMiddleware', |
|
|
|
'referral.middleware.ReferralMiddleware', |
|
|
|
'referral.middleware.ReferralMiddleware', |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
@ -107,7 +110,7 @@ TEMPLATES = [ |
|
|
|
'django.template.context_processors.request', |
|
|
|
'django.template.context_processors.request', |
|
|
|
'django.contrib.auth.context_processors.auth', |
|
|
|
'django.contrib.auth.context_processors.auth', |
|
|
|
'django.contrib.messages.context_processors.messages', |
|
|
|
'django.contrib.messages.context_processors.messages', |
|
|
|
'core.context_processors.breadcrumbs', |
|
|
|
# 'pinax.blog.context_processors.scoped', |
|
|
|
'contact_us.context_processors.contact_us_form', |
|
|
|
'contact_us.context_processors.contact_us_form', |
|
|
|
'products.context_processors.product_search_form', |
|
|
|
'products.context_processors.product_search_form', |
|
|
|
'products.context_processors.product_fitler_formset', |
|
|
|
'products.context_processors.product_fitler_formset', |
|
|
|
@ -179,7 +182,6 @@ DISPOSABLE_EMAIL_DOMAINS = os.path.join(TEMPLATE_DIR, 'emails/disposable_email_d |
|
|
|
# Substituting auth user model |
|
|
|
# Substituting auth user model |
|
|
|
AUTH_USER_MODEL = 'accounts_ext.User' |
|
|
|
AUTH_USER_MODEL = 'accounts_ext.User' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Password validation |
|
|
|
# Password validation |
|
|
|
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators |
|
|
|
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators |
|
|
|
|
|
|
|
|
|
|
|
@ -198,6 +200,11 @@ AUTH_PASSWORD_VALIDATORS = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#PINAX BLOG |
|
|
|
|
|
|
|
# PINAX_BLOG_SCOPING_URL_VAR = "username" |
|
|
|
|
|
|
|
# PINAX_BLOG_SCOPING_MODEL = AUTH_USER_MODEL |
|
|
|
|
|
|
|
# PINAX_BLOG_HOOKSET = "multiblog.hooks.HookSet" # where `multiblog` is the package name of our project |
|
|
|
|
|
|
|
|
|
|
|
# Logging |
|
|
|
# Logging |
|
|
|
LOGGING = { |
|
|
|
LOGGING = { |
|
|
|
'version': 1, |
|
|
|
'version': 1, |
|
|
|
@ -299,8 +306,6 @@ CKEDITOR_CONFIGS = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# CART SESSION KEY |
|
|
|
# CART SESSION KEY |
|
|
|
CART_SESSION_ID = 'cart' |
|
|
|
CART_SESSION_ID = 'cart' |
|
|
|
|
|
|
|
|
|
|
|
@ -308,15 +313,11 @@ CART_SESSION_ID = 'cart' |
|
|
|
IMPORT_EXPORT_USE_TRANSACTIONS = True |
|
|
|
IMPORT_EXPORT_USE_TRANSACTIONS = True |
|
|
|
|
|
|
|
|
|
|
|
# PAGINATION SETTINGS |
|
|
|
# PAGINATION SETTINGS |
|
|
|
DEFAULT_PAGE_AMOUNT = 1 |
|
|
|
DEFAULT_PAGE_AMOUNT = 10 |
|
|
|
|
|
|
|
|
|
|
|
# DEFAULT REFERRAL POINTS |
|
|
|
# DEFAULT REFERRAL POINTS |
|
|
|
DEFAULT_REFERRAL_POINTS = 120 |
|
|
|
DEFAULT_REFERRAL_POINTS = 120 |
|
|
|
|
|
|
|
|
|
|
|
# CASHBACK RATIO IN PERCENTAGE |
|
|
|
|
|
|
|
CASHBACK_RATIO = 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# REQUISITES |
|
|
|
# REQUISITES |
|
|
|
SUPPLIER_INFO = '''ООО "Русские Программы", ИНН 7713409230, КПП 771301001, |
|
|
|
SUPPLIER_INFO = '''ООО "Русские Программы", ИНН 7713409230, КПП 771301001, |
|
|
|
127411, Москва г, Дмитровское ш., дом № 157, корпус 7, тел.: +74957258950''' |
|
|
|
127411, Москва г, Дмитровское ш., дом № 157, корпус 7, тел.: +74957258950''' |
|
|
|
|