Giter Club home page Giter Club logo

django-sample-app's Introduction

install

create virtual env

    virtualenv venv
    venv\Scripts\activate
    (env) e:\

Install dependencies

    (env) pip install -U -r requirements.txt

update db settings

    # file ".env"

    DEBUG=True
    SECRET_KEY=s3cr3t_key
    DATABASE_URL=mysql://root:rootadmin@localhost:3306/opencv
    ALLOWED_HOSTS=*

Syncdb

    (env) python manage.py migrate

Run

    (env) python manage.py runserver

deploy to apache

copy static files

    (env) python manage.py collectstatic

apache mod_wsgi setting

    LoadModule wsgi_module "E:\env\Lib\site-packages\mod_wsgi\server\mod_wsgi.cp36-win_amd64.pyd"

    WSGIScriptAlias / "E:\source\django-sample-app\bootcamp\bootcamp\wsgi.py"
    WSGIPythonHome "E:\source\django-sample-app\venv"
    WSGIPythonPath "E:\source\django-sample-app\bootcamp"

    <VirtualHost *:80>
        ServerName www.example.com
        
        <Directory "E:\source\django-sample-app\bootcamp\bootcamp">
            Require all granted
        </Directory>
        
        Alias /static "E:\source\django-sample-app\bootcamp\staticfiles"
        <Directory "E:\source\django-sample-app\bootcamp\staticfiles">
            Require all granted
        </Directory>

    </VirtualHost>

Installation Guide

Take a look at our wiki page for a detailed installation guide.

Demo

Try Bootcamp now at http://trybootcamp.vitorfs.com.

django-sample-app's People

Contributors

agiledots avatar

Watchers

James Cloos avatar

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.