Git Product home page Git Product logo

eds-djangoplate's Introduction

Eddie Hedges' Django Boilerplate

This is my personalized django project boilerplate. I made it to make starting a new project quick and efficient.

I would like to site my sources and inspiration for the project below:

Without the above sources my boilerplate would not have been possible.

I use virtualenv with virtualenvwrapper for local development and have written a short bash script that starts a project for me to develop locally in one simple command: mkdjangoproj myproject.

Here is the script:

mkdjangoproj () {
	mkproject --no-site-packages --prompt=$1: $1 &&
	git init &&
	git pull [email protected]:edhedges/eds-djangoplate.git master &&
	rm README.md &&
	pip install -r requirements.txt &&
	chmod +x manage.py
	./manage.py new_secret &&
	./manage.py syncdb &&
	./manage.py runserver
}

The boilerplate comes with a sample app that can be renamed, modified, or deleted it is basically only there for reference.

So once I run the mkproject function from my bash it does a number of things:

- Creates a virtualenv and project with the same name to be pythonic!
- Initializes the project as an empty git repo and pulls the boilerplate from github.
- Removes the README.md file.
- Installs django, south, and fabric.
- Makes manage.py executable and creates a new secret key, runs syncdb, and starts the local dev server.

Here is a list of the bare minimum files that NEED edited before deployment besides normal development:

- settings.py
- project.py
- httpd-vhosts.conf
- fabfile.py
- httpd.conf

For deployment, redeployment, and more see fabfile.py and read code.

eds-djangoplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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