This is the architecture I designed for service “Managed Service for Alibaba Cloud” of company production. It’s also my common architecture that can be used to deploy distributed Python applications or service based on workers or MQ. This is a easy to upgrade architecture. You can simply add other service or make it becoming microservices.
Continue reading_"未格式化的导入日志 unformatted imported post"_
在Django中编写模板(template)的时候, 有时候可能会用到settings中设定的变量, 比如说STATIC_URL。 此时, 如果你直接使用 是取不到值的。 那么怎么才能在模板中使用呢? 难道非得在每个view中添加到context中吗?
_"未格式化的导入日志 unformatted imported post"_
Django 自带的admin 用户及权限管理是一个很不错的功能,但在开发的时候,如果仅仅只是按照教程中介绍的去掉 urls.py 中相应的注释,那么你很有可能看到的是一个光秃秃的裸体页面,换句话说,就是页面的样式都失效了。
Continue reading