Python-Django-DevOps Documentation

Similar documents
Application documentation Documentation

Tutorial 2 GitHub Tutorial

Revision control. INF5750/ Lecture 2 (Part I)

Django MFA Documentation

Kivy Designer Documentation

Software Development I

Version Control. Software Carpentry Github s Hello World Git For Ages 4 And Up You need source code control now

Git. Presenter: Haotao (Eric) Lai Contact:

Bishop Blanchet Intranet Documentation

Python Schema Generator Documentation

Sample Spark Web-App. Overview. Prerequisites

django-dynamic-db-router Documentation

Unifer Documentation. Release V1.0. Matthew S

Getting Django Set Up Using a Functional Test

Effective Software Development and Version Control

BlenderPanda Documentation. Release 0.1.0

Git and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48

Building a Django Twilio Programmable Chat Application

Bitdock. Release 0.1.0

Setting up GitHub Version Control with Qt Creator*

nacelle Documentation

Django-CSP Documentation

FEEG Applied Programming 3 - Version Control and Git II

Git: Distributed Version Control

Django-frontend-notification Documentation

Created by: Nicolas Melillo 4/2/2017 Elastic Beanstalk Free Tier Deployment Instructions 2017

Magento OpenERP Integration Documentation

Git Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : October, More documents are freely available at PythonDSP

django-openid Documentation

django simple pagination Documentation

What is version control? (discuss) Who has used version control? Favorite VCS? Uses of version control (read)

Tutorial: Getting Started with Git. Introduction to version control Benefits of using Git Basic commands Workflow

A Brief Git Primer for CS 350

Git: Distributed Version Control

Version control system (VCS)

Git. Charles J. Geyer School of Statistics University of Minnesota. Stat 8054 Lecture Notes

django-embed-video Documentation

Gunnery Documentation

Aldryn Installer Documentation

Git AN INTRODUCTION. Introduction to Git as a version control system: concepts, main features and practical aspects.

Software Revision Control for MASS. Git Basics, Best Practices

Git better. Collaborative project management using Git and GitHub. Matteo Sostero March 13, Sant Anna School of Advanced Studies

django-reinhardt Documentation

git commit --amend git rebase <base> git reflog git checkout -b Create and check out a new branch named <branch>. Drop the -b

Algorithm Engineering

About CVS. 1 Version Control - what is it? why is it useful?

Git, the magical version control

Version control. with git and GitHub. Karl Broman. Biostatistics & Medical Informatics, UW Madison

django-embed-video Documentation

Djam Documentation. Release Participatory Culture Foundation

1. Git. Robert Snapp

EECS150 Fall 2013 Checkpoint: DVI Test Pattern

Code Repository. P Blanchfield

Having Fun with Social Coding. Sean Handley. February 25, 2010

contribution-guide.org Release

Python Project Documentation

Lab 5 Exercise Build and continuous integration tools

Intro to Github. Jessica Young

The RestructuredText Book Documentation

Lab Exercise Git: A distributed version control system

What is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development;

manifold Documentation

G E T T I N G S TA R T E D W I T H G I T

Python Project Example Documentation

GitHub Classroom. Click Sign up in to top right of the page, and the following dialog is displayed.

Elixir Schedule Designer User Manual

Getting the files for the first time...2. Making Changes, Commiting them and Pull Requests:...5. Update your repository from the upstream master...

mri Documentation Release Nate Harada

Improving Your Life With Git

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

petfinder-api Documentation

CS 390 Software Engineering Lecture 4 - Git

Garment Documentation

Software Project (Lecture 4): Git & Github

IC Documentation. Release 0.1. IC team

Git AN INTRODUCTION. Introduction to Git as a version control system: concepts, main features and practical aspects.

This assignment requires that you complete the following tasks (in no particular order).

Lab 01 How to Survive & Introduction to Git. Web Programming DataLab, CS, NTHU

Python State Machine Documentation

USPAS Simulation of Beam and Plasma Systems

Agenda. - Final Project Info. - All things Git. - Make sure to come to lab for Python next week

KTH Royal Institute of Technology SEMINAR 2-29 March Simone Stefani -

mpkg Documentation Release theunknownxy

Archan. Release 2.0.1

django-messages Documentation

open-helpdesk Documentation

chatterbot-weather Documentation


Lab 08. Command Line and Git

Django Test Utils Documentation

Job Submitter Documentation

