jhao104 / django-blog Goto Github PK
View Code? Open in Web Editor NEWdjango搭建博客
License: MIT License
django搭建博客
License: MIT License
请问博主是怎么使用Markdown编写代码块语法的,我使用你的代码,然而 prism 并没有渲染我的代码高亮,比如这样写后并没有高亮
print('hello world!')
部署完后界面没有登录入口,如何创建博客?
python manage.py makemigrations blog
Traceback (most recent call last):
File "manage.py", line 8, in
from django.core.management import execute_from_command_line
File "/root/blog/lib/python2.6/site-packages/django/init.py", line 3, in
from django.utils.version import get_version
File "/root/blog/lib/python2.6/site-packages/django/utils/version.py", line 7, in
from django.utils.lru_cache import lru_cache
File "/root/blog/lib/python2.6/site-packages/django/utils/lru_cache.py", line 28
fasttypes = {int, str, frozenset, type(None)},
你好,请问我用富文本编辑器但博客文章无法显示图片是什么原因呀
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'django_blog',
'USER': 'root',
'PASSWORD': '5849312',
'HOST': '127.0.0.1',
'PORT': '3306'
}
}
是修改这部分吗?
看了你的示例博客:http://www.spiderpy.cn/blog,不支持分页吗?
django-blog/templates/blog/right.html
Line 116 in 1965475
你好,我没有完全拷贝你的项目,在我修改的时候发现这个right.html被index.html加载,但是view.py中index函数只返回了一个 return render(request, 'blog/index.html', {"article_list": article_list, "source_id": "index"})
这句return中并没有传递tag_list,那这个标签list是怎么加载的呢?
django.core.exceptions.ImproperlyConfigured: WSGI application 'django_blog.wsgi.application' could not be loaded; Error importing module: 'No module named wsgi
Dear @jhao104
Thanks for sharing your project. I met a problem
Without any error promotion until python manage.py runserver
Django 1.10.2
Python 2.7.15
介绍python的web项目怎么写,比如要不要MVC啊,怎么MVC啊,要不要Restful啊,怎么Restful啊
niu a
您好博主 请问 在博客里添加一个文章 这个文章里有一些代码 请问如何能够 展示出代码快 (看起来很好看 能够区分出是Python代码)
什么时候开发注册功能
I like this quote
请教大神,执行python manage.py makemigrations blog,出现下列错误是什么情况?
File "/root/blog/django-blog/django_blog/urls.py", line 22, in
url(r'^blog/', include('blog.urls', namespace='blog')),
File "/root/blog/venv/lib/python2.7/site-packages/django/conf/urls/init.py", line 50, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/root/blog/django-blog/blog/urls.py", line 25, in
url(r'^getComment/$', views.GetComment, name='get_comment'),
AttributeError: 'module' object has no attribute 'GetComment'
看了博主的博客,我觉得十分漂亮,我希望可以吧UI稍作修改自己做博客用,希望先征得您的同意
畅言评论回推地址怎么填写?评论数据接收不到。。
怎么回事啊
请问我现在想部署在阿里云服务器上,应该怎么做呢,Nginx+uwsgi都安装了,但是有些地方不会配置,自己尝试了一下,但是报502的错误了.很尴尬.
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
你的博客的nav中的分类二级菜单有时候会下滑展不开
提示表不存在,好像是迁移时出了问题,想请教一下应该怎么解决
你好,我能问下你有出现过这种情况吗,我使用你的实例部署上去之后访问没问题可是页面是一直刷新中的
ALLOWED_HOSTS = ['*']也设置了
博主,文章是怎么编辑的呢?是markdown 编辑器么,没找到相关的页面啊
up主更新下可好?
历史今天的部分好像崩了,显示不了了
view中的index函数没有传 tag_list的值
那right.html中
{% for tag in tag_list %} <li><a href="{% url "blog:tag" name=tag.tag_name %}" title="标签:{{ tag.tag_name }} ">{{ tag.tag_name }}</a></li> {% endfor %}
接收的tag_list从哪里传来的呢?希望能够解惑。
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.