文章列表
原文http://www.weiguda.com/blog/1/
1. 总体介绍
django-uuslug是一个很方便的将中文转化成拼音slug的插件. 通过使用django-uuslug, 可以保确保slug是唯一的, 并且都是unicode编码的.
django中的slug是什么: slug是一个新闻属性, django中的slug是指有效URL的一部分, 能使URL更加清晰易懂. 比如有这样一篇文章, 标题是"那个13岁的孩子", 它的URL地址是"/news/na-ge-13-sui-de-hai-zi", 后面这一部分便是slug.
2 ...
When Using:
Python 3.5
Django 1.9.1
Mezzanine 4.1
This management command fails:
python manage.py collecttemplates
Error message:
/usr/local/lib/python3.5/site-packages/django/core/management/base.py:265: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, u ...
ALLOWED_HOSTS = ['localhost','local']
TIME_ZONE = 'Asia/Shanghai'
USE_TZ = True
LANGUAGE_CODE = "zh-cn"
# Supported languages
LANGUAGES = (
('zh-cn', _('Chinese')),
)
USE_I18N = True
Windows 下:
pip install virtualenvwrapper-win
【可选】Windows下默认虚拟环境是放在用户名下面的Envs中的,与桌面,我的文档,下载等文件夹在一块的。更改方法:计算机,属性,高级系统设置,环境变量,添加WORKON_HOME,如图(windows 10 环境变量设置截图):
3.2 使用方法:
mkvirtualenv zqxt:创建运行环境zqxt
workon zqxt: 工作在 zqxt 环境 或 从其它环境切换到 zqxt 环境
deactivate: 退出终端环境
其它的:
rmvirtualenv ENV:删除运行 ...
After you download Oracle SQL developer 2.1,you will find it's all in chinese if you located in China.
there is one way to change it into english
1.find sqldeveloper.conf in location ../sqldeveloper/bin/sqldeveloper.conf
2.open it,and add below 2 item
AddVMoption -Duser.language=en
AddVMop ...
create Txt and zip
- 博客分类:
- vbscript
call createTxtfileWithSeq()
call zipFile("D:\TestData\MPCI\80\vbs")
Function createTxtfileWithSeq()
set fso=createobject("Scripting.filesystemobject")
for i=0 to 3
for j=0 to 9
if i=0 and j=0 then
j=j+1
end if
if i=3 and j=2 then
exit for
exit fo ...
自留地
Dim xlApp
Dim xlWorkBook
Dim xlWorkSheet
Function CreateExcel(ExcelPath)
Set xlApp=createobject("Excel.Application")
sSourceFile=ExcelPath
Set fso=createobject("Scripting.filesystemobject")
'判断文件是否已存在
bFileExist=fso.FileExists(sSourceFile)
if bFileExist then
...