hopetree / izone Goto Github PK
View Code? Open in Web Editor NEW一个基于Django的博客项目,也可以当做一个文档管理网站使用,自带评论、定时任务等功能,界面简约而不简单
Home Page: https://tendcode.com
License: MIT License
一个基于Django的博客项目,也可以当做一个文档管理网站使用,自带评论、定时任务等功能,界面简约而不简单
Home Page: https://tendcode.com
License: MIT License
邮箱认证的url,好像需要先在settings中开启认证才能收到邮件
# E-mail
url(r"^email/$", views.email, name="account_email"),
url(r"^confirm-email/$", views.email_verification_sent,
name="account_email_verification_sent"),
url(r"^confirm-email/(?P<key>[-:\w]+)/$", views.confirm_email,
name="account_confirm_email"),
创建 /favicon.ico 的跳转,建议直接回调到静态文件路径
首先感谢开源分享,
自己在本地跑了一下,测试发了一篇文章,功能很多,估计花了些时间,
要是能把文章内容编辑器再优化一下就更好了。(抱拳)
大神,请教一下:runserver 静态文件404 怎么弄
[09/Nov/2018 16:16:18] "GET / HTTP/1.1" 200 9541 [09/Nov/2018 16:16:18] "GET /static/blog/css/base.css?v=20171223.05 HTTP/1.1" 404 5893 [09/Nov/2018 16:16:18] "GET /static/blog/img/github.png HTTP/1.1" 404 5897 [09/Nov/2018 16:16:18] "GET /static/blog/img/logo.png HTTP/1.1" 404 5893 [09/Nov/2018 16:16:18] "GET /static/blog/img/rss.png HTTP/1.1" 404 5891 [09/Nov/2018 16:16:18] "GET /static/blog/js/base.js?v=20180429.1 HTTP/1.1" 404 5889 [09/Nov/2018 16:16:18] "GET /static/blog/img/blog.png HTTP/1.1" 404 5893
前辈,您是看书学习了django的使用,还是直接看官网呢?打扰您啦。
在izone/urls.py文件里,allauth这个app找不到
下面第三行这个
urlpatterns = [
url(r'^adminx/', admin.site.urls),
url(r'^accounts/', include('allauth.urls')), # allauth
各种出错,请问怎么办?
已经下载,不知道如何跑服务,现在页面是起不来的。。。
只搞net
当页面出现滚动条,滚动到最下面,刷新网页时整个页面出现抖动情况,上下抖动; 当页面内容不是很多,出现滚动条且可直接看到底部栏时,刷新网页整个页面出现左右抖动。
ubuntu上的本地运行(python manage.py runserver)添加并保存文章是没问题的
唯独django+nginx+wsgi运行的时候 在 adminx 后台编辑好文章, 点击保存时报了这个错误
不知道该怎么解决
OSError at /adminx/blog/article/add/
The path to your Whoosh index '/var/www/web/izone/whoosh_index' is not writable for the current user/group.
@Hopetree 博主您好,如题,我在选择微博注册或者Github注册时,页面有以下错误提示:
# 选择Github注册
DoesNotExist at /accounts/github/login/
SocialApp matching query does not exist.
# 选择微博注册
DoesNotExist at /accounts/weibo/login/
SocialApp matching query does not exist.
请问怎么解决呢?感谢!
是不是改了分支名字?v2该用哪个分支?
如题
看django版本应该是Python2,但是安装依赖出错。
你好,我已经在后台social application添加微博登录应用了,为什么一直报SocialApp matching query does not exist.
回调地址设置的http://www.wardseptember.top/accounts/weibo/login/callback/
github授权可以。更改site_id也不行。
account_login 这个视图没有啊
你好,我对py不熟练,准备用golang实现一个类似的博客,但是自己前端做得太丑,希望能有一个前端模板,后端的自己可以搞定。
教程里的clone链接是 ssh的。应该换成https
.cbp_tmtimeline>li .cbp_tmlabel {
position: relative;
margin: 0 0 15px 25%;
padding: 1em;
border-radius: 2px;
background: #fff;
color: #333;
font-weight: 300;
font-size: 1.1em;
line-height: 1.4;
word-wrap:break-word #add break
}
关于学习使用本项目,有什么好的建议呢
有没有考虑将django升到2.0+
tag_info = {
'<h\d>': '',
'</h\d>': '<br>',
'<script.*</script>': '',
'<meta.*?>': '',
'<link.*?>': ''
}
在转换表情代码里这一段是不是清洗经过markdown转化后的html文本?防止用户提交一些恶意的JavaScript脚本?
博主代码应该是在app.py少了import signals
无法访问此网站tendcode.com 拒绝了我们的连接请求。
ERR_CONNECTION_REFUSED
CDN 加速的静态文件, 我用我国东南西北的城市IP分别ping 有的达到300ms; 需要优化。
例如哪个font.owasome.min.css
您好,我用了你的v1版本,发现文章内无法使用数学公式,如($...$) 。
想问一下是不是我的操作不对~
在v1中下载依赖报错 下载链接是否可用?
我有一个疑问,就是关于"Remember Me"这个CheckBox的,默认是不是没有利用cookie实现用户信息的保存?这个需要自己实现吗?
我把django 模块升级到 django2.04 ,下面这些命令均已完成
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
但是出现这个跳转
http://127.0.0.1:8000/adminx/login/?next=/adminx/
Server Error (500)
安装第三方库的时候出错,第一个安装不行我换了下一个又错。。。。。
如题,这个错误是在执行python manage.py makemigrations时出现的,没有其它提示,请问有遇到过吗?怎么解决啊?
运行python3 manage.py makemigrations的时候总是说没有模块,pip3安装后,还是有新模块未安装,是不是有个模块包?
网站主能否把安装网站的教程写详细点或录制视频,小白求教,以后安装上了帮你宣传,嘻嘻
环境:centos6.9 myslq-5.5.60,venv虚拟环境,按照readme中的方法进行迁移数据库 python manage.py migrate
报错:pymysql.err.InternalError: (1709, 'Index column size too large. The maximum column size is 767 bytes.')
根据百度到的方法:配置下面mysql配置,然后重启mysql,但是还是显示错误
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix
从mysql可以看到已经生效
mysql> show global variables like 'innodb_lar%';
+---------------------+-------+
| Variable_name | Value |
+---------------------+-------+
| innodb_large_prefix | ON |
+---------------------+-------+
1 row in set (0.00 sec)
mysql> show global variables like 'innodb_fil%';
+--------------------------+-----------+
| Variable_name | Value |
+--------------------------+-----------+
| innodb_file_format | Barracuda |
| innodb_file_format_check | ON |
| innodb_file_format_max | Antelope |
| innodb_file_per_table | ON |
+--------------------------+-----------+
4 rows in set (0.00 sec)
不知是否遇到过这个问题
所有代码开头没有 coding:utf-8,很难用,各种报错,浪费半个小时时间去搞!
工具构想:
使用docker成功部署项目之后如何修改网站title和logo等信息呢?望赐教
能否把数据库的版本及数据库 my.cnf 配置文件发下看看,每当我执行创建数据库时 django.db.utils.InternalError: (1709, 'Index column size too large. The maximum column size is 767 bytes.') 都会有这个错误
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.