[go: up one dir, main page]

Skip to content

A suite of Innovation and Enterprise Management websites for the universities in Liaoning Province

Notifications You must be signed in to change notification settings

School-of-Innovation-Experiment/provinceManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InnovationManagement

A website for College students Innovation Entrepreneurial in Liaoning Province, it is School Version

Environment

  • Please, execute this cmd: sudo pip install -r requirements.txt

How to install

  1. create database in mysql: create database ProvinceManagement character SET utf8;
  2. sync database in project root path: python manage.py syncdb
  3. migrate database: python manage.py migrate
  4. test server : python manage.py runserver IP:PORT
  5. visit your web browser: IP:PORT

Q&A

  1. When you login the website, you may meet the follow issue: Site matching query does not exist Solve:
    • python manage.py shell
    • from django.contrib.sites.models import Site
    • new_site = Site.objects.create(domain='foo.com', name='foo.com')

How to deploy in production environment?

  1. Install necessary software
  • sudo apt-get install openssl libssl0.9.8 libssl-dev libpcre3 libpcre3-dev
  • install nginx: download source code -> ./configure -> make -> sudo make install -> sudo /etc/init.d/nginx restart -> visit localhost in webbrowser
  • sudo apt-get install uwsgi uwsgi-core uwsgi-plugin-python
  • sudo pip install uwsgi
  • cd deploy -> sudo sh run.sh start|restart|stop|deploy|update
  1. Config your mysql server

About

A suite of Innovation and Enterprise Management websites for the universities in Liaoning Province

Resources

Stars

Watchers

Forks

Packages

No packages published