I worked out something that seemed to solve the problem shortly after
posting here and have just read this response - thanks Chris!
What I did was...
export PYTHONPATH=/usr/lib/python2.5/site-packages:/home/gjeos/
projects
sudo usermod -a -G www-data gjeos
nano settings.py
DJANGO_SETTINGS_MODULE = 'mysite.settings'
ROOT_URLCONF = 'mysite.urls'
nano urls.py
urlpatterns += patterns(...)
[forgot to add the plus (i.e. "+") sign]
python manage.py syncdb
...then deleted contents of the django_cache folder (which solved my
cache not responding errors (using file-based cache)), and so far
things seem OK (though I am still having problem importing/exporting
inventory which have images and other issues).
Thanks, hope this helps others.
On Sep 6, 2:46 pm, Chris Moffitt <[email protected]> wrote:
> My guess is that you don't have mysite on your python path. Try making sure
> that is the case, then try:
> DJANGO_PROJECT = 'mysite'
> ROOT_URLCONF = 'mysite.urls'
>
> One other thing, make sure you do have an __init__.py file in your mysite
> directory.
>
> -Chris
>
> On Sun, Sep 6, 2009 at 2:05 AM, bab <[email protected]> wrote:
>
> > Hi,
>
> > I'm new to Satchmo and following
> >http://www.satchmoproject.com/docs/svn/new_installation.html
> > am able to get a site working with Apche+mod_wsgi but only if I use
> > ROOT_URLCONF = 'satchmo_store.urls' in settings.py (around line 88 of
> > settings.py as copied and modified from satchmo base store example),
> > whereas if I do "django-admin.py startproject mysite" in Django it
> > should be ROOT_URLCONF = 'mysite.urls'.
>
> > How can I set ROOT_URLCONF='mysite.urls' and get Satchmo to work???
>
> > My store layout is...
>
> > ~/projects/mysite
> > |-- local_settings.py <--- via to/satchmo/projects/base/, then
> > modified
> > |-- manage.py
> > |-- media/
> > | |-admin/ <--- symlink to Django admin media
> > |-- satchmo.log
> > |-- settings.py <--- via to/satchmo/projects/base/,
> > then
> > modified
> > |-- static/ <--- via satchmo_copy_static
> > | |-css/
> > | |-images/
> > | |-js/
> > |-templates/ <--- currently empty
> > `-- urls.py
>
> > settings.py (have tried changing line8 to satchmo_store
> > ----------------
> > 2. # If you have an existing project, then ensure that you modify
> > local_settings-c$
> > 3. # and import it from your main settings file. (from local_settings
> > import *)
> > 4. import os
> > 5.
> > 6. DIRNAME = os.path.abspath(os.path.dirname(__file__).decode
> > ('utf-8'))
> > 7.
> > 8. DJANGO_PROJECT = 'satchmo'
> > 9. DJANGO_SETTINGS_MODULE = 'satchmo_store.settings'
> > 10.
> > 11. LOCAL_DEV = True
> > 12. DEBUG = True
> > 13. TEMPLATE_DEBUG = DEBUG
> > 14.
> > 15. ADMINS = (
> > 16. ('', ''),
> > 17. )
> > 18.
> > 19. MANAGERS = ADMINS
> > 20.
> > 21. DATABASE_ENGINE = '' # 'postgresql_psycopg2',
> > 'postgresql', 'mysql', $
> > 22. # The following variables should be configured in your
> > local_settings.py file
> > 23. #DATABASE_NAME = '' # Or path to database file if
> > using sqlite3.
> > 24. #DATABASE_USER = '' # Not used with sqlite3.
> > 25. #DATABASE_PASSWORD = '' # Not used with sqlite3.
> > 26. DATABASE_HOST = '' # Set to empty string for
> > localhost. Not used wi$
> > 27. DATABASE_PORT = '' # Set to empty string for default.
> > Not used with$
> > 28.
> > 29. # Local time zone for this installation. All choices can be found
> > here:
> > 30. #
> >http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATE...
> > 31. TIME_ZONE = 'Europe/London'
> > 32.
> > 33. # Language code for this installation. All choices can be found
> > here:
> > 34. #http://www.i18nguy.com/unicode/language-identifiers.html
> > 35. # For windows, you must use 'us' instead
> > 36. LANGUAGE_CODE = 'en-gb'
> > 37.
> > 38. SITE_ID = 1
> > 39.
> > 40. # Absolute path to the directory that holds media.
> > 41. # Example: "/home/media/media.lawrence.com/"
> > 42. # Image files will be stored off of this path.
> > 43. MEDIA_ROOT = os.path.join(DIRNAME, 'static/')
> > 44. # URL that handles the media served from MEDIA_ROOT. Use a
> > trailing slash.
> > 45. # Example: "http://media.lawrence.com/"
> > 46. MEDIA_URL = '/static/'
> > 47. # URL that handles the media served from SSL. You only need to
> > set this
> > 48. # if you are using a non-relative url.
> > 49. # Example: "https://media.lawrence.com"
> > 50. # MEDIA_SECURE_URL = "https://foo.com/"
> > 51. # URL prefix for admin media -- CSS, JavaScript and images. Make
> > sure to use a
> > 52. # trailing slash.
> > 53. # Examples: "http://foo.com/media/", "/media/".
> > 54. ADMIN_MEDIA_PREFIX = '/media/admin/'
> > 55.
> > 56. # Make this unique, and don't share it with anybody.
> > 57. # SECRET_KEY = ''
> > 58.
> > 59. # List of callables that know how to import templates from various
> > sources.
> > 60. TEMPLATE_LOADERS = (
> > 61. 'django.template.loaders.filesystem.load_template_source',
> > 62.
> > 'django.template.loaders.app_directories.load_template_source',
> > 63. # 'django.template.loaders.eggs.load_template_source',
> > 64. )
> > 65.
> > 66. MIDDLEWARE_CLASSES = (
> > 67. "django.middleware.common.CommonMiddleware",
> > 68. "django.contrib.sessions.middleware.SessionMiddleware",
> > 69. "django.middleware.locale.LocaleMiddleware",
> > 70. "django.contrib.auth.middleware.AuthenticationMiddleware",
> > 71. "django.middleware.doc.XViewMiddleware",
> > 72. "threaded_multihost.middleware.ThreadLocalMiddleware",
> > 73. "satchmo_store.shop.SSLMiddleware.SSLRedirect",
> > 74. # "satchmo_ext.recentlist.middleware.RecentProductMiddleware",
> > 75. )
> > 76.
> > 77. #this is used to add additional config variables to each request
> > 78. # NOTE: If you enable the recent_products context_processor, you
> > MUST have the
> > 79. # 'satchmo_ext.recentlist' app installed.
> > 80. TEMPLATE_CONTEXT_PROCESSORS = (
> > 81. 'django.core.context_processors.auth',
> > 82. 'django.core.context_processors.media',
> > 83. # 'satchmo_ext.recentlist.context_processors.recent_products',
> > 84. 'satchmo_store.shop.context_processors.settings',
> > 85. 'django.core.context_processors.i18n'
> > 86. )
> > 87.
> > 88. ROOT_URLCONF = 'satchmo_store.urls' #
> > oringinally 'mysite.urls'
> > 89.
> > 90. TEMPLATE_DIRS = (
> > 91. # Put strings here, like "/home/html/django_templates".
> > 92. # Always use forward slashes, even on Windows.
> > 93. os.path.join(DIRNAME, "templates"),
> > 94. )
> > 95.
> > 96. INSTALLED_APPS = (
> > 97. 'satchmo_store.shop',
> > 98. 'django.contrib.admin',
> > 99. 'django.contrib.admindocs',
> > 100. 'django.contrib.auth',
> > 101. 'django.contrib.contenttypes',
> > 102. 'django.contrib.comments',
> > 103. 'django.contrib.sessions',
> > 104. 'django.contrib.sitemaps',
> > 105. 'django.contrib.sites',
> > 106. 'registration',
> > 107. 'sorl.thumbnail',
> > 108. #'satchmo',
> > 109. 'keyedcache',
> > 110. 'livesettings',
> > 111. 'satchmo_store.contact',
> > 112. 'product',
> > 113. # ****
> > 114. # * Optional feature, product brands
> > 115. # * Uncomment below, and add the brand url in your
> > satchmo_urls setting
> > 116. # * usually in local_settings.py
> > 117. # ****
> > 118. #'satchmo_ext.brand'
> > 119. 'shipping',
> > 120. 'payment',
> > 121. 'payment.modules.giftcertificate',
> > 122. 'satchmo_store.contact.supplier',
> > 123. # *****
> > 124. # * Optional feature - admin toolbar for satchmo
> > 125. # * Uncomment below to enable
> > 126. # *
> > 127. # *****
> > 128. #'satchmo_ext.satchmo_toolbar',
> > 129. 'satchmo_utils',
> > 130. 'satchmo_utils.thumbnail',
> > 131. 'l10n',
> > 132. 'tax',
> > 133. 'tax.modules.no',
> > 134. 'tax.modules.area',
> > 135. 'tax.modules.percent',
> > 136. # 'satchmo_ext.recentlist',
> > 137. 'satchmo_ext.wishlist',
> > 138. 'satchmo_ext.upsell',
> > 139. 'satchmo_ext.productratings',
> > 140. 'app_plugins',
> > 141. # ****
> > 142. # * Optional Feature, Tiered shipping
> > 143. # * uncomment below to make that shipping module available in
> > your live site
> > 144. # * settings page. enable it there, then configure it in the
> > 145. # * admin/tiered section of the main admin page.
> > 146. # ****
> > 147. #'shipping.modules.tiered'
> > 148. # ****
> > 149. # * Optional feature newsletter
> > 150. # ****
> > 151. #'satchmo_ext.newsletter',
> > 152. # ****
> > 153. # * Optional feature product feeds
> > 154. # * These are usually for googlebase
> > 155. # ****
> > 156. #'satchmo_ext.product_feeds',
> > 157. # ****
> > 158. # * Optional feature, tiered pricing
> > 159. # * uncomment below, then set up in your main admin page.
> > 160. # ****
> > 161. #'satchmo_ext.tieredpricing',
> > 162. # ****
> > 163. # * Highly recommended app - use this to have access to the
> > great
> > 164. # * "Jobs" system. See
> >http://code.google.com/p/django-command-extensions/
> > 165. # * Make sure to set up your crontab to run the daily, hourly
> > and monthly
> > 166. # * jobs.
> > 167. # ****
> > 168. #'django_extensions',
> > 169.
> > 170. )
> > 171.
> > 172. AUTHENTICATION_BACKENDS = (
> > 173. 'satchmo_store.accounts.email-auth.EmailBackend',
> > 174. 'django.contrib.auth.backends.ModelBackend',
> > 175. )
> > 176.
> > 177. AUTH_PROFILE_MODULE='contact.Contact'
> > 178. LOGIN_REDIRECT_URL = '/accounts/'
> > 179.
> > 180. # Locale path settings. Needs to be set for Translation
> > compilation.
> > 181. # It can be blank
> > 182. # LOCALE_PATHS = ""
> > 183.
> > 184. # Language code for this installation. All choices can be found
> > here:
> > 185. #http://www.i18nguy.com/unicode/language-identifiers.html
> > 186. LANGUAGE_CODE = 'en-gb'
> > 187.
> > 188. # Languages for your site. The language name
> > 189. # should be the utf-8 encoded local name for the language.
> > 190. gettext_noop = lambda s:s
> > 191.
> > 192. LANGUAGES = (
> > 193. ('en', gettext_noop('English')),
> > 194. )
> > 195.
> > 196. #from
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---