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.

Files for servercraft, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size servercraft-0.0.2.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page