Giter Site home page Giter Site logo

blog's Issues

前端框架

hello,想问一下你的前端用了什么框架?还是自己用bootstrap写的?thanks

'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

您好:
添加分类 和 标签集时候不允许中文,谢谢!

Request Method: POST
http://192.168.100.102:8000/admin/app/tag/add/?_to_field=id&_popup=1
1.11.6
UnicodeEncodeError
'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/utils/encoding.py in force_text, line 80
/root/.virtualenvs/env_django/bin/python
2.7.12
['/home/ygm/django_work/bootstrap3', '/home/ygm/django_work/blog', '/home/ygm/django_work/blog', '/root/.virtualenvs/env_django/lib/python2.7', '/root/.virtualenvs/env_django/lib/python2.7/plat-x86_64-linux-gnu', '/root/.virtualenvs/env_django/lib/python2.7/lib-tk', '/root/.virtualenvs/env_django/lib/python2.7/lib-old', '/root/.virtualenvs/env_django/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/root/.virtualenvs/env_django/local/lib/python2.7/site-packages', '/home/ygm/django_work/django-highcharts', '/root/.virtualenvs/env_django/lib/python2.7/site-packages', '/home/ygm/django_work/blog']
Sun, 22 Oct 2017 21:41:20 +0800

Exception Value: Invalid template library specified. ImportError raised when trying to load 'bootstrap3.templatetags.bootstrap3': cannot import name flatatt

请教下:
Environment:

Request Method: GET
Request URL: http://192.168.100.102:8000/

Django Version: 1.11.6
Python Version: 2.7.12

Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.AppConfig',
'bootstrap3']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'app.middleware.ShowSqlMiddleware']

Traceback:

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
217. response = self.process_exception_by_middleware(e, request)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
215. response = response.render()

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/response.py" in render
107. self.content = self.rendered_content

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content
82. template = self.resolve_template(self.template_name)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/response.py" in resolve_template
64. return select_template(template, using=self.using)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/loader.py" in select_template
44. engines = _engine_list(using)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/loader.py" in _engine_list
72. return engines.all() if using is None else [engines[using]]

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/utils.py" in all
89. return [self[alias] for alias in self]

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/utils.py" in getitem
80. engine = engine_cls(params)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/backends/django.py" in init
30. options['libraries'] = self.get_templatetag_libraries(libraries)

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/backends/django.py" in get_templatetag_libraries
48. libraries = get_installed_libraries()

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/backends/django.py" in get_installed_libraries
113. for name in get_package_libraries(pkg):

File "/root/.virtualenvs/env_django/local/lib/python2.7/site-packages/django/template/backends/django.py" in get_package_libraries
130. "trying to load '%s': %s" % (entry[1], e)

Exception Type: InvalidTemplateLibrary at /
Exception Value: Invalid template library specified. ImportError raised when trying to load 'bootstrap3.templatetags.bootstrap3': cannot import name flatatt

下载程序后,运行报报错

'utf8' codec can't decode byte 0xca in position 3: invalid continuation byte. You passed in 'E:\\xca\xe9\xbc\xae\python\Django\Django \xcf\xee\xc4\xbf\11\blog-f91fa845daf6d5beba19a0c5982bbe49321b5cd7\blog\templates' (<type 'str'>)

About to the import Errors and something

as it to say,which means i can't correctly import some module:
There are two :

  • ImportError: cannot import name 'Celery'

  • execute_from_command_line(sys.argv) catch an Exception

i have known the database you deploy is good,can i replace it to use mysql and so on(i do learn some database except yours,sad face!), and how i do next to config.

无法安装

用python3.6,Django1.11.4

pycharm提示
django_compressor
python-memcached
rcssmin
rjsmin
无法安装

bugs

blog/app/models.py", line 2, in
from django.core.urlresolvers import reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'

------->from django.urls import reverse

???????

关于markwown

你前端显示使用了 markdown的样式 那后台添加的时候有没有用富文本编辑器 ,我这边后台添加了kindeditor富文本编辑器 ,添加的内容在前端显示总是报错不晓得原因,求指导!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.