django 1.8.17 pythoh 2.7 程序跟踪单步执行时能提示保存成功,没有错误,但是执行时却总是提示: argument of type 'int' is not iterable

cwxw 发布于 2018/08/02 09:01
阅读 815
收藏 0

我把需要的代码基本贴上来了,由于刚刚开始学django和python,实在不知道为什么会发生这种情况,跟踪执行的时候没有错误,但是直接执行就会显示下面的错误,请帮忙看看,非常感谢,已经困扰我好几天了。

下面是form:

class ldqynewForm(forms.ModelForm):
    #ModelForm生成downlist下拉框
    def __init__(self,*args,**kwargs):
        super(ldqynewForm,self).__init__(*args,**kwargs)
        self.fields['db1'].widget.choices = dbxx.objects.all().values_list('dbhh','dbhm')
        self.fields['db2'].widget.choices = dbxx.objects.all().values_list('dbhh', 'dbhm')
    class Meta:
        model=dj_ldqy
        exclude={'dbhh',}


下面是模板部分model:

class dj_ldqy(models.Model):
    nsrsbh =models.CharField(primary_key=True,max_length=20,verbose_name='客户ID')
    nsrmc =models.CharField(max_length=40, verbose_name='客户名称')
    tdmj = models.DecimalField(max_digits=18, decimal_places=2,verbose_name='土地面积')
    jjmj =models.DecimalField(max_digits=18, decimal_places=2,verbose_name='建筑面积')
    zymj =models.DecimalField(max_digits=18, decimal_places=2,verbose_name='自用面积')
    czmj = models.DecimalField(max_digits=18, decimal_places=2, verbose_name='出租面积')
    xzmj = models.DecimalField(max_digits=18, decimal_places=2, verbose_name='闲置面积')
    db1 =models.ForeignKey(dbxx,verbose_name='电表1',related_name='db_1',on_delete=models.CASCADE)
    db2 =models.ForeignKey(dbxx,verbose_name='电表2',related_name='db_2',on_delete=models.CASCADE)
    zgswksfj_dm=models.CharField(max_length=11,verbose_name='管理ID')
    zgswksfj_mc = models.CharField(max_length=40, verbose_name='管理名称')
    zdylb_dm = models.CharField(max_length=12, verbose_name='自定义代码')
    zdylb_mc =models.CharField(max_length=40,verbose_name='自定义名称')
    jdxz_dm = models.CharField(max_length=9, verbose_name='街道乡镇代码')
    jdxz_mc=models.CharField(max_length=40,verbose_name='街道乡镇')
    xgrq =models.DateField(verbose_name='修改日期')
    xgr =models.ForeignKey(User,verbose_name='修改人',on_delete=models.CASCADE)
    def __unicode__(self):
        return self.nsrmc
    class Meta:
        ordering =['nsrsbh']
        verbose_name = '纳税人识别号'
        verbose_name_plural = verbose_name

 

以下是views中的ldqysave函数:
def ldqysave(request):
    #ldqy_object = dj_ldqy.objects.get(nsrsbh=st_nsrsbh)
    if request.method == 'POST':
            #ldqyif = ldqynewForm(req.POST)
            # 获取表单用户密码
        form = ldqynewForm(request.POST)
        ldqyformnew=form.save(commit=False)
        if form.is_valid():
            ldqyformnew.save()
            return HttpResponse('保存成功!')
            
    else:
        form = ldqynewForm()
        return render_to_response('ldqynew.html', {'djxx_qd': form,})


以下是模板信息templates:

