'my_calendar' is not a valid tag library
2011-08-20 11:04
721 查看
错误信息:'my_calendar' is not a valid tag library: Template library my_calendar not found, tried django.templatetags.my_calendar,django.contrib.admin.templatetags.my_calendar,address.templatetags.my_calendar
而在“\my_calendar\templatetags\”下面明明有my_calendar.py存在。
原来:
“\my_calendar\templatetags\”下缺少__init__.py,所以Python不会把它当做一个模块。
所以,
添加__init__.py就可以了。
相关文章推荐
- 'Operation is not valid due to the current state of the object' error during postback
- 'Infinity' is not a valid numeric or approximate numeric value 异常信息处理
- Error: Target id 'android--1' is not valid. Use 'android.bat list targets' to get the target ids.
- The run destination My Mac 64-bit is not valid for Running the scheme '*'
- "Host 'admin-PC' is not allowed to connect to this MySQLserver"
- ERROR spi.SqlExceptionHelper : 'Infinity' is not a valid numeric or approximate numeric value 问题解决
- Delphi ''测试...'' is not a valid component name.
- DependencyProperty.UnsetValue}' is not a valid value for property 'Background' 的错误原因
- 配apache出错:libtool: link: `passwd/apr_getpass.lo' is not a valid libtool object
- libtool: link: `ext/standard/info.lo' is not a valid libtool object
- 'WHERE' is the same of 'on' in mysql(many times,but not always)
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
- 'WriteHuge' : is not a member of 'CFile'
- 编译错误“The run destination My Mac 64-bit is not valid for Running the scheme '***',解决办法
- Resolving a 'sticky tag is not a branch' error
- 错误提示:transform.position assign attempt for 'XXX' is notvalid。Input rotation is {NaN, NaN, NaN, NaN}
- The run destination My Mac 64-bit is not valid for Running the scheme '*****'.
- The run destination My Mac 64-bit is not valid for Running the scheme '*'.
- Archive for required library: '/libs/android-support-v4.jar' in project '' cannot be read or is not
- SQL创建数据库失败解决办法:(Collation '' is not valid.)