Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

take_a_peek.rst 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ===========
  2. Take a peek
  3. ===========
  4. There are several ways to get a feel for Oscar and what it can do.
  5. Browse the sandbox site
  6. =======================
  7. There is a demo Oscar site, built hourly from HEAD of the master branch (unstable):
  8. http://sandbox.oscar.tangentlabs.co.uk
  9. It is intended to be a vanilla install of oscar, using the default templates and
  10. styles. This is the blank canvas upon which you an build your application.
  11. It only has two customisations on top of oscar's core:
  12. * Two shipping methods are specified so that the shipping method step of
  13. checkout is not skipped. If there is only one shipping method (which is true of core
  14. oscar) then the shipping method step is skipped as there is no choice to be
  15. made.
  16. * A profile class is specified which defines a few simple fields. This is to
  17. demonstrate the account section of Oscar, which introspects the profile class
  18. to build a combined User and Profile form.
  19. Running the sandbox locally
  20. ===========================
  21. It's pretty straightforward to get the sandbox site running locally so you can
  22. play around with the sourcecode.
  23. Install Oscar and its dependencies within a virtualenv::
  24. git clone git://github.com/tangentlabs/django-oscar.git
  25. cd django-oscar
  26. mkvirtualenv oscar
  27. python setup.py develop
  28. pip install -r requirements.txt
  29. Create a SQLite database and load some sample products and required fixtures::
  30. cd sandbox
  31. ./manage.py syncdb --noinput
  32. ./manage.py migrate
  33. ./manage.py oscar_import_catalogue data/books-catalogue.csv
  34. ./manage.py oscar_import_catalogue_images data/books-images.tar.gz
  35. ./manage.py loaddata countries.json fixtures/pages.json
  36. Now you can browse a sample Oscar site using Django's development server::
  37. ./manage.py runserver
  38. Note that some things are deliberately not implemented within core Oscar
  39. as they are domain-specific. For instance:
  40. * All tax is set to zero
  41. * The two shipping methods are both free
  42. * No payment is required to submit an order
  43. I've found a problem!
  44. ---------------------
  45. Please `report them in Github's issue tracker`_.
  46. .. _`report them in Github's issue tracker`: https://github.com/tangentlabs/django-oscar/issues
  47. Browse some real Oscar implementations
  48. ======================================
  49. There are several Oscar implementations in production, although several are B2B
  50. and hence can't be browsed by the public. Here's a few public ones to have a
  51. look at:
  52. * http://www.landmarkonthenet.com - Landmark is part of Tata Group. This site
  53. has a catalogue size of more than 20 million products and integrates with many
  54. partners such as Gardners, Ingram, Nielsen, Citibank, Qwikcilver and SAP.
  55. * http://www.dolbeau.ca/ - "Dolbeau delivers weekly limited editions of
  56. handcrafted luxury menswear"