Giter VIP home page Giter VIP logo

io's Introduction

IO

GitHub stars GitHub forks GitHub watchers

IO is a blog base on Python + Django (IO Repository).
In a few minutes you'll be set up with a minimal, responsive blog like the one below !
1

Quick Start

Step 1) Clone repository

git clone https://github.com/xushvai/io.git  

Step 2) Environmental preparations

The environment should be 'Python2.7(devel) + Django1.7.1 + MySQL'.

Install Python development version :

apt-get install python-dev    

Install MySQL :

apt-get install mysql-server  

Install Python interface to MySQL :

apt-get install python-mysqldb  

Install Django :

sudo pip install django==1.7.1

Auto install other requirements :

python install_requirements.py   

(The location of the file 'install_requirements.py' is io/install_requirements.py)

If the 'pip' is not installed in your environment, follow the steps below to complete the installation :

curl https://bootstrap.pypa.io/ez_setup.py -o - | python  
easy_install pip  

Step 3) Config Database

Edit xblog/settings_dev.py to config database info.

Example :

DATABASES['default']['NAME'] = 'xblog'
DATABASES['default']['USER'] = 'root'
DATABASES['default']['PASSWORD'] = '123456'
DATABASES['default']['HOST'] = '127.0.0.1'
DATABASES['default']['PORT'] = '3306'

You should create a database named 'xblog' in MySQL :

mysql> create database xblog;  

Finally, make models into your database schema :

python manage.py makemigrations  
python manage.py migrate  

Step 4) Run !

python manage.py runserver 0.0.0.0:8080  

or nonhup

nohup python manage.py runserver 0.0.0.0:8080&

Now you can try http://127.0.0.1:8080 .

Step 5) Publish your first blog post

Create an admin account for first start :

python manage.py createsuperuser  

For example, set username 'admin' and password '123456'.

Then access http://127.0.0.1:8080/admin, type the username and password to login : 2
3

Questions?

Open an Issue and let's chat!

Resources

Logo

logo

io's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.