When I do python manage.py syncdb
,it create tables and finaly has problem in the folowing :
[can any one point to me how to correct it? thx ]


raceback (most recent call last):
 File "manage.py", line 11, in <module>
   execute_manager(settings)
 File "C:\Python25\lib\site-packages\django-0.95.1-py2.5.egg\django
\core\manage
ent.py", line 1319, in execute_manager
   execute_from_command_line(action_mapping, argv)
 File "C:\Python25\lib\site-packages\django-0.95.1-py2.5.egg\django
\core\manage
ent.py", line 1243, in execute_from_command_line
   action_mapping[action]()
 File "C:\Python25\lib\site-packages\django-0.95.1-py2.5.egg\django
\core\manage
ent.py", line 474, in syncdb
   cursor.execute(statement)
 File "C:\Python25\lib\site-packages\django-0.95.1-py2.5.egg\django\db
\backends
util.py", line 12, in execute
   return self.cursor.execute(sql, params)
 File "C:\Python25\lib\site-packages\django-0.95.1-py2.5.egg\django\db
\backends
mysql\base.py", line 35, in execute
   return self.cursor.execute(sql, params)
 File "C:\Python25\lib\site-packages\MySQLdb\cursors.py", line 166, in
execute
   self.errorhandler(self, exc, value)
 File "C:\Python25\lib\site-packages\MySQLdb\connections.py", line 35,
in defau
terrorhandler
   raise errorclass, errorvalue
mysql_exceptions.OperationalError: (1005, "Can't create table '.\
\satchmo2\\#sq
-7d0_d3.frm' (errno: 121)")


=================================================================
my local_settings.py:
# This file is used to store your site specific settings
# for database access.
# It also store satchmo unique information
#
#
# Modify this file to reflect your settings, then rename it to
# local_settings.py
#
# This file is helpful if you have an existing Django project.
# These are specific things that Satchmo will need.
# you MUST make sure these settings are imported from your project
settings file!

import os
import logging
DIRNAME = os.path.dirname(__file__)

# This is useful, since satchmo is not the "current directory" like
load_data expects.
SATCHMO_DIRNAME = 'C:\Python25\Lib\site-packages\Django-0.95.1-
py2.5.egg\django\bin\satchmo'

# Only set these if Satchmo is part of another Django project
SITE_NAME = 'angeltt'
ROOT_URLCONF = 'satchmo'
MEDIA_ROOT = os.path.join(DIRNAME, 'static/')
DJANGO_PROJECT = 'satchmo'
DJANGO_SETTINGS_MODULE = 'satchmo.settings'

# Make sure Satchmo templates are added to your existing templates
TEMPLATE_DIRS = (
    os.path.join(SATCHMO_DIRNAME, "templates"),
)

# Make sure Satchmo context processor is called
#TEMPLATE_CONTEXT_PROCESSORS +=
('satchmo.shop.context_processors.settings')

DATABASE_NAME = 'satchmo2'
DATABASE_PASSWORD = '123456'
DATABASE_USER = 'root'
SECRET_KEY = '11kaidfddkfdfkdkfdkfdkfkdfkdkfdfd'

### Credit Card Module ###
# If you are processing credit cards, this is where you should set the
appropriate modules
# to be called during the checkout process.
# Right now dummy and authorize.net are the only ones included
CREDIT_PROCESSOR = 'satchmo.payment.modules.dummy'

#### For Authorize.net ######
#AUTHORIZE_NET_CONNECTION = 'https://test.authorize.net/gateway/
transact.dll'
#AUTHORIZE_NET_TEST = 'TRUE'
#AUTHORIZE_NET_LOGIN = ''
#AUTHORIZE_NET_TRANKEY = ''

#### For PayPal Web Payments Standard ####
#PAYPAL_POST_URL = 'https://www.paypal.com/cgi-bin/webscr' #
Production
#PAYPAL_POST_URL = 'https://www.sandbox.paypal.com/cgi-bin/webscr' #
Testing
#PAYPAL_BUSINESS = '' # The email address for your PayPal account.
#PAYPAL_CURRENCY_CODE = '' # If this is empty or invalid, PayPal
assumes USD.
#PAYPAL_RETURN_ADDRESS = '' # This is the URL that PayPal sends the
user to after payment.


#### Satchmo unique variables ####
#This is the base url for the shop.  Only include a leading slash
#examples: '/shop' or '/mystore'
#If you want the shop at the root directory, set SHOP_BASE = ''
SHOP_BASE = '/shop'

# Currency symbol to use
CURRENCY = '$'

#These are used when loading the test data
SITE_DOMAIN = "example.com"
SITE_NAME = "My Site"

#Shipping Modules to enable
SHIPPING_MODULES = ['satchmo.shipping.modules.per',
'satchmo.shipping.modules.flat']

#Configure logging
"""
LOGDIR = "/path/to/log"
LOGFILE = "satchmo.log"
logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s %(name)-12s %(levelname)-8s %
(message)s',
                    datefmt='%a, %d %b %Y %H:%M:%S',
                    filename=os.path.join(LOGDIR, LOGFILE),
                    filemode='w')

# define a Handler which writes INFO messages or higher to the
sys.stderr
fileLog = logging.FileHandler(os.path.join(LOGDIR, LOGFILE), 'w')
fileLog.setLevel(logging.DEBUG)
# set a format which is simpler for console use
formatter = logging.Formatter('%(asctime)s %(name)-12s: %
(levelname)-8s %(message)s')
# tell the handler to use this format
fileLog.setFormatter(formatter)
# add the handler to the root logger
logging.getLogger('').addHandler(fileLog)
logging.info("Satchmo Started")
"""


================================================================
my settings.py just same as settings_customize.py


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to