A website for College students Innovation Entrepreneurial in Liaoning Province, it is School Version
- Please, execute this cmd: sudo pip install -r requirements.txt
- create database in mysql: create database ProvinceManagement character SET utf8;
- sync database in project root path: python manage.py syncdb
- migrate database: python manage.py migrate
- test server : python manage.py runserver IP:PORT
- visit your web browser: IP:PORT
- 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')
- 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
- Config your mysql server