Hey Guys, I'm trying to setup the demo store just as it is at: http://demo.satchmoproject.com/store/
I've gotten everything to work, except the language choices. I've followed: http://www.satchmoproject.com/docs/svn/translation.html#content-translations But I can't seem to get anything listed in the change language drop down list. I've also activated it in the site settings of the admin, so that the user can change language but that did not help. Actually I copied the locale folder from the satchmo directory and put it in my project folder, but that did not seem to work either. How can I debug this? Below I am posting my settings.py and config.py. I did notice one thing that might be strange...there is no config.pyc which means that python never "compiled" that file? SETTINGS.PY: import os DIRNAME = os.path.abspath(os.path.dirname(__file__)) LOCAL_DEV = True MEDIA_ROOT = os.path.join(DIRNAME, 'static/') #MEDIA_ROOT = '/home/yohan/tmp/store/mystore/static/' MIDDLEWARE_CLASSES = ( "django.middleware.common.CommonMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.locale.LocaleMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.middleware.doc.XViewMiddleware", "threaded_multihost.middleware.ThreadLocalMiddleware", "satchmo_store.shop.SSLMiddleware.SSLRedirect") TEMPLATE_DIRS = (os.path.join(DIRNAME, "templates")) TEMPLATE_CONTEXT_PROCESSORS = ('satchmo_store.shop.context_processors.settings', 'django.core.context_processors.auth', 'django.core.context_processors.i18n' #'satchmo_ext.recentlist.context_processors.recent_products', ) INSTALLED_APPS = ( 'django.contrib.sites', 'satchmo_store.shop', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.comments', 'django.contrib.sessions', 'django.contrib.sitemaps', 'registration', 'keyedcache', 'livesettings', 'l10n', 'sorl.thumbnail', 'satchmo_store.contact', 'tax', 'tax.modules.no', 'tax.modules.area', 'tax.modules.percent', 'shipping', 'product', 'payment', 'payment.modules.giftcertificate', 'satchmo_utils', 'app_plugins', 'mystore', 'satchmo' ) AUTHENTICATION_BACKENDS = ( 'satchmo_store.accounts.email-auth.EmailBackend', 'django.contrib.auth.backends.ModelBackend' ) SATCHMO_SETTINGS = { 'SHOP_BASE' : '', 'MULTISHOP' : False, #'SHOP_URLS' : patterns ('satchmo_store.shop.views',) } # Load the local settings from local_settings import * # Django settings for mystore project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '[email protected]'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = 'blabla' # 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. # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'America/Chicago' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" #MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = 'http://localhost:8000/static/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'i7w)6ms^0(*kdm5+$hu94*f(siwyc$p&@n_jm9i7$l834o5n=t' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', ) #MIDDLEWARE_CLASSES = ( #'django.middleware.common.CommonMiddleware', #'django.contrib.sessions.middleware.SessionMiddleware', #'django.contrib.auth.middleware.AuthenticationMiddleware', #) ROOT_URLCONF = 'mystore.urls' #TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/ django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. #) #INSTALLED_APPS = ( #'django.contrib.auth', #'django.contrib.contenttypes', #'django.contrib.sessions', #'django.contrib.sites', #) #DATABASE_OPTIONS = { #'init_command' : 'SET NAMES "utf8"', #} CONFIG.PY: from satchmo.configuration import config_get LANGUAGES_AVAILABLE = config_get('LANGUAGE', 'LANGUAGES_AVAILABLE') LANGUAGES_AVAILABLE.add_choice(('en', 'English')) LANGUAGES_AVAILABLE.add_choice(('sv', 'Swedish')) LANGUAGES_AVAILABLE.add_choice(('de', 'German')) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
