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.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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::
  33. from oscar.defaults import *
  34. to your ``settings`` module and run::
  35. python manage.py syncdb
  36. to create the database tables.
  37. Demo shop
  38. ---------
  39. A demo shop is in preparation at the moment and will be available soon.
  40. Real shop
  41. ---------
  42. Sadly, setting up an e-commerce store is never trivial as you would like. At a
  43. minimum, you'll have to consider the following questions:
  44. * How are shipping charges calculated?
  45. * How are products organised into categories?
  46. * How are stock messages determined?
  47. * How is payment taken at checkout?
  48. * How are orders fulfilled and managed?
  49. * How is stock and inventory updated?
  50. Much of the documentation for oscar is organised as recipes that explain
  51. how to solve questions such as those above:
  52. * :doc:`recipes/how_to_customise_an_app`
  53. * :doc:`recipes/how_to_customise_models`
  54. * :doc:`recipes/how_to_override_a_core_class`