Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- __author__ = ''
- DEBUG = True
- SITE_ID = 1
- # Tuple of IP addresses, as strings, that:
- # * See debug comments, when DEBUG is true
- # * Receive x-headers
- INTERNAL_IPS = ("127.0.0.1",)
- SITE_URL = 'http://localhost:8000'
- CELERY_WORK = True # set to True if using celery
- # CURRENT_ENVIRONMENT = "LIVE"
- # CURRENT_ENVIRONMENT = "SANDBOX" # Close registration on sandbox server
- # CURRENT_ENVIRONMENT = "TEST"
- CURRENT_ENVIRONMENT = 'DEV'
- SANDBOX_DB_ENABLED = True
- UNDER_CONSTRUCTION = False
- LOCAL_TESTS = True
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'courier', # Or path to database file if using sqlite3.
- 'USER': 'root', # Not used with sqlite3.
- 'PASSWORD': '', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- },
- }
- # DEV SERVER
- CACHES = {
- 'default': {
- 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
- }
- }
- ALLOWED_HOSTS = ['*',]
- CACHE_MIDDLEWARE_SECONDS = 30
- #
- # Local time zone for this installation. Choices can be found here:
- # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
- # although not all choices may be available on all operating systems.
- # On Unix systems, a value of None will cause Django to use the same
- # timezone as the operating system.
- # If running in a Windows environment this must be set to the same as your
- # system time zone.
- TIME_ZONE = 'Australia/Melbourne'
- #TIME_ZONE = 'Asia/Bangkok'
- #TIME_ZONE = 'Europe/Vilnius'
- EMAIL_USE_TLS = True
- EMAIL_HOST = 'smtp.yandex.ru'
- EMAIL_HOST_USER = 'm.em2015@yandex.ru'
- EMAIL_HOST_PASSWORD = 'qr1af2zv3'
- EMAIL_PORT = 587
- # The e-mail address that error messages come from
- SERVER_EMAIL = 'm.em2015@yandex.ru'
- DEFAULT_CONTACT_EMAIL = 'Ship2Anywehre Support <contact@ship2anywhere.zendesk.com>'
- AUTH_USER_EMAIL_UNIQUE = True
- ACCOUNT_ACTIVATION_DAYS = 2
- DEFAULT_FROM_EMAIL = 'Ship2Anywhere <m.em2015@yandex.ru'
- DHLAP_SITEID = 'Dap0026test'
- DHLAP_PASSWORD = '9heVap4p'
- DHLAP_ACCOUNT = '964366439'
- DHLAP_ADDRESS = 'https://xmlpitest-ea.dhl.com/XMLShippingServlet'
- DHLEA_SITEID = 'Dap0026test'
- DHLEA_PASSWORD = '9heVap4p'
- DHLEA_ACCOUNT = '964366439'
- DHLEA_ADDRESS = 'https://xmlpitest-ea.dhl.com/XMLShippingServlet'
- DHLAM_SITEID = 'Dap0026test'
- DHLAM_PASSWORD = '9heVap4p'
- DHLAM_ACCOUNT = '964366439'
- DHLAM_ADDRESS = 'https://xmlpitest-ea.dhl.com/XMLShippingServlet'
- DHLIA_USERNAME = 'shipper'
- DHLIA_PASSWORD = 'shipper'
- DHLIA_KEY = 'IABOLCTE-08202009-2RFG245'
- SECUREPAY_ACCOUNT = 'SJR0130'
- SECUREPAY_PASSWORD = 'hdqauir3'
- SECUREPAY_ADDRESS_PAY = 'https://test.securepay.com.au/xmlapi/payment'
- SECUREPAY_ADDRESS_PER = 'https://test.securepay.com.au/xmlapi/periodic'
- HTTPS_SUPPORT = False
- SECURE_REQUIRED_PATHS = (
- '/',
- )
- PREPEND_WWW = False
- APPEND_SLASH = True
- WWW_SUPPORT = False
- WWW_EXCLUDE_PATHS = ('/api/',)
- DEFAULT_CREDIT_NAME = 'Cash sales- website'
- SECUREPAY_TEST = True
- ANALYTICS_CODE = 'UA-33824644-1'
- #ALLIED_WSDL_URL = 'http://triton.alliedexpress.com.au:8080/ttws-ejb/TTWS?wsdl'
- # to avoid hitting their webservice during application start we can cache WSDL in file
- #ALLIED_WSDL_URL = 'file:///home/s2a/allied_express/ae.wsdl'
- # to load wsdl stored with project sources set url to None
- ALLIED_WSDL_URL = None
- ALLIED_ENDPOINT_URL = 'http://triton.alliedexpress.com.au:8080/ttws-ejb/TTWS'
- ALLIED_ACCOUNT_KEY = 'Z27HURWU5C733WV2VVMDKW8CTE6SPIB7'
- ALLIED_ACCOUNT_CODE = 'SHIP2'
- ALLIED_ACCOUNT_STATE = 'VIC'
- ALLIED_ACCOUNT_DIVISION = 'AOE'
- # production nzpost api url
- #NZPOST_API_URL = 'https://xmlapi.emea.netdespatch.com/NDServe/XAServer'
- # test nzpost api url
- NZPOST_API_URL = 'http://www.vtp.netdespatch.com/NDServe/XAServer'
- NZPOST_IDENTITY = 'ship2a'
- NZPOST_PASSWORD = 'ship2a'
- NZPOST_ACCOUNT_ID = 'S2A'
- # test nzpost domestic api url
- NZPOSTDOM_API_URL = 'http://www.vtp.netdespatch.com/NDServe/XAServer'
- NZPOSTDOM_API_URL_RATE = 'http://api.nzpost.co.nz'
- NZPOSTDOM_API_KEY_RATE = '8f8813c0-1a67-0130-909c-00505692731b'
- NZPOSTDOM_API_KEY_LABEL = ''
- NZPOSTDOM_IDENTITY = 'ship2a3'
- NZPOSTDOM_PASSWORD = 'ship2a3'
- NZPOSTDOM_ACCOUNT_ID = 'Ship2a'
- NZ_API_KEY_TRACK = '573e8750-5b9c-0130-28f5-00505692031f'
- NZ_API_URL_TRACK = 'http://api.nzpost.co.nz/tracking/track'
- TOLL_FTP_HOST = '192.168.1.158'
- TOLL_FTP_USER = 'foo'
- TOLL_FTP_PASS = 'bar'
- TOLL_PREFIX = '838455'
- TOLL_SYSID = 'ST55'
- TOLL_ACCOUNT = '80146147'
- # By default Celery hijacks the root logger,
- # to turn it off we can set this:
- #CELERYD_HIJACK_ROOT_LOGGER = False
- # Ship2Anywhere Dev Team
- # https://us2.admin.mailchimp.com/lists/members/?id=683725
- MAILCHIMP_DEFAULT_LIST_ID = '5cf8cce52a'
- # Ship2Anywhere Courier Members
- # https://us2.admin.mailchimp.com/lists/members/?id=489177
- # MAILCHIMP_DEFAULT_LIST_ID = '41ea34304e'
- STATIC_LINKS = {
- 'facebook': 'https://www.facebook.com/ship2anywhere',
- 'youtube': 'https://www.youtube.com/ship2anywhere',
- 'pinterest': 'https://pinterest.com/ship2anywhere/',
- 'gplus': 'https://plus.google.com/s/ship2anywhere',
- 'rss': 'http://feeds.feedburner.com/ship2anywhererss',
- 'linked-in': '/',
- 'twitter': 'https://twitter.com/#!/ship2anywhere',
- 'dashboard': '/dashboard/',
- 'privacy-policy': '/privacy-policy/'
- }
- # facebook api config
- FACEBOOK_APP_ID = '232392383549423'
- FACEBOOK_SECRET_KEY = '4fe0ee0c603c00a2ccc4dd4a0c57472f'
- FACEBOOK_REQUEST_PERMISSIONS = ''
- MAILCHIMP_API_KEY = '43a98d14d6bb434c6c794a881d2e4799-us2'
- EBAY_ACCOUNT = '960914319'
- GLOBALMAIL_GROUP = 'GlobalMail'
- GLOBAL_MAIL_BIG_BOX_CARRIER = 'ALLIED'
- # PRODUCTION (www.ship2anywhere.com.au)
- # EBAY_RUNAME = 'Ship2Anywhere_L-Ship2Any-a80b-4-pdaifta'
- # EBAY_DOMAIN = 'signin.ebay.com'
- # Sandbox (www.s2asandbox.com)
- # EBAY_RUNAME = 'Ship2Anywhere_L-Ship2Any-f4e7-4-fpkaedbmc'
- # EBAY_DOMAIN = 'signin.sandbox.ebay.com'
- # Test
- EBAY_RUNAME = 'Ship2Anywhere_L-Ship2Any-f4e7-4-otgxyuzym'
- EBAY_DOMAIN = 'signin.sandbox.ebay.com'
- OAUTH_BLACKLISTED_HOSTNAMES = ['localhost', '127.0.0.1']
- PREALERT_SUBSCRIBERS = (
- ('Emil', 'enumzzz@gmail.com'),
- )
- PREALERT_SUBSCRIBERS_HK = ['enum@yandex.ru']
- CONSTANCE_BACKEND = 'constance.backends.redisd.RedisBackend'
- CONSTANCE_REDIS_CONNECTION = 'redis://localhost:6379/0'
- CONSTANCE_REDIS_PREFIX = 'constance:s2a:'
- REDIS_CONNECTION = 'redis://localhost:6379/0'
- # FOR FASTER DEV PLEASE USE THESE SETTINGS:
- # Disables CSS and JS compression:
- COMPRESS_CSS_FILTERS = (
- 'compressor.filters.css_default.CssAbsoluteFilter',
- )
- COMPRESS_JS_FILTERS = (
- 'compressor.filters.template.TemplateFilter',
- )
- BROKER_URL = "redis://localhost:6379/1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement