Commits

vickyi  committed a9cf94a Draft

添加新的忽略项

  • Participants
  • Parent commits 1deff56

Comments (0)

Files changed (13)

 ChineBlog\blog\migrations\*
 ChineBlog\social\migrations\*
 ChineBlog\db\*
-ChineBlog\local_settings.py
+ChineBlog\local_settings.py
+ChineBlog/blog/static/uploads/
+syntax: glob
+
+.project
+.pydevproject
+.settings\*
+*.pyc
+ChineBlog\blog\templates\blog\coolblue\*~
+ChineBlog\blog\static\uploads\*
+ChineBlog\blog\migrations\*
+ChineBlog\social\migrations\*
+ChineBlog\db\*
+ChineBlog\local_settings.py

File ChineBlog/blog/static/uploads/beauty/0.jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0000.jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0000_admin_thumbnail.jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_(5).jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_(5)_admin_thumbnail.jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_(6).jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_(6)_admin_thumbnail.jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_(7).jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_(7)_admin_thumbnail.jpg

Added
New image

File ChineBlog/blog/static/uploads/beauty/0_admin_thumbnail.jpg

Added
New image

File docs/install.txt

 }
 
 and you should create a databse in your mysql whit name myblogdb
+CREATE DATABASE IF NOT EXISTS myblogdb default charset utf8 COLLATE utf8_general_ci
+ALTER DATABASE myblogdb charset=utf8
+DROP DATABASE IF EXISTS myblogdb
 
 3、install required app
 INSTALLED_APPS = (
 ImproperlyConfigured: Middleware module "django.middleware.csrf" does not define a "CsrfResponseMiddleware" class
 A:
 CsrfResponseMiddleware is for backward compatibility and should be removed
+2\
+Q:
+Hi,不好意思,又要打扰你了,./manage.py runserver后,在页面访问 http://127.0.0.1:8000/ 报错,
 
+User matching query does not exist.
 
 
+> try:
+>         author = BlogUser.objects.get(user__username=admin)
+>     except BlogUser.DoesNotExist:
+>         user = User.objects.get(username=admin)
+>
+> 请问是什么原因啊?
+A:因为博客需要一个管理员,所以,需要在admin——127.0.0.1:8000/admin——中添加一个“用户”,用户名需要和settings文件中的admin用户名一致。
+注意是应用——Blog——下的用户,这个用户需要关联一个Django auth用户。这个用户可以是manage.py syncdb时创建的。
 
+3、
+关于报错:
+Incorrect string value: '\xE5\x88\x86\xE7\xB1\xBB' for column 'name' at row 1
+已经找到问题在哪儿了,是我创建数据库的时候没有指定编码,重新创建了数据
+库,已经OK了
+
+
+
+
+