这是我的第一个 python 项目。我在设置其他人编写的项目时遇到问题。我得到以下'Settings' object has no attribute 'FOXYCART_URL'
堆栈跟踪:
Environment:
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.flatpages',
'sorl.thumbnail',
'chunks',
'staging',
'south')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
Exception Type: AttributeError at /
Exception Value: 'Settings' object has no attribute 'FOXYCART_URL'
我想知道我需要在哪里设置FOXYCART_URL
属性?