瀏覽代碼

Update installation infromation - django_sorting

master
Asia Biega 13 年之前
父節點
當前提交
081b6688c6
共有 2 個文件被更改,包括 25 次插入16 次删除
  1. 19
    15
      docs/source/_draft/getting_started/installation.rst
  2. 6
    1
      docs/source/getting_started.rst

+ 19
- 15
docs/source/_draft/getting_started/installation.rst 查看文件

21
 A nice extension now is to edit your ``~/.virtualenv/$PROJECTNAME/bin/postactivate`` file to contain::
21
 A nice extension now is to edit your ``~/.virtualenv/$PROJECTNAME/bin/postactivate`` file to contain::
22
 
22
 
23
     cd ~/path/to/my/workspace/$PROJECTNAME
23
     cd ~/path/to/my/workspace/$PROJECTNAME
24
-    
24
+
25
 so that you can simply type ``workon $PROJECTNAME`` to jump into your project folder with the virtual
25
 so that you can simply type ``workon $PROJECTNAME`` to jump into your project folder with the virtual
26
 environment set-up.
26
 environment set-up.
27
 
27
 
28
 Installation
28
 Installation
29
 ------------
29
 ------------
30
-    
31
-Install oscar and its dependencies::    
32
-    
30
+
31
+Install oscar and its dependencies::
32
+
33
     pip install -e git+git://github.com/tangentlabs/django-oscar.git#egg=django-oscar
33
     pip install -e git+git://github.com/tangentlabs/django-oscar.git#egg=django-oscar
34
-    
34
+
35
 You will also need to install the appropriate python module for your database of choice.
35
 You will also need to install the appropriate python module for your database of choice.
36
 If you are using MySQL, then run the following::
36
 If you are using MySQL, then run the following::
37
 
37
 
38
     pip install MySQL-python
38
     pip install MySQL-python
39
 
39
 
40
-Also, depending on your search backend for haystack, you'll need to install further 
40
+Also, depending on your search backend for haystack, you'll need to install further
41
 packages::
41
 packages::
42
 
42
 
43
     pip install pysolr
43
     pip install pysolr
44
 
44
 
45
 Now create the project::
45
 Now create the project::
46
-    
46
+
47
     cd /path/to/my/workspace
47
     cd /path/to/my/workspace
48
     django-admin.py startproject $PROJECTNAME
48
     django-admin.py startproject $PROJECTNAME
49
 
49
 
50
 Configure ``settings.py``
50
 Configure ``settings.py``
51
 -------------------------
51
 -------------------------
52
 
52
 
53
-* Add ``'django.middleware.transaction.TransactionMiddleware'`` to your ``MIDDLEWARE_CLASSES`` tuple, making 
53
+* Add ``'django.middleware.transaction.TransactionMiddleware'`` to your ``MIDDLEWARE_CLASSES`` tuple, making
54
   sure it comes AFTER ``'django.contrib.auth.middleware.AuthenticationMiddleware'``.
54
   sure it comes AFTER ``'django.contrib.auth.middleware.AuthenticationMiddleware'``.
55
-  
55
+
56
 * Add the following to your `INSTALLED_APPS`::
56
 * Add the following to your `INSTALLED_APPS`::
57
 
57
 
58
     'haystack',
58
     'haystack',
75
     'oscar.apps.reports',
75
     'oscar.apps.reports',
76
     'oscar.apps.search',
76
     'oscar.apps.search',
77
     'oscar.apps.catalogue_import',
77
     'oscar.apps.catalogue_import',
78
-    
78
+
79
+* Add the following to your `INSTALLED_APPS` if you intend to use the default oscar dashboard templates::
80
+
81
+    'django_sorting',
82
+
79
 * Add these to ``TEMPLATE_CONTECT_PROCESSORS``::
83
 * Add these to ``TEMPLATE_CONTECT_PROCESSORS``::
80
 
84
 
81
     'oscar.apps.search.context_processors.search_form',
85
     'oscar.apps.search.context_processors.search_form',
82
     'oscar.apps.promotions.context_processors.promotions',
86
     'oscar.apps.promotions.context_processors.promotions',
83
-    'oscar.apps.promotions.context_processors.merchandising_blocks',    
84
-    
87
+    'oscar.apps.promotions.context_processors.merchandising_blocks',
88
+
85
 * Import default settings::
89
 * Import default settings::
86
 
90
 
87
     from oscar.defaults import *
91
     from oscar.defaults import *
88
-    
92
+
89
 * If using Solr, configure it::
93
 * If using Solr, configure it::
90
 
94
 
91
     HAYSTACK_SITECONF = 'oscar.search_sites'
95
     HAYSTACK_SITECONF = 'oscar.search_sites'
92
     HAYSTACK_SEARCH_ENGINE = 'solr'
96
     HAYSTACK_SEARCH_ENGINE = 'solr'
93
     HAYSTACK_SOLR_URL = 'http://127.0.0.1:8080/solr'
97
     HAYSTACK_SOLR_URL = 'http://127.0.0.1:8080/solr'
94
     HAYSTACK_INCLUDE_SPELLING = True
98
     HAYSTACK_INCLUDE_SPELLING = True
95
-    
96
-Now fill in the normal settings (not related to django-oscar) within ``settings.py`` - eg ``DATABASES``, ``TIME_ZONE`` etc    
99
+
100
+Now fill in the normal settings (not related to django-oscar) within ``settings.py`` - eg ``DATABASES``, ``TIME_ZONE`` etc
97
 
101
 
98
 A vanilla install of django-oscar is now ready, you could now finish the process by running::
102
 A vanilla install of django-oscar is now ready, you could now finish the process by running::
99
 
103
 

+ 6
- 1
docs/source/getting_started.rst 查看文件

38
     'oscar.apps.search',
38
     'oscar.apps.search',
39
     'oscar.apps.voucher',
39
     'oscar.apps.voucher',
40
 
40
 
41
+Add the following to your `INSTALLED_APPS` if you intend to use the default
42
+oscar dashboard templates::
43
+
44
+    'django_sorting',
45
+
41
 Add::
46
 Add::
42
 
47
 
43
     from oscar.defaults import *
48
     from oscar.defaults import *
52
 Demo shop
57
 Demo shop
53
 ---------
58
 ---------
54
 
59
 
55
-A demo shop is in preparation at the moment and will be available soon.  
60
+A demo shop is in preparation at the moment and will be available soon.
56
 
61
 
57
 Real shop
62
 Real shop
58
 ---------
63
 ---------

Loading…
取消
儲存