Coder Social home page Coder Social logo

web_site's Introduction

Blog web site by Django frame

A simple blog by Python3.7, django, nginx, uwsgi, docker.

host:port

admin uri: host:port/admin

Start server

Configuration:

common config: myweb/config/general.ini

nginx config: myweb/nginx/myweb.conf

docker config: Dockerfile, docker-compose.yml

Development environment:

python manage.py runserver host:port

Production environment:

$ docker-compose up

Into container, initialize db and configuration

$ docker exec -it container_web_id /bin/bash

$ python manage migrate

$ python manage makemigration

$ python manage createsuperuser

Database Commands

Run MySQL container in local development environment:

$ docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=secret -d mysql:5.7

Import data to MySQL database in Docker:

$ docker exec -i mysql_container mysql -uroot -psecret mysql < db.sql

Code Style

To maintain the code consistency, this project uses following tools.

More

Google site verification:

Http ssl certificate:

Get free ssl/tls certificates by Acme. Here are some commands after acme scripts installed.

acme.sh --issue --domain website.com --standalone -k ec-256

acme.sh --installcert -d website.com --keypath ./nginx/website.key --fullchainpath ./nginx/website.crt --ecc

web_site's People

Contributors

jackieyqi avatar qmigrab avatar

Watchers

 avatar

Forkers

qmigrab

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.