django.db.utils.ProgrammingError:关系“ fdiary_fdiary”不存在第1行:从“ fdiary_fdiary”中选择COUNT(*)AS作为“ __count”

时间:2020-04-03 14:55:55

标签: python django postgresql psycopg2

我做了所有使用python manage.py migration等的操作,但是当我在Django管理面板中单击模型时,就会显示此错误。 / admin / fdiary / fdiary /

中的ProgrammingError

关系“ fdiary_fdiary”不存在 第1行:从“ fdiary_fdiary”中选择COUNT(*)作为“ __count” ^

请求方法:GET 要求网址:http://127.0.0.1:8000/admin/fdiary/fdiary/ Django版本:3.0.4 异常类型:ProgrammingError 异常值:

关系“ fdiary_fdiary”不存在 第1行:从“ fdiary_fdiary”中选择COUNT(*)作为“ __count” ^

异常位置:_execute,第86行中的J:\ Program Files \ Python3.8 \ lib \ site-packages \ django \ db \ backends \ utils.py 可执行的Python:J:\ Program Files \ Python3.8 \ python.exe 的Python版本:3.8.2 Python路径:

['C:\ Users \ Dell \ diary \ diary', 'J:\ Program Files \ Python3.8 \ python38.zip', 'J:\ Program Files \ Python3.8 \ DLLs', 'J:\ Program Files \ Python3.8 \ lib', 'J:\ Program Files \ Python3.8', 'C:\ Users \ Dell \ AppData \ Roaming \ Python \ Python38 \ site-packages', 'J:\ Program Files \ Python3.8 \ lib \ site-packages']

服务器时间:2020年4月3日星期五20:15:51 +0530 元:-

it("do some test", () => {

      /* do some test here, all is fine */

      wrapper.setProps({ someProp}); // set new props
      wrapper.vm.someProp; // updated

      circleWrapper.vm.someProp; // still old

      // fails!!!
      expect(circleWrapper.element.getAttribute("someProp")).to.equal(someProp);
    });

