kingofhawks / greenbuilding

绿色施工科研项目

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

greenbuilding

绿色施工科研项目

** Installation

  1. pip install -r requirements.txt

  2. Auto create database table

python manage.py makemigrations #to create migrations for those changes python manage.py migrate #to apply those changes to the database.

  1. Disable Windows Firewall to let 8000 port remote reachable

  2. Create backend super admin user

python manage.py createsuperuser Username: admin Password: 11111

  1. i18n support
    cd app_directory
    django-admin makemessages -l zh_CN
    django-admin compilemessages -l zh_CN
  2. python manage.py runserver 0.0.0.0:8000

Dependencies: 1.reportlab under windows you need to run CMD as administrator:pip install reportlab 2.gettext for i18n
http://www.gnu.org/software/gettext/
https://mlocati.github.io/articles/gettext-iconv-windows.html
3.phantomjs for PDF render

About

绿色施工科研项目


Languages

Language:HTML 52.2%Language:JavaScript 33.5%Language:CSS 12.3%Language:Python 1.4%Language:CoffeeScript 0.3%Language:PHP 0.3%Language:Makefile 0.0%Language:Ruby 0.0%Language:Java 0.0%Language:Shell 0.0%