Skip to content

yangjiandong/newsmeme

Repository files navigation

newsememe
==========

2012.10.23
----------

    1. use mysql

    python manage.py createall

    2. 使用SqlAutocode,根据数据库已有表,产生符合Flask-SqlAlchemy要求的models的定义
    http://ryan-liu.iteye.com/blog/1530979
    python scripts/generate_models.py

    pip install SqlAutocode (0.7)

    3. 简单分页
    utils/pages.py
    http://ryan-liu.iteye.com/blog/1471819

2012.10.14
----------

    1. vagrant config
    config.vm.network :hostonly, "192.168.33.10"
    本地可通过http://192.168.33.10 访问

    2. flask
    python manage.py runserver -t 0.0.0.0 -p 5000
    本地可通过http://192.168.33.10:5000 访问

2012.10.13
----------

    1. virtualenv 在 ubuntu 下使用
    virtualenv --no-site-packages flask09
    source flask09/bin/activate
    ...
    deactivate

    2. create requirements
    pip freeze > stable-req.txt

2012.10.07
----------

    1. 增加debug tool
    https://github.com/mgood/flask-debugtoolbar
    pip install flask-debugtoolbar

2012.09.06
----------

  1. flask 0.9
  flask-script 0.3.3
  flask-mail 0.6.1

2012.08.24
----------

   1. create

--新建环境时使用--no-site-packages将不使用标准的site-packages:
virtualenv --no-site-packages flask09

pip2 install ipython
pip2 install Flask
cd newsmeme
python setup.py develop
python manage.py createall

   --flask mail in win7
   easy_install -N lamson chardet Flask-Mail

   2. 0.9下使用themes有问题,合并themes文件夹到templates


   --END

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published