# python_django_web **Repository Path**: marvelousyang/python_django_web ## Basic Information - **Project Name**: python_django_web - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python_django_web ## 需配合以下项目使用, - https://github.com/dpressel/rude-carnie - 基本运行命令是: - python /home/lee/git/rude-carnie/guess.py --model_type inception --model_dir /home/lee/Downloads/22801 --filename test.jpg ## 使用前需修改pic_age/pic/views.py中的 - str=('python /home/lee/git/rude-carnie/guess.py --model_type inception --model_dir /home/lee/Downloads/22801 --filename ' + filepath) - p=os.system(str) - file_object = open('/home/lee/git/rude-carnie/log.txt') 改成对应目录 ## 修改后运行服务器: python manage.py runserver 0.0.0.0:8000 ## 访问地址: - localhost:8000 ## git常用命令: - git init //把这个目录变成Git可以管理的仓库 - git add README.md //文件添加到仓库 -  git add . //不但可以跟单一文件,还可以跟通配符,更可以跟目录。一个点就把当前目录下所有未追踪的文件全部add了 ,不可以添加空目录 · git add -A 提交所有变化 · git add -u 提交被修改(modified)和被删除(deleted)文件,不包括新文件(new) · git add . 提交新文件(new)和被修改(modified)文件,不包括被删除(deleted)文件 -  git commit -m "first commit" //把文件提交到仓库 -  git remote add origin git@github.com:yourName/yourPro.git //关联远程仓库 -  git push -u origin master //把本地库的所有内容推送到远程库上 fatal: remote schedule already exists - git remote rm origin Updates were rejected because the remote contains work that you do - 删除文件 rm test.txt git status git rm test.txt git commit -m "remove test.txt" git pull 复制到多个目录 echo /home/aaronkilik/test/ /home/aaronkilik/tmp | xargs -n 1 cp -v /home/aaronkilik/bin/sys_info.sh git reset: 在git的一般使用中,如果发现错误的将不想提交的文件add进入index之后,想回退取消,则可以使用命令:git reset