Giter Club home page Giter Club logo

autoplay's Introduction

Build Status

Django Template for GliaCloud

This is a django template for gliacloud

INSTALLATION & SETTINGS

Install Django

To install django, type the following command

sudo pip install django

Create Django project from the template

To create the project, run the following command and please replace your_project_name to what you like :

django-admin.py startproject --template=https://github.com/livingbio/django-template/archive/master.zip --extension=py,md,yml,ini your_project_name

Setting Virtualenv

At first, you should make sure you have virtualenv installed.

after that, just cd to your_project_name:

cd your_project_name

Then create your virtualenv:

virtualenv venv

Second, you need to enable the virtualenv by

source venv/bin/activate

Install all dependencies:

pip install -r requirements.txt

Setting up local environment variables

Settings are stored in environment variables via django-environ. The quickiest way to start is to copy and rename local.sample.env into local.env:

cp src/autoplay/settings/local.sample.env src/autoplay/settings/local.env

Then edit the SECRET_KEY in local.env file, replace bg8d7k^m*tf@(=$45_mq2lnmd*!-hyo#*szb5zm$o)m=ma@9tt into any Django Secret Key, for example:

SECRET_KEY=twvg)o_=u&@6^*cbi9nfswwh=(&hd$bhxh9iq&h-kn-pff0&&3

Run web server

After that, just cd to src folder:

cd src

And run migrate and http server:

python manage.py migrate
python manage.py runserver

Documentation

You can use mkdocs to write beatuiful documentations. By typing:

mkdocs serve

Then you can see your document in http://localhost:8001/

Detailed instructions

Take a look at the docs for more information.

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.