Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
2,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. __author__ = ''
  3.  
  4. DEBUG = True
  5. SITE_ID = 1
  6.  
  7. # Tuple of IP addresses, as strings, that:
  8. # * See debug comments, when DEBUG is true
  9. # * Receive x-headers
  10. INTERNAL_IPS = ("127.0.0.1",)
  11. SITE_URL = 'http://localhost:8000'
  12. CELERY_WORK = True # set to True if using celery
  13.  
  14. # CURRENT_ENVIRONMENT = "LIVE"
  15. # CURRENT_ENVIRONMENT = "SANDBOX" # Close registration on sandbox server
  16. # CURRENT_ENVIRONMENT = "TEST"
  17. CURRENT_ENVIRONMENT = 'DEV'
  18. SANDBOX_DB_ENABLED = True
  19. UNDER_CONSTRUCTION = False
  20.  
  21. LOCAL_TESTS = True
  22.  
  23. DATABASES = {
  24. 'default': {
  25. 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  26. 'NAME': 'courier', # Or path to database file if using sqlite3.
  27. 'USER': 'root', # Not used with sqlite3.
  28. 'PASSWORD': '', # Not used with sqlite3.
  29. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
  30. 'PORT': '', # Set to empty string for default. Not used with sqlite3.
  31. },
  32. }
  33.  
  34. # DEV SERVER
  35. CACHES = {
  36. 'default': {
  37. 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
  38. }
  39. }
  40. ALLOWED_HOSTS = ['*',]
  41. CACHE_MIDDLEWARE_SECONDS = 30
  42.  
  43. #
  44. # Local time zone for this installation. Choices can be found here:
  45. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
  46. # although not all choices may be available on all operating systems.
  47. # On Unix systems, a value of None will cause Django to use the same
  48. # timezone as the operating system.
  49. # If running in a Windows environment this must be set to the same as your
  50. # system time zone.
  51. TIME_ZONE = 'Australia/Melbourne'
  52. #TIME_ZONE = 'Asia/Bangkok'
  53. #TIME_ZONE = 'Europe/Vilnius'
  54.  
  55. EMAIL_USE_TLS = True
  56. EMAIL_HOST = 'smtp.yandex.ru'
  57. EMAIL_HOST_USER = 'm.em2015@yandex.ru'
  58. EMAIL_HOST_PASSWORD = 'qr1af2zv3'
  59. EMAIL_PORT = 587
  60. # The e-mail address that error messages come from
  61. SERVER_EMAIL = 'm.em2015@yandex.ru'
  62.  
  63. DEFAULT_CONTACT_EMAIL = 'Ship2Anywehre Support <contact@ship2anywhere.zendesk.com>'
  64.  
  65. AUTH_USER_EMAIL_UNIQUE = True
  66. ACCOUNT_ACTIVATION_DAYS = 2
  67. DEFAULT_FROM_EMAIL = 'Ship2Anywhere <m.em2015@yandex.ru'
  68.  
  69. DHLAP_SITEID = 'Dap0026test'
  70. DHLAP_PASSWORD = '9heVap4p'
  71. DHLAP_ACCOUNT = '964366439'
  72. DHLAP_ADDRESS = 'https://xmlpitest-ea.dhl.com/XMLShippingServlet'
  73.  
  74. DHLEA_SITEID = 'Dap0026test'
  75. DHLEA_PASSWORD = '9heVap4p'
  76. DHLEA_ACCOUNT = '964366439'
  77. DHLEA_ADDRESS = 'https://xmlpitest-ea.dhl.com/XMLShippingServlet'
  78.  
  79. DHLAM_SITEID = 'Dap0026test'
  80. DHLAM_PASSWORD = '9heVap4p'
  81. DHLAM_ACCOUNT = '964366439'
  82. DHLAM_ADDRESS = 'https://xmlpitest-ea.dhl.com/XMLShippingServlet'
  83.  
  84. DHLIA_USERNAME = 'shipper'
  85. DHLIA_PASSWORD = 'shipper'
  86. DHLIA_KEY = 'IABOLCTE-08202009-2RFG245'
  87.  
  88. SECUREPAY_ACCOUNT = 'SJR0130'
  89. SECUREPAY_PASSWORD = 'hdqauir3'
  90. SECUREPAY_ADDRESS_PAY = 'https://test.securepay.com.au/xmlapi/payment'
  91. SECUREPAY_ADDRESS_PER = 'https://test.securepay.com.au/xmlapi/periodic'
  92.  
  93. HTTPS_SUPPORT = False
  94. SECURE_REQUIRED_PATHS = (
  95. '/',
  96. )
  97.  
  98. PREPEND_WWW = False
  99. APPEND_SLASH = True
  100.  
  101. WWW_SUPPORT = False
  102. WWW_EXCLUDE_PATHS = ('/api/',)
  103.  
  104. DEFAULT_CREDIT_NAME = 'Cash sales- website'
  105.  
  106. SECUREPAY_TEST = True
  107.  
  108. ANALYTICS_CODE = 'UA-33824644-1'
  109.  
  110. #ALLIED_WSDL_URL = 'http://triton.alliedexpress.com.au:8080/ttws-ejb/TTWS?wsdl'
  111. # to avoid hitting their webservice during application start we can cache WSDL in file
  112. #ALLIED_WSDL_URL = 'file:///home/s2a/allied_express/ae.wsdl'
  113. # to load wsdl stored with project sources set url to None
  114. ALLIED_WSDL_URL = None
  115. ALLIED_ENDPOINT_URL = 'http://triton.alliedexpress.com.au:8080/ttws-ejb/TTWS'
  116. ALLIED_ACCOUNT_KEY = 'Z27HURWU5C733WV2VVMDKW8CTE6SPIB7'
  117. ALLIED_ACCOUNT_CODE = 'SHIP2'
  118. ALLIED_ACCOUNT_STATE = 'VIC'
  119. ALLIED_ACCOUNT_DIVISION = 'AOE'
  120.  
  121. # production nzpost api url
  122. #NZPOST_API_URL = 'https://xmlapi.emea.netdespatch.com/NDServe/XAServer'
  123. # test nzpost api url
  124. NZPOST_API_URL = 'http://www.vtp.netdespatch.com/NDServe/XAServer'
  125. NZPOST_IDENTITY = 'ship2a'
  126. NZPOST_PASSWORD = 'ship2a'
  127. NZPOST_ACCOUNT_ID = 'S2A'
  128. # test nzpost domestic api url
  129. NZPOSTDOM_API_URL = 'http://www.vtp.netdespatch.com/NDServe/XAServer'
  130. NZPOSTDOM_API_URL_RATE = 'http://api.nzpost.co.nz'
  131. NZPOSTDOM_API_KEY_RATE = '8f8813c0-1a67-0130-909c-00505692731b'
  132. NZPOSTDOM_API_KEY_LABEL = ''
  133. NZPOSTDOM_IDENTITY = 'ship2a3'
  134. NZPOSTDOM_PASSWORD = 'ship2a3'
  135. NZPOSTDOM_ACCOUNT_ID = 'Ship2a'
  136.  
  137. NZ_API_KEY_TRACK = '573e8750-5b9c-0130-28f5-00505692031f'
  138. NZ_API_URL_TRACK = 'http://api.nzpost.co.nz/tracking/track'
  139.  
  140. TOLL_FTP_HOST = '192.168.1.158'
  141. TOLL_FTP_USER = 'foo'
  142. TOLL_FTP_PASS = 'bar'
  143. TOLL_PREFIX = '838455'
  144. TOLL_SYSID = 'ST55'
  145. TOLL_ACCOUNT = '80146147'
  146.  
  147. # By default Celery hijacks the root logger,
  148. # to turn it off we can set this:
  149. #CELERYD_HIJACK_ROOT_LOGGER = False
  150.  
  151. # Ship2Anywhere Dev Team
  152. # https://us2.admin.mailchimp.com/lists/members/?id=683725
  153. MAILCHIMP_DEFAULT_LIST_ID = '5cf8cce52a'
  154.  
  155. # Ship2Anywhere Courier Members
  156. # https://us2.admin.mailchimp.com/lists/members/?id=489177
  157. # MAILCHIMP_DEFAULT_LIST_ID = '41ea34304e'
  158.  
  159. STATIC_LINKS = {
  160. 'facebook': 'https://www.facebook.com/ship2anywhere',
  161. 'youtube': 'https://www.youtube.com/ship2anywhere',
  162. 'pinterest': 'https://pinterest.com/ship2anywhere/',
  163. 'gplus': 'https://plus.google.com/s/ship2anywhere',
  164. 'rss': 'http://feeds.feedburner.com/ship2anywhererss',
  165. 'linked-in': '/',
  166. 'twitter': 'https://twitter.com/#!/ship2anywhere',
  167. 'dashboard': '/dashboard/',
  168. 'privacy-policy': '/privacy-policy/'
  169. }
  170.  
  171. # facebook api config
  172. FACEBOOK_APP_ID = '232392383549423'
  173. FACEBOOK_SECRET_KEY = '4fe0ee0c603c00a2ccc4dd4a0c57472f'
  174. FACEBOOK_REQUEST_PERMISSIONS = ''
  175.  
  176. MAILCHIMP_API_KEY = '43a98d14d6bb434c6c794a881d2e4799-us2'
  177.  
  178. EBAY_ACCOUNT = '960914319'
  179. GLOBALMAIL_GROUP = 'GlobalMail'
  180. GLOBAL_MAIL_BIG_BOX_CARRIER = 'ALLIED'
  181.  
  182. # PRODUCTION (www.ship2anywhere.com.au)
  183. # EBAY_RUNAME = 'Ship2Anywhere_L-Ship2Any-a80b-4-pdaifta'
  184. # EBAY_DOMAIN = 'signin.ebay.com'
  185.  
  186.  
  187. # Sandbox (www.s2asandbox.com)
  188. # EBAY_RUNAME = 'Ship2Anywhere_L-Ship2Any-f4e7-4-fpkaedbmc'
  189. # EBAY_DOMAIN = 'signin.sandbox.ebay.com'
  190.  
  191. # Test
  192. EBAY_RUNAME = 'Ship2Anywhere_L-Ship2Any-f4e7-4-otgxyuzym'
  193. EBAY_DOMAIN = 'signin.sandbox.ebay.com'
  194.  
  195. OAUTH_BLACKLISTED_HOSTNAMES = ['localhost', '127.0.0.1']
  196.  
  197. PREALERT_SUBSCRIBERS = (
  198. ('Emil', 'enumzzz@gmail.com'),
  199. )
  200. PREALERT_SUBSCRIBERS_HK = ['enum@yandex.ru']
  201.  
  202. CONSTANCE_BACKEND = 'constance.backends.redisd.RedisBackend'
  203. CONSTANCE_REDIS_CONNECTION = 'redis://localhost:6379/0'
  204. CONSTANCE_REDIS_PREFIX = 'constance:s2a:'
  205.  
  206. REDIS_CONNECTION = 'redis://localhost:6379/0'
  207.  
  208. # FOR FASTER DEV PLEASE USE THESE SETTINGS:
  209. # Disables CSS and JS compression:
  210. COMPRESS_CSS_FILTERS = (
  211. 'compressor.filters.css_default.CssAbsoluteFilter',
  212. )
  213. COMPRESS_JS_FILTERS = (
  214. 'compressor.filters.template.TemplateFilter',
  215. )
  216.  
  217. BROKER_URL = "redis://localhost:6379/1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement