GithubHelp home page GithubHelp logo

django-skeleton-1's Introduction

My Django project skeleton layout

Requirements Status

Project template for Django 1.7 w/ Zurb Foundation

Most of it is based on. django-drf-template but i stripped out DRF and changed the folder structure a bit to suit what i tend to use.

Install

You will need Postgres installed and the following ones (for ubuntu/debian, for others systems look in your package managers).

$ sudo apt-get install libpq-dev python-dev libffi-dev

Create your virtualenv (examples will use virtualenvwrapper), I will use the name myproject but use your own name.

$ mkdir myproject && cd myproject
$ mkvirtualenv myproject
$ pip install django
$ django-admin.py startproject myproject --template=https://github.com/DanGamble89/Django-Skeleton/archive/master.zip
$ cd myproject
$ pip install -r requirements/local.txt
$ vim project_name/settings/local.py // Edit database settings.
$ chmod +x manage.py
$ ./manage.py migrate

If you want, you can also add a pre-commit flake8 hook to ensure that commit respects it.

$ flake8 --install-hook

By default it will not stop commits because of warning, a quick look at .git/hooks/pre-commit shows that putting an environment variable of FLAKE8_STRICT will stop them.

And with all that, you should be almost good to go. There are a few hardcoded temporary settings that you will want to replace, look for the string 'Ann Onymous' and you should find them.

django-skeleton-1's People

Contributors

dan-gamble avatar

Watchers

James Cloos avatar Andrew Hart 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.