This commit is contained in:
ladeng07
2022-05-05 22:47:03 +08:00
parent 455ed9f189
commit e8e5904b90
4 changed files with 51 additions and 33 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TemplatesService">
+1 -1
View File
@@ -3,5 +3,5 @@
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (ITShowPlatform)" project-jdk-type="Python SDK" />
</project>
+41 -24
View File
@@ -26,13 +26,17 @@
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="GROUP_NODE:gitee" type="e8cecc67:BranchNodeDescriptor" />
<item name="BRANCH:gitee/enroll" type="e8cecc67:BranchNodeDescriptor" />
<item name="BRANCH:gitee/master" type="e8cecc67:BranchNodeDescriptor" />
</path>
</select>
</component>
<component name="ChangeListManager">
<list default="true" id="81247df9-f070-428a-8ff8-85c1a06086e7" name="Default Changelist" comment="增加了util里的get_error_msg">
<change beforePath="$PROJECT_DIR$/ITShowPlatform/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/ITShowPlatform/.gitignore" afterDir="false" />
<list default="true" id="81247df9-f070-428a-8ff8-85c1a06086e7" name="Default Changelist" comment="测试一下gitignore">
<change beforePath="$PROJECT_DIR$/.idea/ITShowPlatform.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/ITShowPlatform.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ITShowPlatform/config.ini" beforeDir="false" afterPath="$PROJECT_DIR$/ITShowPlatform/config.ini" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ITShowPlatform/settings.py" beforeDir="false" afterPath="$PROJECT_DIR$/ITShowPlatform/settings.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -92,9 +96,9 @@
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="SDK_HOME" value="C:\Users\PBDELL\Desktop\Django\ITShowPlatform\venv\Scripts\python.exe" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/ITShowPlatform" />
<option name="IS_MODULE_SDK" value="true" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
@@ -115,9 +119,9 @@
<env name="PYTHONUNBUFFERED" value="1" />
<env name="DJANGO_SETTINGS_MODULE" value="ITShowPlatform.settings" />
</envs>
<option name="SDK_HOME" value="" />
<option name="SDK_HOME" value="C:\Users\PBDELL\Desktop\Django\ITShowPlatform\venv\Scripts\python.exe" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="launchJavascriptDebuger" value="false" />
@@ -181,7 +185,8 @@
<workItem from="1651065854470" duration="1813000" />
<workItem from="1651738641048" duration="6482000" />
<workItem from="1651751601855" duration="3860000" />
<workItem from="1651755972039" duration="103000" />
<workItem from="1651755972039" duration="916000" />
<workItem from="1651758240545" duration="1554000" />
</task>
<task id="LOCAL-00001" summary="fix">
<created>1650187914913</created>
@@ -211,7 +216,14 @@
<option name="project" value="LOCAL" />
<updated>1651748255265</updated>
</task>
<option name="localTasksCounter" value="5" />
<task id="LOCAL-00005" summary="测试一下gitignore">
<created>1651756162372</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1651756162373</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@@ -228,7 +240,7 @@
<entry key="branch">
<value>
<list>
<option value="gitee/enroll" />
<option value="gitee/master" />
</list>
</value>
</entry>
@@ -247,13 +259,14 @@
<MESSAGE value="修改+合并前的提交" />
<MESSAGE value="重构了app" />
<MESSAGE value="增加了util里的get_error_msg" />
<option name="LAST_COMMIT_MESSAGE" value="增加了util里的get_error_msg" />
<MESSAGE value="测试一下gitignore" />
<option name="LAST_COMMIT_MESSAGE" value="测试一下gitignore" />
</component>
<component name="WindowStateProjectService">
<state x="460" y="12" key="#ITShowPlatform" timestamp="1651644593580">
<state x="460" y="12" key="#ITShowPlatform" timestamp="1651756623485">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state x="460" y="12" key="#ITShowPlatform/0.0.1536.864@0.0.1536.864" timestamp="1651644593580" />
<state x="460" y="12" key="#ITShowPlatform/0.0.1536.864@0.0.1536.864" timestamp="1651756623485" />
<state x="345" y="76" key="#SSH_Configurations" timestamp="1650645097799">
<screen x="0" y="0" width="1536" height="864" />
</state>
@@ -266,6 +279,10 @@
<screen x="0" y="0" width="1536" height="864" />
</state>
<state x="489" y="228" key="#com.intellij.fileTypes.FileTypeChooser/0.0.1536.864@0.0.1536.864" timestamp="1651753494236" />
<state x="460" y="19" key="#settings" timestamp="1651756900069">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state x="460" y="19" key="#settings/0.0.1536.864@0.0.1536.864" timestamp="1651756900069" />
<state x="93" y="93" width="1350" height="678" key="DiffContextDialog" timestamp="1650785927137">
<screen x="0" y="0" width="1536" height="864" />
</state>
@@ -282,22 +299,22 @@
<screen x="0" y="0" width="1536" height="864" />
</state>
<state x="615" y="342" key="Github.Dialog.Accounts.Choose/0.0.1536.864@0.0.1536.864" timestamp="1650187937570" />
<state width="1493" height="216" key="GridCell.Tab.0.bottom" timestamp="1651755221112">
<state width="1493" height="216" key="GridCell.Tab.0.bottom" timestamp="1651756900501">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state width="1493" height="216" key="GridCell.Tab.0.bottom/0.0.1536.864@0.0.1536.864" timestamp="1651755221112" />
<state width="1493" height="216" key="GridCell.Tab.0.center" timestamp="1651755221111">
<state width="1493" height="216" key="GridCell.Tab.0.bottom/0.0.1536.864@0.0.1536.864" timestamp="1651756900501" />
<state width="1493" height="216" key="GridCell.Tab.0.center" timestamp="1651756900499">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state width="1493" height="216" key="GridCell.Tab.0.center/0.0.1536.864@0.0.1536.864" timestamp="1651755221111" />
<state width="1493" height="216" key="GridCell.Tab.0.left" timestamp="1651755221111">
<state width="1493" height="216" key="GridCell.Tab.0.center/0.0.1536.864@0.0.1536.864" timestamp="1651756900499" />
<state width="1493" height="216" key="GridCell.Tab.0.left" timestamp="1651756900498">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state width="1493" height="216" key="GridCell.Tab.0.left/0.0.1536.864@0.0.1536.864" timestamp="1651755221111" />
<state width="1493" height="216" key="GridCell.Tab.0.right" timestamp="1651755221112">
<state width="1493" height="216" key="GridCell.Tab.0.left/0.0.1536.864@0.0.1536.864" timestamp="1651756900497" />
<state width="1493" height="216" key="GridCell.Tab.0.right" timestamp="1651756900500">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state width="1493" height="216" key="GridCell.Tab.0.right/0.0.1536.864@0.0.1536.864" timestamp="1651755221112" />
<state width="1493" height="216" key="GridCell.Tab.0.right/0.0.1536.864@0.0.1536.864" timestamp="1651756900500" />
<state width="1493" height="269" key="GridCell.Tab.1.bottom" timestamp="1651745777781">
<screen x="0" y="0" width="1536" height="864" />
</state>
@@ -326,10 +343,10 @@
<screen x="0" y="0" width="1536" height="864" />
</state>
<state x="270" y="76" key="SettingsEditor/0.0.1536.864@0.0.1536.864" timestamp="1651753942877" />
<state x="361" y="161" key="Vcs.Push.Dialog.v2" timestamp="1651748975959">
<state x="361" y="161" key="Vcs.Push.Dialog.v2" timestamp="1651758561741">
<screen x="0" y="0" width="1536" height="864" />
</state>
<state x="361" y="161" key="Vcs.Push.Dialog.v2/0.0.1536.864@0.0.1536.864" timestamp="1651748975959" />
<state x="361" y="161" key="Vcs.Push.Dialog.v2/0.0.1536.864@0.0.1536.864" timestamp="1651758561741" />
<state x="93" y="93" width="1350" height="678" key="com.intellij.history.integration.ui.views.FileHistoryDialog" timestamp="1651645036813">
<screen x="0" y="0" width="1536" height="864" />
</state>
@@ -348,6 +365,6 @@
<state x="520" y="210" key="git4idea.merge.GitMergeDialog/0.0.1536.864@0.0.1536.864" timestamp="1650785115917" />
</component>
<component name="com.intellij.coverage.CoverageDataManagerImpl">
<SUITE FILE_PATH="coverage/ITShowPlatform$settings.coverage" NAME="settings Coverage Results" MODIFIED="1651755204349" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/ITShowPlatform" />
<SUITE FILE_PATH="coverage/ITShowPlatform$settings.coverage" NAME="settings Coverage Results" MODIFIED="1651756900393" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/ITShowPlatform" />
</component>
</project>
+6 -5
View File
@@ -17,11 +17,16 @@ import configparser
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
conf = configparser.RawConfigParser()
conf.read(str(BASE_DIR)+r"\ITShowPlatform\config.ini",encoding="utf-8")
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-0cn#v4ei2(^n+txyh4%3d5sllz6mknz#7t$!cq-d!ly*_rwvh2'
SECRET_KEY = conf.get("Django","SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@@ -30,10 +35,6 @@ ALLOWED_HOSTS = ["*"]
# Application definition
conf = configparser.ConfigParser()
conf.read(str(BASE_DIR)+r"\ITShowPlatform\config.ini",encoding="utf-8")
INSTALLED_APPS = [