|
|
@@ -8,14 +8,14 @@ scratch and have decided to use Oscar. Let's call this shop 'frobshop'
|
|
8
|
8
|
.. tip::
|
|
9
|
9
|
|
|
10
|
10
|
You can always review the set-up of the `Sandbox site`_ in case you have
|
|
11
|
|
- trouble following the below instructions.
|
|
|
11
|
+ trouble with the below instructions.
|
|
12
|
12
|
|
|
13
|
13
|
.. _`Sandbox site`: https://github.com/tangentlabs/django-oscar/tree/releases/0.2/sandbox
|
|
14
|
14
|
|
|
15
|
15
|
Install by hand
|
|
16
|
16
|
===============
|
|
17
|
17
|
|
|
18
|
|
-Install oscar (which will install Django as a dependency), then create the
|
|
|
18
|
+Install Oscar (which will install Django as a dependency), then create the
|
|
19
|
19
|
project::
|
|
20
|
20
|
|
|
21
|
21
|
pip install django-oscar
|
|
|
@@ -27,7 +27,7 @@ Settings
|
|
27
|
27
|
--------
|
|
28
|
28
|
|
|
29
|
29
|
Now edit your settings file ``frobshop.frobshop.settings.py`` to specify a
|
|
30
|
|
-database (we use sqlite for simplicity)::
|
|
|
30
|
+database (we use SQLite for simplicity)::
|
|
31
|
31
|
|
|
32
|
32
|
DATABASES = {
|
|
33
|
33
|
'default': {
|
|
|
@@ -85,6 +85,9 @@ Oscar currently uses Haystack for search so you need to specify::
|
|
85
|
85
|
HAYSTACK_SITECONF = 'oscar.search_sites'
|
|
86
|
86
|
HAYSTACK_SEARCH_ENGINE = 'dummy'
|
|
87
|
87
|
|
|
|
88
|
+When moving towards production, you'll obviously need to switch to a real search
|
|
|
89
|
+backend.
|
|
|
90
|
+
|
|
88
|
91
|
The last addition to the settings file is to import all of Oscar's default settings::
|
|
89
|
92
|
|
|
90
|
93
|
from oscar.defaults import *
|
|
|
@@ -116,7 +119,7 @@ Install using Tangent's boilerplate django project
|
|
116
|
119
|
==================================================
|
|
117
|
120
|
|
|
118
|
121
|
The easiest way to get started is to use Tangent's `template django project`_
|
|
119
|
|
-although it is tailored to an Agency structure which may not suit everyone.
|
|
|
122
|
+although it is tailored to an agency structure which may not suit everyone.
|
|
120
|
123
|
|
|
121
|
124
|
.. _`template django project`: https://github.com/tangentlabs/tangent-django-boilerplate
|
|
122
|
125
|
|
|
|
@@ -151,7 +154,8 @@ follows Tangent's conventions. The structure is::
|
|
151
|
154
|
deploy-to-stage.sh
|
|
152
|
155
|
deploy-to-prod.sh
|
|
153
|
156
|
|
|
154
|
|
-Replace a few files with Oscar-specific versions::
|
|
|
157
|
+Replace a few files with Oscar-specific versions (the templated project can be
|
|
|
158
|
+used for non-Oscar projects too)::
|
|
155
|
159
|
|
|
156
|
160
|
mv frobshop/www/urls{_oscar,}.py
|
|
157
|
161
|
mv frobshop/www/deploy/requirements{_oscar,}.py
|
|
|
@@ -173,4 +177,4 @@ Next steps
|
|
173
|
177
|
==========
|
|
174
|
178
|
|
|
175
|
179
|
The next step is to implement the business logic of your domain on top of
|
|
176
|
|
-Oscar.
|
|
|
180
|
+Oscar. The fun part.
|