<?xml version="1.0" encoding="UTF-8"?>
{% load staticfiles %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="{% static 'css/admin.css' %}" type="text/css" rel="stylesheet">
</HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0.5>
    <form action='/ldqysave/' method = 'post' enctype="multipart/form-data",target='/mainbody'>
    {% csrf_token %}
    {{djxx_qd.as_table}}
    <input type="submit" value = "提交" />
</form>
</TABLE>
</table>
</body>
</html>

以下是执行时的错误error 代码:

TypeError at /ldqysave/
argument of type 'int' is not iterable
Request Method:    POST
Request URL:    http://127.0.0.1:8000/ldqysave/
Django Version:    1.8.17
Exception Type:    TypeError
Exception Value:    
argument of type 'int' is not iterable
Exception Location:    C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\backends\oracle\base.py in _rowfactory, line 569
Python Executable:    C:\mydjango\venv\Scripts\python.exe
Python Version:    2.7.14
Python Path:    
['C:\\mydjango\\untitled',
 'C:\\mydjango\\untitled',
 'C:\\Windows\\system32\\python27.zip',
 'C:\\mydjango\\venv\\DLLs',
 'C:\\mydjango\\venv\\lib',
 'C:\\mydjango\\venv\\lib\\plat-win',
 'C:\\mydjango\\venv\\lib\\lib-tk',
 'C:\\mydjango\\venv\\Scripts',
 'C:\\Python27\\Lib',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\Lib\\lib-tk',
 'C:\\mydjango\\venv',
 'C:\\mydjango\\venv\\lib\\site-packages',
 'C:\\mydjango\\venv\\lib\\site-packages\\mysql_python-1.2.5-py2.7-win32.egg',
 'C:\\mydjango\\venv\\lib\\site-packages\\django-1.8.17-py2.7.egg',
 'C:\\mydjango\\venv\\lib\\site-packages\\requests-2.18.4-py2.7.egg',
 'C:\\Program Files\\JetBrains\\PyCharm 2017.3.4\\helpers\\pycharm_matplotlib_backend']
Server time:    Thu, 2 Aug 2018 00:49:05 +0000
Traceback Switch to copy-and-paste view

C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\core\handlers\base.py in get_response
                                response = wrapped_callback(request, *callback_args, **callback_kwargs) ...
? Local vars
C:\mydjango\untitled\djangotest\views.py in ldqysave
                    ldqyformnew=form.save(commit=False) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\forms\models.py in save
                                         construct=False) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\forms\models.py in save_instance
                if form.errors: ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\forms\forms.py in errors
                        self.full_clean() ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\forms\forms.py in full_clean
                    self._post_clean() ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\forms\models.py in _post_clean
                        self.instance.full_clean(exclude=exclude, validate_unique=False) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\base.py in full_clean
                        self.clean_fields(exclude=exclude) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\base.py in clean_fields
                            setattr(self, f.attname, f.clean(raw_value, self)) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\fields\__init__.py in clean
                    self.validate(value, model_instance) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\fields\related.py in validate
                    if not qs.exists(): ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\query.py in exists
                        return self.query.has_results(using=self.db) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\sql\query.py in has_results
                    return compiler.has_results() ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\sql\compiler.py in has_results
                    return bool(self.execute_sql(SINGLE)) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\models\sql\compiler.py in execute_sql
                            val = cursor.fetchone() ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\utils.py in inner
                            return func(*args, **kwargs) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\backends\oracle\base.py in fetchone
                    return _rowfactory(row, self.cursor) ...
? Local vars
C:\mydjango\venv\lib\site-packages\django-1.8.17-py2.7.egg\django\db\backends\oracle\base.py in _rowfactory
                                if '.' in value: ...
? Local vars
Request information

