- If you would like the latest ble
ading edge release, get it via svn-
+ If you would like the latest bleding edge release, get it via svn-
svn co svn://satchmoproject.com/satchmo/trunk/
2. Ensure that satchmo is on your pythonpath. There are several options for adding Satchmo to the path:
from local_settings import *
-Now that the basic application settings are complete, you will need to
-configure the satchmo specific items stored in local_settings.py.
+ Now that the basic application settings are complete, you will need to
+ configure the satchmo specific items stored in local_settings.py.
Create your customized local_settings.py file::
+6. Create your customized local_settings.py file::
cp local_settings-customize.py local_settings.py
+ Note that if you are installing as an app, you need to copy the local_settings file into your app somewhere. It doesn't **have** to be named local_settings. I often call it "settings_satchmo", but keep in mind that we'll be calling it "local_settings" throughout the instructions.
7. Edit this local_settings.py file for your setup. The following values need to be changed::
DATABASE_NAME = 'Your DB Name Here'
DATABASE_PASSWORD = 'Your DB Password Here'
DATABASE_USER = 'Your DB User Here'
SECRET_KEY = 'Your secret key here'
+ Note that if you are running as an app, you probably already have database settings in your settings file. But you will need to go through the local_settings file and make sure that everything in there is commented or uncommented appropriately.
- Any other values that are applicable to your setup
+ Commonly, this will include entries such as::
+ DJANGO_PROJECT="Name of your app"
+ You may not need these, they are probably set in your master app::
+ Lastly, note the SHOP_BASE entry. If you are running Satchmo as an app, you **always** want to have shop_base=''. That's because you will be loading the satchmo urls from your app master urls.py file.
+8. If you are running as an app, you will need to merge a few settings from the satchmo settings.py files into your master settings file. By "merge", we mean that you should intelligently add them to the settings, without duplicating things. Merge these settings::
+ Now, add the satchmo urls to your app. Edit your root urls.py file, and add this line::
+ (r'^shop/', include('satchmo.urls')),
+ Copy (for windows) or symlink satchmo/tax and satchmo/load_data.py into the root of your app.
The next step can erase data in the satchmo database. Be sure to have a backup of any critical data.
8. Load the sample data::
+. Load the sample data::
9. When prompted, enter Yes to all the questions. This script will also install the i18n data.
+. When prompted, enter Yes to all the questions. This script will also install the i18n data.
10. Start up the sample webserver to see your store::
+. Start up the sample webserver to see your store::
python manage.py runserver
11. In order to see your sample store, point your browser to::
+. In order to see your sample store, point your browser to::
http://localhost/shop to see your store
12. If you want to see the admin interface, point your browser to::
+. If you want to see the admin interface, point your browser to::