GithubHelp home page GithubHelp logo

pombredanne / deployment-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mark0978/deployment

0.0 0.0 0.0 148 KB

Django deployment automates the creation of the wsgi and webserver files using DJANGO project settings as guidelines

License: MIT License

Python 100.00%

deployment-1's Introduction

django-deployment is a very simple way for you create the files needed to deploy your project with apache (or with template mods, any mod_wsgi platform)

Requirements

django-deployment requires Django 1.0 or later. The application is intended work with any versions of the Django framework, but has only been tested with 1.5 and above.

Installation

Download django-deployment using one of the following methods:

pip install git+git://github.com/mark0978/django-deployment.git

Package Download

Download the latest .tar.gz file from the downloads section and extract it somewhere you'll remember. Use python setup.py install to install it.

Checkout from GitHub

Execute the following command, and make sure you're checking django-deployment out somewhere on the PYTHONPATH:

git clone git://github.com/mark0978/django-deployment.git

Verifying Installation

The easiest way to ensure that you have successfully installed django-deployment is to execute a command such as:

python -c "import deployment; print deployment.get_version()"

If that command completes with some sort of version number, you're probably good to go. If you see error output, you need to check your installation (I'd start with your PYTHONPATH).

Configuration

First of all, you must add this project to your list of INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ...
    'deployment',
    ...
)

Next, install make sure that your have a PROJECT_ROOT in your settings.py file PROJECT_ROOT should point at the root of the project, not the root of the virtualenv, although thru the templated output, you can control where production static files come from. For a typical 1.4 Django install, it would look something like this:

import os PROJECT_ROOT = os.path.abspath(os.path.split(os.path.dirname(__file__))[0])

Customizing deployment

All of the output is written into the PROJECT_ROOT/deploy folder using templates in the deployment folder. If you want to modify the templates, I'd recommend copying the originals from the app templates folder into your own project templates folder and making the changes there. That way you get your templates under your source control.

deployment-1's People

Contributors

mark0978 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.