git Version: 2.0b Merge combines trees, and checks out the result Pull does a fetch, then a merge If you only can remember one command:

Lesson 7: Recipe Display Application Setup Workspace

Git version control with Eclipse (EGit) Tutorial

Programming Assignments

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

Using GitHub to Share with SparkFun a

bootmachine Documentation

How to version control like a pro: a roadmap to your reproducible & collaborative research

Windows. Everywhere else

Transcription:

Python-Django-DevOps Documentation Release 0.1 Daniele February 12, 2015

Contents 1 The community 1 2 Wisdom 3 3 Recipes 5 4 Contributing 7 5 Contents 9 5.1 Wisdom.................................................. 9 5.2 Recipes.................................................. 9 5.3 Contributing............................................... 10 6 Indices and tables 11 i

ii

CHAPTER 1 The community #django-devops on irc.freenode.net http://groups.google.com/group/python-devops 1

Python-Django-DevOps Documentation, Release 0.1 2 Chapter 1. The community

CHAPTER 2 Wisdom Comments, judgements and advice on different approaches, tools, methodologies etc. 3

Python-Django-DevOps Documentation, Release 0.1 4 Chapter 2. Wisdom

CHAPTER 3 Recipes Step-by-step cookbook-style tutorials designed to take inexperienced users all the way to a working setup of whatever is being introduced. 5

Python-Django-DevOps Documentation, Release 0.1 6 Chapter 3. Recipes

CHAPTER 4 Contributing Feel free to contribute anything! The Python/Django DevOp s Book of Wisdom and Recipes is not going to be much use if there are only apprentices and no sorcerers adding material to it. 7

Python-Django-DevOps Documentation, Release 0.1 8 Chapter 4. Contributing

CHAPTER 5 Contents 5.1 Wisdom 5.1.1 Online tools Security http://ponycheckup.com By Erik Romijn. Erik s pony checkup is an automated security checkup for Django websites. There are several security practices that can easily be probed from the outside, and this is what Erik s pony checkup looks for. Availability, uptime and monitoring https://www.pingdom.com Real-time monitoring. Plans from $10/month, with a free trial. 5.1.2 Server-side tools Self-inspectors https://github.com/evildmp/django-inspector By Daniele Procida. Django Inspector inspects and reports on Django sites. Starting at the site s / URL path, it will use the built in Django test Client and Beautiful- Soup to work its way through all the pages it can find links to on the site, and will report in various ways on what it has found. Useful for discovering broken URLs or obscure pages that throw errors. 5.2 Recipes 5.2.1 Using version control for your Django your project directory Your Django project directory needs to be treated with as much care as your applications. If you ever need to set up a new instance of the project (for example to set up a new development environment) you ll want the process as to: be as easy and quick as as possible replicate your live project precisely One way of doing this is to manage your project using version control, so that it can be cloned, branched, rolled back and otherwise managed in the same way as any other material you use version control to look after. 9

Python-Django-DevOps Documentation, Release 0.1 Required expertise basic use of version control software How to do it Create a new repository on your version control repository hosting service (GitHub, BitBucket, or whatever you like best) for the project. If you have an account that will allow you to create private repositories, use that. Initialise the project directory for version control. In Git, for example: git init Configure the version control system so that it ignores the file paths and types that you don t want include. In Git, this involves entering some patterns into a.gitignore file at the root of the repository, for example: *.pyc secret_settings.py processed_thumbnail_files temporary_uploads So, in this example we are excluding all compiled Python files, a file called secret_settings.py (if you don t have a private repository, you don t want to put secrets in it), a directory of rendered rather than source files, and a directory of files that don t need to be kept anyway. You will need to spend some time carefully setting up this aspect of configuration, to make sure unnecessary and worse - sensitive - files do not end up in a public repository. Danger: Your settings.py file contains sensitive information such as database passwords. You absolutely do not want to publish this information. One solution to the problem of sensitive information in your settings is to go through your settings file, carefully, and move that sensitive information into a file called for example secret_settings.py, and then, in settings.py: import secret_settings.py You ll have to keep the secret_settings safe somewhere else. 5.3 Contributing 5.3.1 Style guide In order to keep the formatting of book consistent, please try to follow the markup styles already used throughout the book. Please wrap lines at 78 columns See The page of example markup for a full set of markup examples. 10 Chapter 5. Contents

CHAPTER 6 Indices and tables genindex modindex search 11