Python+Django 构建个人网站

Python+Django 构建个人网站

wordpress个人博客(阿里服务器)开始准备使用 Python+Django 构建个人网站,但是因为是个人网站需要自己搭建网站,没有提供模板,没有时间,也没有必要购买服务器,现在许多Blog网站都可以记录,最后放弃了。搬到了Hexo:Hexo + Github + 域名


最后记录一下

Python+Django搭建自己的blog网站

Python+Django搭建自己的blog网站
Django博客教程

1、需要安装python、Django、MySql
2、需要安装pip:pymysql
3、MySql安装后需要修改密码
4、引用css样式,使用{% %}需要导入{% load static %}


{% load static %}
    <!-- css -->
    <link rel="stylesheet" href="{% static 'blog/css/bootstrap.min.css' %}" rel="external nofollow"
          rel="external nofollow">
    <link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"
          rel="external nofollow" rel="external nofollow" rel="external nofollow">
    <link rel="stylesheet" href="{% static 'blog/css/pace.css' %}" rel="external nofollow" rel="external nofollow">
    <link rel="stylesheet" href="{% static 'blog/css/custom.css' %}" rel="external nofollow">

    <!-- js -->
    <script src="{% static 'blog/js/jquery-2.1.3.min.js' %}"></script>
    <script src="{% static 'blog/js/bootstrap.min.js' %}"></script>
    <script src="{% static 'blog/js/pace.min.js' %}"></script>
    <script src="{% static 'blog/js/modernizr.custom.js' %}"></script> 

菜鸟教程:Django教程 http://www.runoob.com/django/django-template.html

django 知识点

django中文网

Django博客开发教程

你可能感兴趣的:(个人博客网站)