env:
- pycharm 2.7.3
- django 1.4.5
- python 2.7.5
- windows 7 32bit
just pic show below, pycharm lost collectstatic task of manage.py script of django project, seems have not strange.
project normal:
matter?
my project settings.py file:
#!/usr/bin/env python # -*- coding: utf-8 -*- # django settings bae_django2 project. import os debug = true template_debug = debug admins = ( # ('your name', 'your_email@example.com'), ) managers = admins if 'server_software' in os.environ: bae.core import const databases = { 'default': { 'engine': 'django.db.backends.mysql', # add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'name': 'nnyusjawdsfjfctobvqu', # or path database file if using sqlite3. 'user': const.mysql_user, # not used sqlite3. 'password': const.mysql_pass, # not used sqlite3. 'host': const.mysql_host, # set empty string localhost. not used sqlite3. 'port': const.mysql_port, # set empty string default. not used sqlite3. } } else: databases = { 'default':{ 'engine': 'django.db.backends.mysql', # add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'name': 'nnyusjawdsfjfctobvqu', # or path database file if using sqlite3. 'user': 'root', # not used sqlite3. 'password': '123456', # not used sqlite3. 'host': '127.0.0.1', # set empty string localhost. not used sqlite3. 'port': '3306', # set empty string default. not used sqlite3. } } # hosts/domain names valid site; required if debug false # see https://docs.djangoproject.com/en/1.4/ref/settings/#allowed-hosts allowed_hosts = [] # local time zone installation. choices can found here: # http://en.wikipedia.org/wiki/list_of_tz_zones_by_name # although not choices may available on operating systems. # in windows environment must set system time zone. time_zone = 'america/chicago' # language code installation. choices can found here: # http://www.i18nguy.com/unicode/language-identifiers.html language_code = 'en-us' site_id = 1 # if set false, django make optimizations not # load internationalization machinery. use_i18n = true # if set false, django not format dates, numbers , # calendars according current locale. use_l10n = true # if set false, django not use timezone-aware datetimes. use_tz = true # site root, add honghe site_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # absolute filesystem path directory hold user-uploaded files. # example: "/home/media/media.lawrence.com/media/" media_root = '' # url handles media served media_root. make sure use # trailing slash. # examples: "http://media.lawrence.com/media/", "http://example.com/media/" media_url = '' # absolute path directory static files should collected to. # don't put in directory yourself; store static files # in apps' "static/" subdirectories , in staticfiles_dirs. # example: "/home/media/media.lawrence.com/static/" # static_root = '' static_root = os.path.join(site_root, 'static').replace('\\','/') # url prefix static files. # example: "http://media.lawrence.com/static/" static_url = '/static/' # additional locations of static files staticfiles_dirs = ( # put strings here, "/home/html/static" or "c:/www/django/static". # use forward slashes, on windows. # don't forget use absolute paths, not relative paths. os.path.join(os.path.dirname(__file__), 'static').replace('\\','/'), ) # list of finder classes know how find static files in # various locations. staticfiles_finders = ( 'django.contrib.staticfiles.finders.filesystemfinder', 'django.contrib.staticfiles.finders.appdirectoriesfinder', # 'django.contrib.staticfiles.finders.defaultstoragefinder', ) # make unique, , don't share anybody. secret_key = 'tobvndv#nd-q9yf(igo7xh&@i3_hqm^rh_xwoujte@pjmo#*8w' # list of callables know how import templates various sources. 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', # uncomment next line simple clickjacking protection: # 'django.middleware.clickjacking.xframeoptionsmiddleware', ) root_urlconf = 'bae_django2.urls' # python dotted path wsgi application used django's runserver. wsgi_application = 'bae_django2.wsgi.application' import os template_dirs = (os.path.join(site_root, 'templates').replace('\\','/'),) installed_apps = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # uncomment next line enable admin: # 'django.contrib.admin', # uncomment next line enable admin documentation: # 'django.contrib.admindocs', 'hello', 'books', ) # sample logging configuration. tangible logging # performed configuration send email # site admins on every http 500 error when debug=false. # see http://docs.djangoproject.com/en/dev/topics/logging # more details on how customize logging configuration. logging = { 'version': 1, 'disable_existing_loggers': false, 'filters': { 'require_debug_false': { '()': 'django.utils.log.requiredebugfalse' } }, 'handlers': { 'mail_admins': { 'level': 'error', 'filters': ['require_debug_false'], 'class': 'django.utils.log.adminemailhandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'error', 'propagate': true, }, } }
this caused change in settings.py
file. possible way can fathom have caused this, if there change in installed_apps
tuple. please compare tuple in project , new project , see if there changes in django apps installed. can tell since, cannot see settings.py
file.
Comments
Post a Comment