Comments (5)
You need create a log file named blogin.log on the /Users/liam/Desktop/Git/Blogin/logs/ directory.
from blogin.
Hi, after I added that file, another error occured:
File "/Users/liam/Desktop/Git/Blogin/blogin/__init__.py", line 212, in admin
avatar='/static/img/admin/admin.jpg')
File "<string>", line 4, in __init__
File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 433, in _initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
exc_value, with_traceback=exc_tb,
File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
raise exception
File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 430, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "/Users/liam/Desktop/Git/Blogin/blogin/models.py", line 61, in __init__
self.generate_avatar()
File "/Users/liam/Desktop/Git/Blogin/blogin/models.py", line 75, in generate_avatar
files = icon.generate(self.username)
File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/flask_avatars/identicon.py", line 220, in generate
self.save(image_byte_array, save_location=os.path.join(path, '%s_%s.png' % (text, suffix[size])))
File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/flask_avatars/identicon.py", line 82, in save
with open(save_location, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/liam/Desktop/Git/Blogin/uploads/avatars/liam123456_s.png'
操作出现异常,退出...
from blogin.
from blogin.
I forgot to upload some necessary directories, please wait a moment and then you can manually create the directory by yourself, or re-clone the code of my repo。
from blogin.
OK, it runs well after I created that file.
Thank you SO MUCH for sharing this project with us, that's really helpful for fresh like me.
from blogin.
Related Issues (20)
- 我打算开发一个活动栏目。 HOT 2
- 请问如何部署到服务器? HOT 3
- 其它操作系统 HOT 20
- jinja2.exceptions.TemplateNotFound: main/index.html HOT 16
- 博客继续阅读 按钮 HOT 4
- 部署到AWS ec2 ubuntu 上出现了问题
- blueprint/front/blog.py", line 404, in load_one return jsonify({'one': one.content}) AttributeError: 'NoneType' object has no attribute 'content'
- 相应文件缺失? HOT 1
- 请问怎么解决configparser.NoSectionError: No section: 'baidu' HOT 2
- 大佬,请问这是什么原因啊 HOT 8
- 个人博客云端部署问题 HOT 2
- AttributeError: 'Babel' object has no attribute 'localeselector' HOT 6
- 进首页显示404 HOT 13
- 请问FileNotFoundError: [Errno 2] No such file or directory: 'E:\\_Study_Record\\git_files\\m_blog/history/e29c91a7c65dfdd2b5bff4294f4a5138.txt'怎么解决啊 HOT 2
- 博客地址无法访问了 HOT 6
- 后台 博客编辑栏 操作按钮无法点击 HOT 10
- avatar文件路径的问题 HOT 1
- 初始化数据库命令失败 HOT 13
- 依赖的文件缺失 HOT 3
- 作者您好,请问python用的是哪个版本的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blogin.