GET
No GET data
POST
Variable    Value
tdmj    
u'5000'
xgr    
u'1'
zdylb_mc    
u'\u4e8c\u79d1\u5e73\u5b89                           '
jdxz_dm    
u'330726001'
zgswksfj_mc    
u'\u539f\u6d66\u6c5f\u53bf\u56fd\u5bb6\u7a0e\u52a1\u5c40\u7a0e\u6e90\u7ba1\u7406\u4e8c\u79d1'
zdylb_dm    
u'330726100040'
nsrsbh    
u'91330726329995234P'
xgrq    
u'2018-08-02'
czmj    
u'500'
nsrmc    
u'\u6d66\u6c5f\u667a\u5c1a\u6696\u901a\u8bbe\u5907\u6709\u9650\u516c\u53f8'
zymj    
u'3000'
db1    
u'0000000001'
zgswksfj_dm    
u'13307263200'
db2    
u'0000000002'
jdxz_mc    
u'\u6d66\u5357\u8857\u9053'
jjmj    
u'4000'
xzmj    
u'5000'
FILES
No FILES data
COOKIES
No cookie data
META
Variable    Value
TMP    
'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp'
COMPUTERNAME    
'PC-20170913LJKH'
_OLD_VIRTUAL_PATH    
'C:\\instantclient_12_2\\bin;C:\\SAP\\ADO.NET\\dll;C:\\SAP\\OLEDB;C:\\SAP\\ODBC;C:\\SAP\\EFTS-12_5_2\\verity\\_nti40\\filters;C:\\SAP\\EFTS-12_5_2\\verity\\_nti40\\bin;C:\\SAP\\EFTS-12_5_2\\bin;C:\\SAP\\OCS-12_5\\lib3p;C:\\SAP\\OCS-12_5\\dll;C:\\SAP\\OCS-12_5\\bin;C:\\SAP\\SQLRemote\\dll;C:\\SAP\\RPL-12_5\\bin;C:\\SAP\\JS-12_5\\bin;C:\\SAP\\ASE-12_5\\dll;C:\\SAP\\ASE-12_5\\bin;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts;C:\\SAP\\SCC-3_3\\bin;C:\\SAP\\DBISQL-16_0\\bin;C:\\SAP\\DataAccess64\\ADONET\\dll;C:\\SAP\\DataAccess\\ADONET\\dll;C:\\SAP\\DataAccess64\\ODBC\\dll;C:\\SAP\\DataAccess\\ODBC\\dll;C:\\SAP\\OCS-16_0\\lib3p64;C:\\SAP\\OCS-16_0\\lib3p;C:\\SAP\\OCS-16_0\\dll;C:\\SAP\\OCS-16_0\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\instantclient_12_2'
LIB    
'C:\\SAP\\ADO.NET\\dll;C:\\SAP\\DataAccess64\\ADONET\\dll;C:\\SAP\\DataAccess\\ADONET\\dll;C:\\SAP\\OCS-16_0\\lib'
USERDOMAIN    
'PC-20170913LJKH'
wsgi.multithread    
True
SERVER_SOFTWARE    
'WSGIServer/0.1 Python/2.7.14'
PSMODULEPATH    
'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\'
SCRIPT_NAME    
u''
NLS_LANG    
u'.UTF8'
REQUEST_METHOD    
'POST'
LM_LICENSE_FILE    
'C:\\SAP\\SYSAM-1_0\\licenses\\license.dat'
HTTP_ORIGIN    
'http://127.0.0.1:8000'
SERVER_PROTOCOL    
'HTTP/1.1'
SYSTEMROOT    
'C:\\Windows'
_DFX_INSTALL_UNSIGNED_DRIVER    
'1'
RUN_MAIN    
'true'
CONTENT_LENGTH    
'1851'
VIRTUAL_ENV    
'C:\\mydjango\\pjldqy\\venv'
HTTP_REFERER    
'http://127.0.0.1:8000/ldqyedit/?nsrsbh=91330726329995234P&nsrmc=%E6%B5%A6%E6%B1%9F%E6%99%BA%E5%B0%9A%E6%9A%96%E9%80%9A%E8%AE%BE%E5%A4%87%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&zgswskfj_dm=13307263200&swjgmc=%E5%8E%9F%E6%B5%A6%E6%B1%9F%E5%8E%BF%E5%9B%BD%E5%AE%B6%E7%A8%8E%E5%8A%A1%E5%B1%80%E7%A8%8E%E6%BA%90%E7%AE%A1%E7%90%86%E4%BA%8C%E7%A7%91&zdylb_dm=330726100040%20%20%20%20%20%20&zdylb_mc=%E4%BA%8C%E7%A7%91%E5%B9%B3%E5%AE%89%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20&jdxz_dm=330726001&jdxz_mc=%E6%B5%A6%E5%8D%97%E8%A1%97%E9%81%93'
PROCESSOR_ARCHITECTURE    
'x86'
ALLUSERSPROFILE    
'C:\\ProgramData'
TNS_ADMIN    
'C:\\instantclient_12_2'
SYBASE_JRE    
'C:\\SAP\\shared-1_0\\JRE-1_3'
SERVER_PORT    
'8000'
PYCHARM_MATPLOTLIB_PORT    
'60739'
PROGRAMW6432    
'C:\\Program Files'
USERNAME    
'Administrator'
PROMPT    
'(venv) $P$G'
COMSPEC    
'C:\\Windows\\system32\\cmd.exe'
SCC_JAVA_HOME    
'C:\\SAP\\Shared\\SAPJRE-7_1_011_64BIT'
PYTHONPATH    
'C:\\Program Files\\JetBrains\\PyCharm 2017.3.4\\helpers\\pycharm_matplotlib_backend;C:\\mydjango\\untitled'
HTTP_HOST    
'127.0.0.1:8000'
SYBASE_ASE    
'ASE-12_5'
ORA_NCHAR_LITERAL_REPLACE    
u'TRUE'
PATHEXT    
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HTTP_CACHE_CONTROL    
'max-age=0'
HTTP_ACCEPT    
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
COMMONPROGRAMFILES    
'C:\\Program Files (x86)\\Common Files'
wsgi.version    
(1, 0)
MOZ_PLUGIN_PATH    
'C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\plugins\\'
HOMEDRIVE    
'C:'
wsgi.run_once    
False
SYBASE_EJB    
'EJB-12_5'
SYSTEMDRIVE    
'C:'
wsgi.multiprocess    
False
HTTP_ACCEPT_LANGUAGE    
'zh-CN,zh;q=0.8'
DSQUERY    
'PC20170913LJKH'
NUMBER_OF_PROCESSORS    
'4'
SYBROOT    
'C:\\SAP'
PROCESSOR_LEVEL    
'6'
PROCESSOR_ARCHITEW6432    
'AMD64'
OS    
'Windows_NT'
PUBLIC    
'C:\\Users\\Public'
USERPROFILE    
'C:\\Users\\Administrator'
PYTHONIOENCODING    
'UTF-8'
DSLISTEN    
'PC20170913LJKH'
SAP_JRE7_64    
'C:\\SAP\\Shared\\SAPJRE-7_1_011_64BIT'
PROCESSOR_IDENTIFIER    
'Intel64 Family 6 Model 94 Stepping 3, GenuineIntel'
PROGRAMFILES    
'C:\\Program Files (x86)'
PROCESSOR_REVISION    
'5e03'
PATH_INFO    
u'/ldqysave/'
QUERY_STRING    
''
PATH    
'C:\\instantclient_12_2\\bin;C:\\SAP\\ADO.NET\\dll;C:\\SAP\\OLEDB;C:\\SAP\\ODBC;C:\\SAP\\EFTS-12_5_2\\verity\\_nti40\\filters;C:\\SAP\\EFTS-12_5_2\\verity\\_nti40\\bin;C:\\SAP\\EFTS-12_5_2\\bin;C:\\SAP\\OCS-12_5\\lib3p;C:\\SAP\\OCS-12_5\\dll;C:\\SAP\\OCS-12_5\\bin;C:\\SAP\\SQLRemote\\dll;C:\\SAP\\RPL-12_5\\bin;C:\\SAP\\JS-12_5\\bin;C:\\SAP\\ASE-12_5\\dll;C:\\SAP\\ASE-12_5\\bin;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts;C:\\SAP\\SCC-3_3\\bin;C:\\SAP\\DBISQL-16_0\\bin;C:\\SAP\\DataAccess64\\ADONET\\dll;C:\\SAP\\DataAccess\\ADONET\\dll;C:\\SAP\\DataAccess64\\ODBC\\dll;C:\\SAP\\DataAccess\\ODBC\\dll;C:\\SAP\\OCS-16_0\\lib3p64;C:\\SAP\\OCS-16_0\\lib3p;C:\\SAP\\OCS-16_0\\dll;C:\\SAP\\OCS-16_0\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\instantclient_12_2;C:\\mydjango\\venv\\Scripts'
PYTHONUNBUFFERED    
'1'
SYBASE_FTS    
'EFTS-12_5_2'
HTTP_UPGRADE_INSECURE_REQUESTS    
'1'
HTTP_USER_AGENT    
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'
HTTP_CONNECTION    
'keep-alive'
TEMP    
'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp'
ORACLE_HOME    
'C:\\instantclient_12_2'
COMMONPROGRAMFILES(X86)    
'C:\\Program Files (x86)\\Common Files'
PROGRAMFILES(X86)    
'C:\\Program Files (x86)'
wsgi.url_scheme    
'http'
SYBASE    
'C:\\SAP'
LOCALAPPDATA    
'C:\\Users\\Administrator\\AppData\\Local'
HOMEPATH    
'\\Users\\Administrator'
SYBASE_OCS    
'OCS-12_5'
SYBASE_SYSAM    
'SYSAM-1_0'
LOGONSERVER    
'\\\\PC-20170913LJKH'
SAP_JRE7_32    
'C:\\SAP\\Shared\\SAPJRE-7_1_011_32BIT'
PROGRAMDATA    
'C:\\ProgramData'
SAP_JRE7    
'C:\\SAP\\Shared\\SAPJRE-7_1_011_64BIT'
wsgi.input    
<socket._fileobject object at 0x03F5E0F0>
wsgi.errors    
<open file '<stderr>', mode 'w' at 0x0075A0D0>
SESSIONNAME    
'RDP-Tcp#0'
INCLUDE    
'C:\\SAP\\OCS-16_0\\include;'
PYCHARM_HOSTED    
'1'
CLIENTNAME    
'PC-20180605QPLE'
FP_NO_HOST_CHECK    
'NO'
wsgi.file_wrapper    
''
SERVER_NAME    
'PC-20170913LJKH'
APPDATA    
'C:\\Users\\Administrator\\AppData\\Roaming'
GATEWAY_INTERFACE    
'CGI/1.1'
REMOTE_HOST    
''
REMOTE_ADDR    
'127.0.0.1'
_OLD_VIRTUAL_PROMPT    
'$P$G'
DJANGO_SETTINGS_MODULE    
'untitled.settings'
CONTENT_TYPE    
'multipart/form-data; boundary=----WebKitFormBoundaryMTTUSOpNkvqXxjV4'
COMMONPROGRAMW6432    
'C:\\Program Files\\Common Files'
WINDIR    
'C:\\Windows'
HTTP_ACCEPT_ENCODING    
'gzip, deflate, br'
Settings
Using settings module untitled.settings
Setting    Value
SECURE_BROWSER_XSS_FILTER    
False
USE_THOUSAND_SEPARATOR    
False
CSRF_COOKIE_SECURE    
False
LANGUAGE_CODE    
'en-us'
ROOT_URLCONF    
'untitled.urls'
MANAGERS    
()
BASE_DIR    
'C:\\mydjango\\untitled'
SILENCED_SYSTEM_CHECKS    
[]
DEFAULT_CHARSET    
'utf-8'
SESSION_SERIALIZER    
'django.contrib.sessions.serializers.JSONSerializer'
STATIC_ROOT    
None
ALLOWED_HOSTS    
['80.52.80.202', '127.0.0.1', 'localhost']
MESSAGE_STORAGE    
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX    
'[Django] '
SERVER_EMAIL    
'root@localhost '
SECURE_HSTS_SECONDS    
0
STATICFILES_FINDERS    
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_CACHE_ALIAS    
'default'
SESSION_COOKIE_DOMAIN    
None
SESSION_COOKIE_NAME    
'sessionid'
TIME_INPUT_FORMATS    
('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
SECURE_REDIRECT_EXEMPT    
[]
DATABASES    
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.oracle',
             'HOST': '80.52.80.98',
             'NAME': 'pjgsora',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '1521',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': 'UTC',
             'USER': 'ora_zzbs'}}
