|
|
@@ -2,8 +2,9 @@
|
|
2
|
2
|
Sample Oscar projects
|
|
3
|
3
|
=====================
|
|
4
|
4
|
|
|
5
|
|
-Oscar ships with two sample projects: a 'sandbox' site, which is a vanilla
|
|
6
|
|
-install of Oscar using the default templates and styles, and a fully featured
|
|
|
5
|
+Oscar ships with three sample projects: a 'sandbox' site, which is a vanilla
|
|
|
6
|
+install of Oscar using the default templates and styles, a sample US site which
|
|
|
7
|
+customises Oscar to use US style taxes, and a fully featured
|
|
7
|
8
|
'demo' site which demonstrates how Oscar can be re-skinned and customised to
|
|
8
|
9
|
model a domain.
|
|
9
|
10
|
|
|
|
@@ -30,35 +31,8 @@ are domain-specific. For instance:
|
|
30
|
31
|
|
|
31
|
32
|
The sandbox is, in effect, the blank canvas upon which you can build your site.
|
|
32
|
33
|
|
|
33
|
|
-The demo site
|
|
34
|
|
--------------
|
|
35
|
|
-
|
|
36
|
|
-The demo site is *the* reference Oscar project as it illustrates how Oscar can
|
|
37
|
|
-be redesigned and customised to build an realistic e-commerce store. The demo
|
|
38
|
|
-site is a sailing store selling a range of different product types.
|
|
39
|
|
-
|
|
40
|
|
-The customisations on top of core Oscar include:
|
|
41
|
|
-
|
|
42
|
|
-* A new skin
|
|
43
|
|
-* A variety of product types including books, clothing and downloads
|
|
44
|
|
-* Payment with PayPal Express using django-oscar-paypal_.
|
|
45
|
|
-* Payment with bankcards using Datacash using django-oscar-datacash_.
|
|
46
|
|
-
|
|
47
|
|
-.. _django-oscar-paypal: https://github.com/tangentlabs/django-oscar-paypal
|
|
48
|
|
-.. _django-oscar-datacash: https://github.com/tangentlabs/django-oscar-datacash
|
|
49
|
|
-
|
|
50
|
|
-.. note::
|
|
51
|
|
-
|
|
52
|
|
- Both the sandbox and demo site have the Django admin interface wired up.
|
|
53
|
|
- This is done as a convenience for developers to browse the model instances.
|
|
54
|
|
-
|
|
55
|
|
- Having said that, the Django admin interface is *unsupported* and will fail
|
|
56
|
|
- or be of little use for some models. At the time of writing, editing
|
|
57
|
|
- products in the admin is clunky and slow, and editing categories is
|
|
58
|
|
- not supported at all.
|
|
59
|
|
-
|
|
60
|
34
|
Browse the external sandbox site
|
|
61
|
|
-================================
|
|
|
35
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
62
|
36
|
|
|
63
|
37
|
An instance of the sandbox site is build hourly from master branch and made
|
|
64
|
38
|
available at http://latest.oscarcommerce.com
|
|
|
@@ -68,15 +42,9 @@ available at http://latest.oscarcommerce.com
|
|
68
|
42
|
It is possible for users to access the dashboard and edit the site content.
|
|
69
|
43
|
Hence, the data can get quite messy. It is periodically cleaned up.
|
|
70
|
44
|
|
|
71
|
|
-Browse the external demo site
|
|
72
|
|
-=============================
|
|
73
|
45
|
|
|
74
|
|
-An instance of the demo site is built periodically (but not automatically) and
|
|
75
|
|
-available at http://demo.oscarcommerce.com. It is typically updated when new
|
|
76
|
|
-versions of Oscar are released.
|
|
77
|
|
-
|
|
78
|
|
-Running the sandbox locally
|
|
79
|
|
-===========================
|
|
|
46
|
+Run the sandbox locally
|
|
|
47
|
+~~~~~~~~~~~~~~~~~~~~~~~
|
|
80
|
48
|
|
|
81
|
49
|
It's pretty straightforward to get the sandbox site running locally so you can
|
|
82
|
50
|
play around with Oscar.
|
|
|
@@ -112,8 +80,65 @@ at: http://localhost:8000. A sample superuser is installed with credentials::
|
|
112
|
80
|
email: superuser@example.com
|
|
113
|
81
|
password: testing
|
|
114
|
82
|
|
|
115
|
|
-Running the demo locally
|
|
116
|
|
-========================
|
|
|
83
|
+.. _us_site:
|
|
|
84
|
+
|
|
|
85
|
+The US site
|
|
|
86
|
+-----------
|
|
|
87
|
+
|
|
|
88
|
+The US site is a relatively simple Oscar that makes a few key customisations in
|
|
|
89
|
+order to mimic how sites in the US work. Specifically, it:
|
|
|
90
|
+
|
|
|
91
|
+- Overrides the partner app to supply a new strategy selector which ensures all
|
|
|
92
|
+ prices are return without taxes.
|
|
|
93
|
+
|
|
|
94
|
+- Overrides the checkout app in order to apply taxes to submissions once the
|
|
|
95
|
+ shipping address is known.
|
|
|
96
|
+
|
|
|
97
|
+To browse the US site locally run:
|
|
|
98
|
+
|
|
|
99
|
+.. code-block:: bash
|
|
|
100
|
+
|
|
|
101
|
+ (oscar) $ make us_site
|
|
|
102
|
+ (oscar) $ sites/us/manage.py runserver
|
|
|
103
|
+
|
|
|
104
|
+and the US site will be browsable at http://localhost:8000
|
|
|
105
|
+
|
|
|
106
|
+The demo site
|
|
|
107
|
+-------------
|
|
|
108
|
+
|
|
|
109
|
+The demo site is *the* reference Oscar project as it illustrates how Oscar can
|
|
|
110
|
+be redesigned and customised to build an realistic e-commerce store. The demo
|
|
|
111
|
+site is a sailing store selling a range of different product types.
|
|
|
112
|
+
|
|
|
113
|
+The customisations on top of core Oscar include:
|
|
|
114
|
+
|
|
|
115
|
+* A new skin
|
|
|
116
|
+* A variety of product types including books, clothing and downloads
|
|
|
117
|
+* Payment with PayPal Express using django-oscar-paypal_.
|
|
|
118
|
+* Payment with bankcards using Datacash using django-oscar-datacash_.
|
|
|
119
|
+
|
|
|
120
|
+.. _django-oscar-paypal: https://github.com/tangentlabs/django-oscar-paypal
|
|
|
121
|
+.. _django-oscar-datacash: https://github.com/tangentlabs/django-oscar-datacash
|
|
|
122
|
+
|
|
|
123
|
+.. note::
|
|
|
124
|
+
|
|
|
125
|
+ Both the sandbox and demo site have the Django admin interface wired up.
|
|
|
126
|
+ This is done as a convenience for developers to browse the model instances.
|
|
|
127
|
+
|
|
|
128
|
+ Having said that, the Django admin interface is *unsupported* and will fail
|
|
|
129
|
+ or be of little use for some models. At the time of writing, editing
|
|
|
130
|
+ products in the admin is clunky and slow, and editing categories is
|
|
|
131
|
+ not supported at all.
|
|
|
132
|
+
|
|
|
133
|
+Browse the external demo site
|
|
|
134
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
135
|
+
|
|
|
136
|
+An instance of the demo site is built periodically (but not automatically) and
|
|
|
137
|
+available at http://demo.oscarcommerce.com. It is typically updated when new
|
|
|
138
|
+versions of Oscar are released.
|
|
|
139
|
+
|
|
|
140
|
+Run the demo site locally
|
|
|
141
|
+~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
117
|
142
|
|
|
118
|
143
|
Assuming you've already set-up the sandbox site, there are two further services
|
|
119
|
144
|
required to run the demo site:
|