Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

settings.rst 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. =======================
  2. Oscar specific settings
  3. =======================
  4. Oscar provides a number of configurable settings used to confugre the system.
  5. .. contents::
  6. :local:
  7. :depth: 1
  8. Available settings
  9. ==================
  10. OSCAR_DEFAULT_CURRENCY
  11. ----------------------
  12. Default: ``GBP``
  13. This should be the symbol of the currency you wish Oscar to use by default.
  14. This will be used by the currency templatetag.
  15. OSCAR_CURRENCY_LOCALE
  16. ---------------------
  17. Default: ``None``
  18. This can be used to customise currency formatting. The value will be passed to
  19. the ``format_currency`` function from the `Babel library`_.
  20. .. _`Babel library`: http://babel.edgewall.org/wiki/ApiDocs/0.9/babel.numbers#babel.numbers:format_decimal
  21. OSCAR_CURRENCY_FORMAT
  22. ---------------------
  23. Default: ``None``
  24. This can be used to customise currency formatting. The value will be passed to
  25. the ``format_currency`` function from the Babel library.
  26. OSCAR_BASKET_COOKIE_LIFETIME
  27. ----------------------------
  28. Default: 604800 (1 week in seconds)
  29. The time to live for the basket cookie in seconds
  30. OSCAR_IMAGE_FOLDER
  31. ------------------
  32. Default: ``images/products/%Y/%m/``
  33. The path for uploading images to.
  34. OSCAR_RECENTLY_VIEWED_PRODUCTS
  35. ------------------------------
  36. Default: 4
  37. The number of recently viewed products to store
  38. OSCAR_SEARCH_SUGGEST_LIMIT
  39. --------------------------
  40. Default: 10
  41. The number of suggestions that the search 'suggest' function should return
  42. at maximum
  43. Deprecated settings
  44. ===================
  45. There are currently no deprecated settings in oscar