1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- # Use 'alpha', 'beta', 'rc' or 'final' as the 4th element to indicate release type.
- VERSION = (3, 2, 5, "alpha", 2)
-
-
- def get_short_version():
- return "%s.%s" % (VERSION[0], VERSION[1])
-
-
- def get_version():
- version = "%s.%s" % (VERSION[0], VERSION[1])
- # Append 3rd digit if > 0
- if VERSION[2]:
- version = "%s.%s" % (version, VERSION[2])
-
- if VERSION[3] != "final":
- mapping = {"alpha": "a", "beta": "b", "rc": "rc"}
- version = "%s%s" % (version, mapping[VERSION[3]])
- if len(VERSION) == 5:
- version = "%s%s" % (version, VERSION[4])
-
- return version
-
-
- INSTALLED_APPS = [
- "django.contrib.admin",
- "django.contrib.auth",
- "django.contrib.contenttypes",
- "django.contrib.sessions",
- "django.contrib.messages",
- "django.contrib.staticfiles",
- "django.contrib.sites",
- "django.contrib.flatpages",
- "oscar.config.Shop",
- "oscar.apps.analytics.apps.AnalyticsConfig",
- "oscar.apps.checkout.apps.CheckoutConfig",
- "oscar.apps.address.apps.AddressConfig",
- "oscar.apps.shipping.apps.ShippingConfig",
- "oscar.apps.catalogue.apps.CatalogueConfig",
- "oscar.apps.catalogue.reviews.apps.CatalogueReviewsConfig",
- "oscar.apps.communication.apps.CommunicationConfig",
- "oscar.apps.partner.apps.PartnerConfig",
- "oscar.apps.basket.apps.BasketConfig",
- "oscar.apps.payment.apps.PaymentConfig",
- "oscar.apps.offer.apps.OfferConfig",
- "oscar.apps.order.apps.OrderConfig",
- "oscar.apps.customer.apps.CustomerConfig",
- "oscar.apps.search.apps.SearchConfig",
- "oscar.apps.voucher.apps.VoucherConfig",
- "oscar.apps.wishlists.apps.WishlistsConfig",
- "oscar.apps.dashboard.apps.DashboardConfig",
- "oscar.apps.dashboard.reports.apps.ReportsDashboardConfig",
- "oscar.apps.dashboard.users.apps.UsersDashboardConfig",
- "oscar.apps.dashboard.orders.apps.OrdersDashboardConfig",
- "oscar.apps.dashboard.catalogue.apps.CatalogueDashboardConfig",
- "oscar.apps.dashboard.offers.apps.OffersDashboardConfig",
- "oscar.apps.dashboard.partners.apps.PartnersDashboardConfig",
- "oscar.apps.dashboard.pages.apps.PagesDashboardConfig",
- "oscar.apps.dashboard.ranges.apps.RangesDashboardConfig",
- "oscar.apps.dashboard.reviews.apps.ReviewsDashboardConfig",
- "oscar.apps.dashboard.vouchers.apps.VouchersDashboardConfig",
- "oscar.apps.dashboard.communications.apps.CommunicationsDashboardConfig",
- "oscar.apps.dashboard.shipping.apps.ShippingDashboardConfig",
- # 3rd-party apps that oscar depends on
- "widget_tweaks",
- "haystack",
- "treebeard",
- "django_tables2",
- ]
-
-
- default_app_config = "oscar.config.Shop"
|