django-web-app-book icon indicating copy to clipboard operation
django-web-app-book copied to clipboard

Django Web 开发实战

Results 11 django-web-app-book issues
Sort by recently updated
recently updated
newest added

这个教程是用md写的吧? 那边上的目录及导航栏很好看,也看到过类似的网站,请问是用什么框架写的吗? 最近有个东西要写,想要用这种方式展示

![default](https://cloud.githubusercontent.com/assets/3754759/5009963/e58a312a-6aa7-11e4-8e78-e031bb425fb6.png) 为什么导航条遮住了最上面的字,base.html和github中的那个对应文件一样了也还是这样?

1、编写数据模型时,@models.permalink def get_absolute_url(self): return ('post', (), {'pk': self.pk})定义这个函数是什么意思呢? 2、views中post = get_object_or_404(Post, pk=pk)这个怎么能获取数据库中指定的内容对象?pk是什么呢? 3、编写urls时,?P\d+)正则表达式又是什么意思呢? 问题比较多,请原谅我这个菜鸟。

如果 class Category 定义在Post的下面 south的时候 会出现 NameError: name 'Category' is not defined 建议加引号 po_type = models.ForeignKey('Category', verbose_name=u'文章分类', blank=True, null=True)

这个板块下面怎么写了 评论实现? 评论是不是应该考虑新建一个板块写

main.css 的内容在这里没写 直接跳过了

分类 name 写成 ``` alert(1111) ``` 也行啊

这里是不是应该写成 我们这里通过django 自定义template filter的方式来实现解析文章内容。 template tag 和 template filter 应该是不同的东西 filter 带管道的功能 tag 只是输出一些东西 它们都定义在templatetags 目录里面

blog.views.index和blog.views.post修改代码都是一样的 应该是不一样的 index 是 posts post 是post

blog 项目生成错误 Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly