vicalloy / dpress Goto Github PK
View Code? Open in Web Editor NEWA simple blog powered by Django
A simple blog powered by Django
如果要发布blog是不是要使用production的settings文件,其中我看也会调用base.py,这个DEBUG是不是搞成False好一点?
Can you update credentials form admin site?
hello, here is py 3.5 and I just found the env.rc unworkable till I edited some codes of it.
first, there seemly to be not bin in env folder anymore, instead we have the Scripts folder work.
second, it should be https rather than http now if you want to get resources from pypi.douban.com.
so, I modified the env.rc as followings.
if ! [ -e $TOP_PATH/env/bin/activate ]; then
if [ -n "${VIRTUAL_ENV+x}" ]; then
deactivate
fi
virtualenv --unzip-setuptools --no-site-packages --distribute "$TOP_PATH/env"
$TOP_PATH/env/scripts/pip install -r requirements.txt -i "https://pypi.douban.com/simple"
fi
source $TOP_PATH/env/scripts/activate
export mg="$TOP_PATH/env/bin/python $TOP_PATH/manage.py"
pay attention to the
$TOP_PATH/env/scripts/pip
source $TOP_PATH/env/scripts/activate
$TOP_PATH/env/scripts/pip install -r requirements.txt -i "https://pypi.douban.com/simple"
in addition, if there is someone who is unfamiliar with .rc file (like me...), try run the script source enx.rc
via a linux shell such as git bash. I have made it in my win10.
thank you for your good work~
一小段测试代码
def foo():
print 'hello world'
会被渲染成
<pre><span class="k">def</span> <span class="nf">foo</span><span class="p">():</span>
<span class="err"> </span> <span class="err"> </span> <span class="k">print</span> <span class="s">'hello world'</span>
</pre>
输出
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.