Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

defaults.py 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. OSCAR_SHOP_NAME = 'Oscar'
  2. OSCAR_SHOP_TAGLINE = 'Domain-driven e-Commerce for Django'
  3. # Basket settings
  4. OSCAR_BASKET_COOKIE_LIFETIME = 7 * 24 * 60 * 60
  5. OSCAR_BASKET_COOKIE_OPEN = 'oscar_open_basket'
  6. OSCAR_BASKET_COOKIE_SAVED = 'oscar_saved_basket'
  7. # Currency
  8. OSCAR_DEFAULT_CURRENCY = 'GBP'
  9. # Max number of products to keep on the user's history
  10. OSCAR_RECENTLY_VIEWED_PRODUCTS = 20
  11. # Paths
  12. OSCAR_IMAGE_FOLDER = 'images/products/%Y/%m/'
  13. OSCAR_PROMOTION_FOLDER = 'images/promotions/'
  14. # Copy this image from oscar/static/img to your MEDIA_ROOT folder.
  15. # It needs to be there so Sorl can resize it.
  16. OSCAR_MISSING_IMAGE_URL = 'image_not_found.jpg'
  17. OSCAR_UPLOAD_ROOT = '/tmp'
  18. # Search settings
  19. OSCAR_SEARCH_SUGGEST_LIMIT = 10
  20. # Checkout
  21. OSCAR_ALLOW_ANON_CHECKOUT = False
  22. # Partners
  23. OSCAR_PARTNER_WRAPPERS = {}
  24. # Promotions
  25. COUNTDOWN, LIST, SINGLE_PRODUCT, TABBED_BLOCK = (
  26. 'Countdown', 'List', 'SingleProduct', 'TabbedBlock')
  27. OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES = (
  28. (COUNTDOWN, "Vertical list"),
  29. (LIST, "Horizontal list"),
  30. (TABBED_BLOCK, "Tabbed block"),
  31. (SINGLE_PRODUCT, "Single product"),
  32. )
  33. # Reviews
  34. OSCAR_ALLOW_ANON_REVIEWS = True
  35. OSCAR_MODERATE_REVIEWS = False
  36. # This enables sending alert notifications/emails
  37. # instantly when products get back in stock
  38. # by listening to stock record update signals
  39. # this might impact performace for large numbers
  40. # stock record updates.
  41. # Alternatively, the management command
  42. # ``oscar_send_alerts`` can be used to
  43. # run periodically, e.g. as a cronjob. In this case
  44. # instant alerts should be disabled.
  45. OSCAR_EAGER_ALERTS = True
  46. # Registration
  47. OSCAR_SEND_REGISTRATION_EMAIL = True
  48. OSCAR_FROM_EMAIL = 'oscar@example.com'
  49. # Offers
  50. OSCAR_OFFER_BLACKLIST_PRODUCT = None
  51. # Max total number of items in basket
  52. OSCAR_MAX_BASKET_QUANTITY_THRESHOLD = None
  53. # Cookies
  54. OSCAR_COOKIES_DELETE_ON_LOGOUT = ['oscar_recently_viewed_products', ]
  55. OSCAR_SETTINGS = dict(
  56. [(k, v) for k, v in locals().items() if k.startswith('OSCAR_')])