Skip to main content

Use django to build an online server

Project description

#ServerCraft

Feng Zhang (jumphone@163.com)

python2.7 and django1.8.7

Github: https://github.com/jumphone/servercraft

###Preparations:

pip install servercraft

###Step1: Write a python file: demo.py.

from servercraft import *

server_dir = “./”

server_name = “server_center”

app_name = ‘app1’

build_server(server_dir, server_name)

add_app(server_dir ,app_name, server_name)

###Step2: Type commands.

python demo.py

cd ./server_center

sh run_server.sh

###Step3: Check it!

http://127.0.0.1:8000/app1/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servercraft-0.0.2.tar.gz (6.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page