the5fire / django_selfblog Goto Github PK
View Code? Open in Web Editor NEWAnother opensource blog system based on Django1.6
Home Page: http://the5fire.com
Another opensource blog system based on Django1.6
Home Page: http://the5fire.com
按照readme.me部署,执行gunicorn selfblog.wsgi:application
出现以下错误:u'djdt' is not a registered namespace
使用python manage.py runserver
没有问题.
我的环境:django==1.5.1
django-debug-toolbar==1.2.1
gunicorn==18.0
建议在requirement.txt里把依赖的库的版本号也加上吧
以上
django-debug-toolbar==0.10.2 need django <1.6
运行后打开0.0.0.0:8000的时候出现错误:
下面的操作都是按照git的安装步骤来搞的。
但是基本功能都用不了,要不是代码有bug,要不就是安装文档有疏漏。
在centOS6.5 64bit(Python 2.6.6)系统上搭建完成后
打开如下链接:
http://10.10.10.111:8000/xadmin
进入后台增加一篇博客,这一步骤没问题
但是再进入
http://10.10.10.111:8000/
点击对应博客后面的 阅读全文 这个超链接
就链接到下面这个不能打开的地址:
http://10.10.10.111:8000/.html
这个东西不是缓存,用chrom按F12看了对应实际链接就这个。
查看了对应的日志文件,还有启动后台没有任何报错。
然后我在centOS7.0 64bit(Python 2.7.57) 也试过,还是这个问题。
你配置的所有地址都是绝对路径,而实际上几乎所有的地址都可以根据项目的相对路径进行表示。这样绝对路径,在自己电脑上弄还好,一旦涉及到克隆一份新的副本出来,更改配置就很麻烦了,而且假如在多台设备上进行开发,并且项目路径不统一,则同步起来会相当麻烦。建议全部都改成相对路径。
比如说confg/supervisord.conf
中
[supervisord]
logfile=/home/the5fire/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
其中logfile
实际上可以写成logfile=tmp/supervisord.log
,只要保证是在项目根目录执行命令就行了。
点击add按钮跳转到默认得添加数据页面,如何配置才能跳转到指定的url页面
用这套源码搭建起来博客的同学不妨放着链接在这里。也方便大家参观。也可以带些流量。
跟帖格式可以如下,按照我的博客来说。
blog:http://the5fire.com
服务器:webfaction centos
部署环境:virtualenv+supervisord+nginx+django1.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.