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.

getting_started.rst 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ===============
  2. Getting started
  3. ===============
  4. Install using::
  5. pip install django-oscar
  6. then add::
  7. 'oscar.apps.basket.middleware.BasketMiddleware'
  8. to ``MIDDLEWARE_CLASSES``, and::
  9. 'oscar.apps.promotions.context_processors.promotions',
  10. 'oscar.apps.checkout.context_processors.checkout',
  11. to ``TEMPLATE_CONTEXT_PROCESSORS``. Next, add the following apps
  12. to your ``INSTALLED_APPS``::
  13. 'oscar',
  14. 'oscar.apps.analytics',
  15. 'oscar.apps.discount',
  16. 'oscar.apps.order',
  17. 'oscar.apps.checkout',
  18. 'oscar.apps.shipping',
  19. 'oscar.apps.order_management',
  20. 'oscar.apps.catalogue',
  21. 'oscar.apps.catalogue.reviews',
  22. 'oscar.apps.basket',
  23. 'oscar.apps.payment',
  24. 'oscar.apps.offer',
  25. 'oscar.apps.address',
  26. 'oscar.apps.partner',
  27. 'oscar.apps.customer',
  28. 'oscar.apps.promotions',
  29. 'oscar.apps.reports',
  30. 'oscar.apps.search',
  31. 'oscar.apps.voucher',
  32. Add the following to your `INSTALLED_APPS` if you intend to use the default
  33. oscar dashboard templates::
  34. 'django_sorting',
  35. Add::
  36. from oscar.defaults import *
  37. to your ``settings`` module and run::
  38. python manage.py syncdb
  39. to create the database tables.
  40. Demo shop
  41. ---------
  42. A demo shop is in preparation at the moment and will be available soon.
  43. Real shop
  44. ---------
  45. Sadly, setting up an e-commerce store is never trivial as you would like. At a
  46. minimum, you'll have to consider the following questions:
  47. * How are shipping charges calculated?
  48. * How are products organised into categories?
  49. * How are stock messages determined?
  50. * How is payment taken at checkout?
  51. * How are orders fulfilled and managed?
  52. * How is stock and inventory updated?
  53. Much of the documentation for oscar is organised as recipes that explain
  54. how to solve questions such as those above:
  55. * :doc:`recipes/how_to_customise_an_app`
  56. * :doc:`recipes/how_to_customise_models`
  57. * :doc:`recipes/how_to_override_a_core_class`