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 details)

Uploaded Source

File details

Details for the file servercraft-0.0.2.tar.gz.

File metadata

  • Download URL: servercraft-0.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for servercraft-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c132b698db47752b468b2529eff89c78c1d497a6d79c9c1cf782f6103c4d33ef
MD5 97e1f37cd0c866f5a9481a75c643b574
BLAKE2b-256 b6e918f459c225186ee44a308deeffe9a3098e41ef7fd5afb899017b0793334a

See more details on using hashes here.

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