Giter VIP home page Giter VIP logo

django-template's Introduction

Dependences installation

For project installation you need Vagrant, VirtualBox, cookiecutter, git. Check whether these components are installed. If these components have not installed, please install them.

VirtalBox installation

Download the latest version from the website Virtualbox https://www.virtualbox.org/wiki/Downloads or use the package manager

Linux:

  • $ sudo apt-get update
  • $ sudo apt-get install virtualbox
  • $ sudo apt-get install virtualbox-dkms

Mac OS:

  • $ brew cask install virtualbox

Vagrant installation

Linux:

Don't try install vagrant from official OS repositories (or compare the version available in a repo to the version specified on the official site) https://www.vagrantup.com/downloads.html

Then install nfs-utils

  • $ sudo apt-get update
  • $ sudo apt-get install nfs-utils nfs-utils-lib

If the last doesn't work use these commands

  • $ sudo apt-get install nfs-kernel-server
  • $ sudo apt-get install nfs-common
  • $ sudo service nfs-kernel-server start

Mac OS:

Download the latest version from Vagran official website: https://www.vagrantup.com/downloads.html

Or install by means of homebrew and cask:

  • $ brew cask install vagrant

Сookiecutter installation

  • $ sudo pip install -U cookiecutter

Ansible installation

  • pip install --upgrade paramiko PyYAML Jinja2 httplib2 six ansible==2.0.1.0

Git installation

Use instruction from https://git-scm.com/book/en/v1/Getting-Started-Installing-Git

Linux:

  • $ sudo apt-get install git

Mac OS:

  • $ brew install git

Project template installation

For project installation we use cookiecutter. Execute the following command:

  • $ cookiecutter https://github.com/steelkiwi/django-template.git

Then follow instructions from command line.

The template includes ansible configuration, choose roles, necessary for the project.

Start project

  • $ vagrant up
  • $ vagrant ssh
  • $ cd /vagrant
  • $ cp env.example ./config/.env
  • $ python manage.py runserver 0.0.0.0:8000

Git inicialisation

  • $ git init
  • $ git remote add origin {{ repo_url }}
  • $ git add -A
  • $ git commit -m "Init commit"
  • $ git push origin -u master

django-template's People

Contributors

stepanovsh avatar kolyanu4 avatar andyrivne avatar dobrovolsky avatar

Watchers

Ramiro Batista da Luz avatar 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.