EMAIL_SSL_KEYFILE    
u'********************'
FILE_UPLOAD_DIRECTORY_PERMISSIONS    
None
FILE_UPLOAD_PERMISSIONS    
None
FILE_UPLOAD_HANDLERS    
('django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE    
'text/html'
APPEND_SLASH    
True
LOCALE_PATHS    
()
DATABASE_ROUTERS    
[]
DEFAULT_TABLESPACE    
''
YEAR_MONTH_FORMAT    
'F Y'
STATICFILES_STORAGE    
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES    
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
SESSION_COOKIE_PATH    
'/'
SECURE_CONTENT_TYPE_NOSNIFF    
False
MIDDLEWARE_CLASSES    
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware')
USE_I18N    
True
THOUSAND_SEPARATOR    
','
SECRET_KEY    
u'********************'
LANGUAGE_COOKIE_NAME    
'django_language'
DEFAULT_INDEX_TABLESPACE    
''
LOGGING_CONFIG    
'logging.config.dictConfig'
TEMPLATE_LOADERS    
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
FIRST_DAY_OF_WEEK    
0
WSGI_APPLICATION    
'untitled.wsgi.application'
TEMPLATE_DEBUG    
False
X_FRAME_OPTIONS    
'SAMEORIGIN'
CSRF_COOKIE_NAME    
'csrftoken'
FORCE_SCRIPT_NAME    
None
USE_X_FORWARDED_HOST    
False
EMAIL_TIMEOUT    
None
SECURE_SSL_HOST    
None
SIGNING_BACKEND    
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE    
False
CSRF_COOKIE_DOMAIN    
None
FILE_CHARSET    
'utf-8'
DEBUG    
True
LANGUAGE_COOKIE_DOMAIN    
None
DEFAULT_FILE_STORAGE    
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS    
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'djangotest')
LANGUAGES    
(('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('ast', 'Asturian'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-au', 'Australian English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan Spanish'),
 ('et', 'Estonian'),
 ('eu', 'Basque'),
 ('fa', 'Persian'),
 ('fi', 'Finnish'),
 ('fr', 'French'),
 ('fy', 'Frisian'),
 ('ga', 'Irish'),
 ('gl', 'Galician'),
 ('he', 'Hebrew'),
 ('hi', 'Hindi'),
 ('hr', 'Croatian'),
 ('hu', 'Hungarian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('io', 'Ido'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('mr', 'Marathi'),
 ('my', 'Burmese'),
 ('nb', 'Norwegian Bokmal'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('nn', 'Norwegian Nynorsk'),
 ('os', 'Ossetic'),
 ('pa', 'Punjabi'),
 ('pl', 'Polish'),
 ('pt', 'Portuguese'),
 ('pt-br', 'Brazilian Portuguese'),
 ('ro', 'Romanian'),
 ('ru', 'Russian'),
 ('sk', 'Slovak'),
 ('sl', 'Slovenian'),
 ('sq', 'Albanian'),
 ('sr', 'Serbian'),
 ('sr-latn', 'Serbian Latin'),
 ('sv', 'Swedish'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('th', 'Thai'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('vi', 'Vietnamese'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese'),
 ('zh-tw', 'Traditional Chinese'))
USE_L10N    
True
SECURE_HSTS_INCLUDE_SUBDOMAINS    
False
STATICFILES_DIRS    
()
PREPEND_WWW    
False
SECURE_PROXY_SSL_HEADER    
None
LANGUAGE_COOKIE_AGE    
None
SESSION_COOKIE_HTTPONLY    
True
DEBUG_PROPAGATE_EXCEPTIONS    
False
CSRF_COOKIE_AGE    
31449600
MONTH_DAY_FORMAT    
'F j'
LOGIN_URL    
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE    
False
TIME_FORMAT    
'P'
AUTH_USER_MODEL    
'auth.User'
DATE_INPUT_FORMATS    
('%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y')
AUTHENTICATION_BACKENDS    
('django.contrib.auth.backends.ModelBackend',)
EMAIL_HOST_PASSWORD    
u'********************'
PASSWORD_RESET_TIMEOUT_DAYS    
u'********************'
SESSION_FILE_PATH    
None
CACHE_MIDDLEWARE_ALIAS    
'default'
SESSION_SAVE_EVERY_REQUEST    
False
NUMBER_GROUPING    
0
SESSION_ENGINE    
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW    
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH    
'/'
LOGIN_REDIRECT_URL    
'/accounts/profile/'
DECIMAL_SEPARATOR    
'.'
IGNORABLE_404_URLS    
()
MIGRATION_MODULES    
{}
TEMPLATE_STRING_IF_INVALID    
''
LOGOUT_URL    
'/accounts/logout/'
EMAIL_USE_TLS    
False
FIXTURE_DIRS    
()
EMAIL_HOST    
'localhost'
DATE_FORMAT    
'N j, Y'
MEDIA_ROOT    
''
DEFAULT_EXCEPTION_REPORTER_FILTER    
'django.views.debug.SafeExceptionReporterFilter'
ADMINS    
()
FORMAT_MODULE_PATH    
None
DEFAULT_FROM_EMAIL    
'webmaster@localhost '
MEDIA_URL    
''
DATETIME_FORMAT    
'N j, Y, P'
TEMPLATE_DIRS    
()
DISALLOWED_USER_AGENTS    
()
ALLOWED_INCLUDE_ROOTS    
()
LOGGING    
{}
SHORT_DATE_FORMAT    
'm/d/Y'
TEMPLATES    
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['C:\\mydjango\\untitled\\templates'],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages']}}]
TEST_RUNNER    
'django.test.runner.DiscoverRunner'
CACHE_MIDDLEWARE_KEY_PREFIX    
u'********************'
SECURE_SSL_REDIRECT    
False
TIME_ZONE    
'UTC'
FILE_UPLOAD_MAX_MEMORY_SIZE    
2621440
EMAIL_BACKEND    
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_SSL    
False
TEMPLATE_CONTEXT_PROCESSORS    
('django.contrib.auth.context_processors.auth',
 'django.template.context_processors.debug',
 'django.template.context_processors.i18n',
 'django.template.context_processors.media',
 'django.template.context_processors.static',
 'django.template.context_processors.tz',
 'django.contrib.messages.context_processors.messages')
SESSION_COOKIE_AGE    
1209600
SETTINGS_MODULE    
'untitled.settings'
USE_ETAGS    
False
LANGUAGES_BIDI    
('he', 'ar', 'fa', 'ur')
FILE_UPLOAD_TEMP_DIR    
None
INTERNAL_IPS    
()
STATIC_URL    
'/static/'
EMAIL_PORT    
25
USE_TZ    
True
SHORT_DATETIME_FORMAT    
'm/d/Y P'
TEST_NON_SERIALIZED_APPS    
[]
PASSWORD_HASHERS    
u'********************'
ABSOLUTE_URL_OVERRIDES    
{}
LANGUAGE_COOKIE_PATH    
'/'
CACHE_MIDDLEWARE_SECONDS    
600
EMAIL_SSL_CERTFILE    
None
CSRF_COOKIE_HTTPONLY    
False
DATETIME_INPUT_FORMATS    
('%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%Y-%m-%d',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%Y',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M',
 '%m/%d/%y')
EMAIL_HOST_USER    
''

加载中
返回顶部
顶部