django2 TypeError: RedirectView() received an invalid keyword 're_path'. as_view only accepts argume
invalid View an as Only path x27
2023-06-13 09:18:40 时间
django2 报错:
TypeError: RedirectView() received an invalid keyword 're_path'. as_view only accepts arguments that are already attributes of the class.
解决办法:
from django.views.generic.base import RedirectView # favicon.ico
# favicon_view = RedirectView.as_view(re_path='/static/images/zhuo_64x64.ico', permanent=True) # django 1.11
favicon_view = RedirectView.as_view(url='/static/images/zhuo_64x64.ico', permanent=True) # django 2.2
相关文章
- New Edge & Chromium Error - Package is invalid: 'CRX_VERSION_NUMBER_INVALID'
- ORA-01611: thread number string is invalid – must be between 1 and string ORACLE 报错 故障修复 远程处理
- ORA-19276: XPST0005 – XPath step specifies an invalid element/attribute name: (string) ORACLE 报错 故障修复 远程处理
- ORA-23605: invalid value “string” for string parameter string ORACLE 报错 故障修复 远程处理
- ORA-24025: invalid value string, QUEUE_PAYLOAD_TYPE should be RAW or an object type ORACLE 报错 故障修复 远程处理
- ORA-24380: invalid mode specification ORACLE 报错 故障修复 远程处理
- ORA-24387: Invalid attach driver ORACLE 报错 故障修复 远程处理
- ORA-26764: invalid parameter “string” for local capture “string” ORACLE 报错 故障修复 远程处理
- ORA-31219: DBMS_LDAP: PL/SQL – Invalid LDAP notypes. ORACLE 报错 故障修复 远程处理
- ORA-32109: invalid column or parameter position ORACLE 报错 故障修复 远程处理
- ORA-32164: Method called on Invalid Connection type ORACLE 报错 故障修复 远程处理
- ORA-38402: invalid name: empty string or spaces in the name ORACLE 报错 故障修复 远程处理
- ORA-41025: sid field string is invalid ORACLE 报错 故障修复 远程处理
- ORA-41632: invalid value for the “string” attribute ORACLE 报错 故障修复 远程处理
- ORA-41640: invalid element “string” in the rule condition ORACLE 报错 故障修复 远程处理
- ORA-41672: invalid rowid passed in for “string” table ORACLE 报错 故障修复 远程处理
- ORA-41686: use of “collection” invalid for the primitive event ORACLE 报错 故障修复 远程处理
- MySQL Error number: 3141; Symbol: ER_INVALID_JSON_TEXT_IN_PARAM; SQLSTATE: 22032 报错 故障修复 远程处理
- MySQL Error number: 3145; Symbol: ER_INVALID_JSON_CHARSET_IN_FUNCTION; SQLSTATE: 22032 报错 故障修复 远程处理
- ORA-53020: invalid external reference in the constraint document: string ORACLE 报错 故障修复 远程处理
- MySQL Error number: 3982; Symbol: ER_INVALID_USER_ATTRIBUTE_JSON; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-00400: invalid release value string for parameter string ORACLE 报错 故障修复 远程处理
- ORA-01490: invalid ANALYZE command ORACLE 报错 故障修复 远程处理
- ORA-02335: invalid datatype for cluster column ORACLE 报错 故障修复 远程处理
- ORA-03290: Invalid truncate command – missing CLUSTER or TABLE keyword ORACLE 报错 故障修复 远程处理
- ORA-07272: spwat: invalid semaphore set id. ORACLE 报错 故障修复 远程处理
- ORA-12057: materialized view “string”.”string” is INVALID and must complete refresh ORACLE 报错 故障修复 远程处理
- ORA-13783: invalid tuning scope ORACLE 报错 故障修复 远程处理
- ORA-18104: XUTY0005 – Invalid target expression for INSERT ORACLE 报错 故障修复 远程处理
- ORA-18111: XUTY0012 – Invalid target expression for RENAME ORACLE 报错 故障修复 远程处理
- ORA-18112: XUTY0013 – Invalid COPY expression for TRANSFORM ORACLE 报错 故障修复 远程处理
- ORA-19107: invalid XQueryX – unsupported construct – string ORACLE 报错 故障修复 远程处理
- ORA-19234: XQST0014 – invalid or unsupported must-understand extension ORACLE 报错 故障修复 远程处理
- ORA-41663: invalid use of “equal” or “sequence” attribute with a single event ORACLE 报错 故障修复 远程处理
- PostgreSQL 0LP01: invalid_grant_operation 报错 故障修复 远程处理
- PostgreSQL 42P17: invalid_object_definition44000 with_check_option_violation53000 insufficient_resources 报错 故障修复 远程处理