django - AttributeError: 'tuple' object has no attribute 'startswith' -


completely new coding, sorry simple questions. i'm getting attribute error when running python manage.py collectstatic. i'm editing settings.py. have django 1.5.1 , python 2.7.5. appreciated , in advance (again).

file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/posixpath.py", line 61, in isabs     return s.startswith('/') attributeerror: 'tuple' object has no attribute 'startswith' 

now, of course i've never messed posixpath.py.

here's contents of settings.py(minus db info , such):

media_root = "os.path.join(os.path.dirname(os.path.dirname(__file___))", "static", "media"  media_url = '/media/'  static_root = "os.path.join(os.path.dirname(os.path.dirname(__file__))", "static", "static-only"  static_url = '/static/'  staticfiles_dirs = (     "os.path.join(os.path.dirname(os.path.dirname(__file__))", "static", "static", )  staticfiles_finders = (     'django.contrib.staticfiles.finders.filesystemfinder',     'django.contrib.staticfiles.finders.appdirectoriesfinder', #    'django.contrib.staticfiles.finders.defaultstoragefinder', )  secret_key = 'xxxxxxxxx'  template_loaders = (     'django.template.loaders.filesystem.loader',     'django.template.loaders.app_directories.loader', #     'django.template.loaders.eggs.loader', )  middleware_classes = (     'django.middleware.common.commonmiddleware',     'django.contrib.sessions.middleware.sessionmiddleware',     'django.middleware.csrf.csrfviewmiddleware',     'django.contrib.auth.middleware.authenticationmiddleware',     'django.contrib.messages.middleware.messagemiddleware',     'django.middleware.clickjacking.xframeoptionsmiddleware', )  root_urlconf = 'mvp_landing.urls'  wsgi_application = 'mvp_landing.wsgi.application'  template_dirs = (     os.path.join(os.path.dirname(os.path.dirname(__file__)), "static", "templates", )  installed_apps = (     'django.contrib.auth',     'django.contrib.contenttypes',     'django.contrib.sessions',     'django.contrib.sites',     'django.contrib.messages',     'django.contrib.staticfiles',     'django.contrib.admin',     'django.contrib.admindocs',     'south',     'join',        'django.contrib.staticfiles.finders.appdirectoriesfinder', ) 

you wrong. shouldn't turn code in quotes. watch here how should be

it should like:

staticfiles_dirs = (     os.path.join(os.path.dirname(__file__), "static") ) 

also belongs media_root , static_root settings.


Comments

Popular posts from this blog

HTTP/1.0 407 Proxy Authentication Required PHP -

curl - PHP fsockopen help required -

c# - Resource not found error -