settings-customize.py  starts with:

DIRNAME = os.path.abspath(os.path.dirname(__file__).decode('utf-8'))

When I'm developing on my local computer (LOCAL_DEV = True) this gets
me the directory in which I started the local server (with manage.py
runserver), but what is it when the store is deployed??

In general, it seems to me that a number of settings will change
between test and deployment. Shouldn't they be isolated in an 'if
LOCAL_DEV' clause?

In settings.py  I have:

if LOCAL_DEV:
    HOME_DIR = './'   #same as DIRNAME on windows
    SATCHMO_DIR = 'E:/python25/lib/site-packages/satchmo'
    STATIC_DIR = 'E:/sartsite'
    TEMPLATE_DIR = 'E:/sartsite/templates'
    MEDIA_ROOT = 'E:/sartsite/static/' #css
    LANGUAGE_CODE = "us"    # windows
    DATABASE_ENGINE = 'sqlite3'   .
    DATABASE_NAME = 'shopdb'  # Or path to database file if using
sqlite3.
    DATABASE_USER = ''             # Not used with sqlite3.
    DATABASE_PASSWORD = ''         # Not used with sqlite3.
    DATABASE_HOST = ''             # Set to empty string for
localhost. Not used with sqlite3.
    DATABASE_PORT = ''             # Set to empty string for default.
Not used with sqlite3.
else:
   .....

Note that I'm using windows/sqlite for development and linux/mysql for
deployment.

Any thoughts?

Karl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to