setting.py:- ABSOLUTE_URL_OVERRIDES

        ALLUSERSPROFILE     

    'C:\\ProgramData'

    APPDATA     

    'C:\\Users\\Dell\\AppData\\Roaming'

    COLORTERM   

    'truecolor'

    COMMONPROGRAMFILES  

    'C:\\Program Files\\Common Files'

    COMMONPROGRAMFILES(X86)     

    'C:\\Program Files (x86)\\Common Files'

    COMMONPROGRAMW6432  

    'C:\\Program Files\\Common Files'

    COMPUTERNAME    

    'DESKTOP-S6NQ606'

    COMSPEC     

    'C:\\Windows\\system32\\cmd.exe'

    CONTENT_LENGTH  

    ''

    CONTENT_TYPE    

    'text/plain'

    CSRF_COOKIE     

    'mNHRnYHHB1kzOdnahlwlppBHiLEKYeO0ghFTgshaQGSXzzbS6aU5TI1rnpkWa9vT'

    DJANGO_SETTINGS_MODULE  

    'diary.settings'

    DRIVERDATA  

    'C:\\Windows\\System32\\Drivers\\DriverData'

    GATEWAY_INTERFACE   

    'CGI/1.1'

    HOMEDRIVE   

    'C:'

    HOMEPATH    

    '\\Users\\Dell'

    HTTP_ACCEPT     

    'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'

    HTTP_ACCEPT_ENCODING    

    'gzip, deflate'

    HTTP_ACCEPT_LANGUAGE    

    'en-US,en;q=0.5'

    HTTP_CONNECTION     

    'keep-alive'

    HTTP_COOKIE     

    ('csrftoken=mNHRnYHHB1kzOdnahlwlppBHiLEKYeO0ghFTgshaQGSXzzbS6aU5TI1rnpkWa9vT; '
     'sessionid=amcqamjjcw9chtndh5nzib8nfdv8n1yy; '
     'PGADMIN_INT_KEY=fc56bb57-0d57-4b35-8b29-282be1e4197b; '
     'pga4_session=d8dcf70d-50e4-4474-9aef-6e057e2a6216!P0ZEZvLq08QDIa+4HpmE8XSwdWE=; '
     'PGADMIN_LANGUAGE=en')

    HTTP_DNT    

    '1'

    HTTP_HOST   

    '127.0.0.1:8000'

    HTTP_REFERER    

    'http://127.0.0.1:8000/admin/'

    HTTP_UPGRADE_INSECURE_REQUESTS  

    '1'

    HTTP_USER_AGENT     

    'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0'

    LANG    

    'en_GB.UTF-8'

    LOCALAPPDATA    

    'C:\\Users\\Dell\\AppData\\Local'

    LOGONSERVER     

    '\\\\DESKTOP-S6NQ606'

    NUMBER_OF_PROCESSORS    

    '4'

    ONEDRIVE    

    'C:\\Users\\Dell\\OneDrive'

    ONEDRIVECONSUMER    

    'C:\\Users\\Dell\\OneDrive'

    OS  

    'Windows_NT'

    PATH    

    ('J:\\Program Files\\Python3.8\\Scripts\\;J:\\Program '
     'Files\\Python3.8\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program '
     'Files\\Microsoft VS '
     'Code\\bin;C:\\Users\\Dell\\AppData\\Local\\Microsoft\\WindowsApps;')

    PATHEXT     

    '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW'

    PATH_INFO   

    '/admin/fdiary/fdiary/'

    PROCESSOR_ARCHITECTURE  

    'AMD64'

    PROCESSOR_IDENTIFIER    

    'Intel64 Family 6 Model 69 Stepping 1, GenuineIntel'

    PROCESSOR_LEVEL     

    '6'

    PROCESSOR_REVISION  

    '4501'

    PROGRAMDATA     

    'C:\\ProgramData'

    PROGRAMFILES    

    'C:\\Program Files'

    PROGRAMFILES(X86)   

    'C:\\Program Files (x86)'

    PROGRAMW6432    

    'C:\\Program Files'

    PROMPT  

    '$P$G'

    PSMODULEPATH    

    ('C:\\Program '
     'Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules')

    PUBLIC  

    'C:\\Users\\Public'

    QUERY_STRING    

    ''

    REMOTE_ADDR     

    '127.0.0.1'

    REMOTE_HOST     

    ''

    REQUEST_METHOD  

    'GET'

    RUN_MAIN    

    'true'

    SCRIPT_NAME     

    ''

    SERVER_NAME     

    'DESKTOP-S6NQ606'

    SERVER_PORT     

    '8000'

    SERVER_PROTOCOL     

    'HTTP/1.1'

    SERVER_SOFTWARE     

    'WSGIServer/0.2'

    SESSIONNAME     

    'Console'

    SYNAPROGDIR     

    'Synaptics\\SynTP'

    SYSTEMDRIVE     

    'C:'

    SYSTEMROOT  

    'C:\\Windows'

    TEMP    

    'C:\\Users\\Dell\\AppData\\Local\\Temp'

    TERM_PROGRAM    

    'vscode'

    TERM_PROGRAM_VERSION    

    '1.43.2'

    TMP     

    'C:\\Users\\Dell\\AppData\\Local\\Temp'

    USERDOMAIN  

    'DESKTOP-S6NQ606'

    USERDOMAIN_ROAMINGPROFILE   

    'DESKTOP-S6NQ606'

    USERNAME    

    'Dell'

    USERPROFILE     

    'C:\\Users\\Dell'

    WINDIR  

    'C:\\Windows'

    wsgi.errors     

    <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>

    wsgi.file_wrapper   

    ''

    wsgi.input  

    <django.core.handlers.wsgi.LimitedStream object at 0x00000277CC377700>

    wsgi.multiprocess   

    False

    wsgi.multithread    

    True

    wsgi.run_once   

    False

    wsgi.url_scheme     

    'http'

    wsgi.version    

    (1, 0)

0 个答案:

没有答案