You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Use 'alpha', 'beta', 'rc' or 'final' as the 4th element to indicate release type.
  2. VERSION = (3, 2, 5, "alpha", 2)
  3. def get_short_version():
  4. return "%s.%s" % (VERSION[0], VERSION[1])
  5. def get_version():
  6. version = "%s.%s" % (VERSION[0], VERSION[1])
  7. # Append 3rd digit if > 0
  8. if VERSION[2]:
  9. version = "%s.%s" % (version, VERSION[2])
  10. if VERSION[3] != "final":
  11. mapping = {"alpha": "a", "beta": "b", "rc": "rc"}
  12. version = "%s%s" % (version, mapping[VERSION[3]])
  13. if len(VERSION) == 5:
  14. version = "%s%s" % (version, VERSION[4])
  15. return version
  16. INSTALLED_APPS = [
  17. "django.contrib.admin",
  18. "django.contrib.auth",
  19. "django.contrib.contenttypes",
  20. "django.contrib.sessions",
  21. "django.contrib.messages",
  22. "django.contrib.staticfiles",
  23. "django.contrib.sites",
  24. "django.contrib.flatpages",
  25. "oscar.config.Shop",
  26. "oscar.apps.analytics.apps.AnalyticsConfig",
  27. "oscar.apps.checkout.apps.CheckoutConfig",
  28. "oscar.apps.address.apps.AddressConfig",
  29. "oscar.apps.shipping.apps.ShippingConfig",
  30. "oscar.apps.catalogue.apps.CatalogueConfig",
  31. "oscar.apps.catalogue.reviews.apps.CatalogueReviewsConfig",
  32. "oscar.apps.communication.apps.CommunicationConfig",
  33. "oscar.apps.partner.apps.PartnerConfig",
  34. "oscar.apps.basket.apps.BasketConfig",
  35. "oscar.apps.payment.apps.PaymentConfig",
  36. "oscar.apps.offer.apps.OfferConfig",
  37. "oscar.apps.order.apps.OrderConfig",
  38. "oscar.apps.customer.apps.CustomerConfig",
  39. "oscar.apps.search.apps.SearchConfig",
  40. "oscar.apps.voucher.apps.VoucherConfig",
  41. "oscar.apps.wishlists.apps.WishlistsConfig",
  42. "oscar.apps.dashboard.apps.DashboardConfig",
  43. "oscar.apps.dashboard.reports.apps.ReportsDashboardConfig",
  44. "oscar.apps.dashboard.users.apps.UsersDashboardConfig",
  45. "oscar.apps.dashboard.orders.apps.OrdersDashboardConfig",
  46. "oscar.apps.dashboard.catalogue.apps.CatalogueDashboardConfig",
  47. "oscar.apps.dashboard.offers.apps.OffersDashboardConfig",
  48. "oscar.apps.dashboard.partners.apps.PartnersDashboardConfig",
  49. "oscar.apps.dashboard.pages.apps.PagesDashboardConfig",
  50. "oscar.apps.dashboard.ranges.apps.RangesDashboardConfig",
  51. "oscar.apps.dashboard.reviews.apps.ReviewsDashboardConfig",
  52. "oscar.apps.dashboard.vouchers.apps.VouchersDashboardConfig",
  53. "oscar.apps.dashboard.communications.apps.CommunicationsDashboardConfig",
  54. "oscar.apps.dashboard.shipping.apps.ShippingDashboardConfig",
  55. # 3rd-party apps that oscar depends on
  56. "widget_tweaks",
  57. "haystack",
  58. "treebeard",
  59. "django_tables2",
  60. ]
  61. default_app_config = "oscar.config.Shop"