Browse Source

adding url info to the getting_started installation documentation

master
Jonathan Moss 14 years ago
parent
commit
e212dff84f

+ 13
- 1
docs/source/getting_started/installation.rst View File

@@ -62,4 +62,16 @@ A vanilla install of django-oscar is now ready, you could now finish the process
62 62
     ./manage.py syncdb
63 63
 
64 64
 However, in reality you will need to start extending the models to match your domain.  It's best to do
65
-this before creating your initial schema.
65
+this before creating your initial schema.
66
+
67
+Configure urls
68
+--------------
69
+
70
+Oscar comes with a number of urls and views out of the box.  These are
71
+recommendations rather than a requirement but you easily use them in your
72
+e-commerce site by adding the oscar urls to your projects local ``urls.py``
73
+
74
+    (r'^', include('oscar.urls')),
75
+
76
+This will bring in all of oscar's defined urls. Of course you can pull in the
77
+urls for the individual apps if you prefer or simply define your own

+ 2
- 2
docs/source/reference/settings.rst View File

@@ -23,9 +23,9 @@ OSCAR_BASKET_COOKIE_LIFETIME
23 23
 
24 24
 Default: 604800 (1 week in seconds)
25 25
 
26
-The time to live for the basket cookie.
26
+The time to live for the basket cookie in seconds
27 27
 
28
-Deprecated Settings
28
+Deprecated settings
29 29
 ===================
30 30
 
31 31
 There are currently no deprecated settings in oscar

+ 1
- 1
oscar/basket/factory.py View File

@@ -11,7 +11,7 @@ COOKIE_KEY_SAVED_BASKET = 'oscar_saved_basket'
11 11
 
12 12
 try:
13 13
     # The lifetime for the basket cookie can be set in settings.py
14
-    COOKIE_LIFETIME = settings.BASKET_COOKIE_LIFETIME
14
+    COOKIE_LIFETIME = settings.OSCAR_BASKET_COOKIE_LIFETIME
15 15
 except AttributeError: 
16 16
     COOKIE_LIFETIME = 7*24*60*60
17 17
 

Loading…
Cancel
Save