django
大、男人
这个作者很懒,什么都没留下…
展开
-
django安装postgresql
yum insall python-psycopg2 #安装数据库适配器yum install postgresql-server #按章postgresql数据库/etc/init.d/postgresql status //查看数据库状态service postgresql initdb //初始化数据库 一般路径在/var/lib/pgsql/data/etc原创 2014-03-21 22:45:04 · 958 阅读 · 0 评论 -
Generic detail view DetailView must be called with either an object pk or a slug.
解决办法 url(r'^(?P\d+)/$',-$ url(r'^(?P\d+)/results/$',-$ This is the correct core: url(r'^(?P\d+)/$',-$原创 2014-04-03 15:22:17 · 3100 阅读 · 0 评论