Coder Social home page Coder Social logo

hopetree / izone Goto Github PK

View Code? Open in Web Editor NEW
1.2K 1.2K 370.0 4.7 MB

一个基于Django的博客项目,也可以当做一个文档管理网站使用,自带评论、定时任务等功能,界面简约而不简单

Home Page: https://tendcode.com

License: MIT License

Python 99.93% Dockerfile 0.07%
blog bootstrap django docker python

izone's Issues

开启用户邮箱认证,并给验证通过的用户展示用户的网站地址

邮箱认证的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"),

感谢开源分享

首先感谢开源分享,
自己在本地跑了一下,测试发了一篇文章,功能很多,估计花了些时间,
要是能把文章内容编辑器再优化一下就更好了。(抱拳)

静态文件404

大神,请教一下: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

找不到allauth这个app

在izone/urls.py文件里,allauth这个app找不到
下面第三行这个

urlpatterns = [
url(r'^adminx/', admin.site.urls),
url(r'^accounts/', include('allauth.urls')), # allauth

页面出现抖动的情况

当页面出现滚动条,滚动到最下面,刷新网页时整个页面出现抖动情况,上下抖动; 当页面内容不是很多,出现滚动条且可直接看到底部栏时,刷新网页整个页面出现左右抖动。

我在 adminx 添加文章 的时候报了一个错误提示

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.

注册 -> 快捷登录处选"微博"或者"Github" 后提示报错

@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.

请问怎么解决呢?感谢!

关于开发环境使用django-allauth

开发环境127.0.0.1:8000,我第一次使用GitHub能登陆成功,之后再次尝试都会在回转的时候报错,报错如下:
image
之后,我尝试在后台删除秘钥,同时在GitHub新增app并把秘钥加入网站后台,错误如出一辙,看了开发控制台,如下:
image
同时附上GitHub app配置,如下:
image
博主,我这是啥问题呀,开发环境能ok吗?

TODO

  • 添加站点播报,显示站点更新的内容
  • 置顶一篇文章,作为网站的全局wiki
  • 在提交评论的前端js代码中限制评论的字数,不能长篇大论

fix: static/comment/css/notification.css

.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
}

有个问题请教一下

tag_info = {
        '<h\d>': '',
        '</h\d>': '<br>',
        '<script.*</script>': '',
        '<meta.*?>': '',
        '<link.*?>': ''
    }

在转换表情代码里这一段是不是清洗经过markdown转化后的html文本?防止用户提交一些恶意的JavaScript脚本?

markdown的数学公式

您好,我用了你的v1版本,发现文章内无法使用数学公式,如($...$) 。
想问一下是不是我的操作不对~

pip install xxx error

安装第三方库的时候出错,第一个安装不行我换了下一个又错。。。。。

Segmentation fault (core dumped)

如题,这个错误是在执行python manage.py makemigrations时出现的,没有其它提示,请问有遇到过吗?怎么解决啊?

import问题

运行python3 manage.py makemigrations的时候总是说没有模块,pip3安装后,还是有新模块未安装,是不是有个模块包?
网站主能否把安装网站的教程写详细点或录制视频,小白求教,以后安装上了帮你宣传,嘻嘻

pymysql.err.InternalError: (1709, 'Index column size too large. The maximum column size is 767 bytes.')

环境: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,很难用,各种报错,浪费半个小时时间去搞!

TODO:添加镜像TAG查询工具

工具构想:

  • 通过输入镜像仓库名称可以查询镜像的tag,设定显示最大条数,可控
  • 添加镜像TAG的一些说明,比如lts一般表示长期支持版
  • 添加常用镜像快速查询入口,不需要用户输入,直接点击就可以达到接口请求的效果(常用查询设置缓存1天,减少后台查询请求的次数,可以省时)

缓存问题,关于timeline

博主,我在新建timeline内容后,页面无法把内容显示出来
image去掉cache就可以了,这个问题有遇见过吗

创建数据库报错

能否把数据库的版本及数据库 my.cnf 配置文件发下看看,每当我执行创建数据库时 django.db.utils.InternalError: (1709, 'Index column size too large. The maximum column size is 767 bytes.') 都会有这个错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.