Code Monkey home page Code Monkey logo

go_django's Introduction

go_django

Synopsis

light template/skeleton for getting setting up a django project with MySql (or whatever).

Motivation

setting up projects is pretty boring, this makes it faster provides for some level of consistency across projects and streamlines setup of my prefered django project structure

Installation

in your terminal run:

django-admin.py startproject --template=https://github.com/benavram/go_django/archive/master.zip --extension=py,gitignore project_name

Usage

built for django 1.8

install in a virtualenv from the termnal using the command line above (make sure you change project_name to your project's name)

I like to move the .gitignore and requirements.txt files to the parent directory. I also create the media and static roots there. ends up looking something like this (running moveit.py and them ../main.py should do the same thing):

.
├── virtualenv/
   ├── project_name/
        ├── project_name/
            ├── settings/
        ├── app_name/
        ├── static_files/
            ├── media/
            ├── static/
                ├── css/
                ├── fonts/
                ├── img/
                ├── js/
        ├── templates/
   ├── static/
        ├── media_root/
        ├── static_root/
.

<<<<<<< HEAD install requirements if you want - currently limited to django==1.8 and django-debug-toolbar>=1.3.0. This project setup uses MySql, but I tend install the adapter for that independently because it can be a pain in the ass/platform dependent (or comment MySql and uncomment another db option)

install requirements if you want - currently limited to django==1.8 and django-debug-toolbar>=1.3.0. This project setup uses MySql, but I tend to set that up independently because it can be a pain in the ass/platform dependent.

b48d517c2526e0b3cc6bc741d6f1a351010c71fb

pip install -r requirements.txt

setup your database and run migrations. You can update/add connection settings in project_name/setttings/cred.py

python manage.py migrate

Credit

in creating this I took a lot of ideas from the folllowing sources:

https://github.com/codingforentrepreneurs

https://github.com/lincolnloop/django-layout

https://github.com/jcalazan/django-project-template

License

freely distributable under the terms of the license.

go_django's People

Contributors

benavram avatar

Watchers

 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.