Giter VIP home page Giter VIP logo

gbohner / django-base-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alex-codelab/django-base-template

0.0 2.0 0.0 335 KB

Project Template for Django 1.10 + Bootstrap3 . Has some commonly used apps pre-configured (like Allauth, django_compressor ). Probably the fastest way to start up a complete Django project.

Python 34.33% CSS 25.39% JavaScript 3.09% HTML 34.94% Shell 2.24%

django-base-template's Introduction

Django Project Template - Bootstrap3, Allauth#

About

This template installs a fully functional Django website in just a few minutes.

This version of the project template includes new options for Django 1.8, 1.9, 1.10 , has bootstrap3 installed and Allauth configured, and some other useful apps as well.

The goal of this template is to set up a fully functional django project in minutes, and have a clear project structure.

The project structure:

src                   # project root  
├── manage.py
├── /static
├── /config           # project configuration 
│   ├── /settings   
│   │   ├── base.py   # project settings   
│   │   ├── local.py  # local settings (development)
│   ├── urls.py        
│   ├── wsgi.py
├── /base             # base templates and static files  
│   ├── models.py
│   ├── /static
│   ├── /templates
│    ...
├── /myApp            # create your app using Startapp..    
    ... 

Demo: http://dj.lxer.eu

django installation

Installation

  • Make sure you have libffi installed

    • $ sudo apt-get install libffi-dev
  • (when using python3) Make sure you have libevent-dev, python3-dev installed

    • $ sudo apt-get install libevent-dev python3-dev
  • Install if not installed already (needed for bcrypt):

    • $ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
  • Install if not installed already (needed for pillow):

    • $ sudo apt-get install libtiff5-dev libjpeg8-dev
  • Create your working environment and virtualenv:

    • $ virtualenv project

    python3:

    • $ virtualenv -p python3 project
  • $ cd project

  • $ source bin/activate

  • run install.sh : - $ source <(wget -qO- https://raw.githubusercontent.com/allox/django-base-template/master/install.sh)

(To see what actually happens check https://raw.githubusercontent.com/allox/django-base-template/master/install.sh )

...and that's all!

Features

By default, this project template includes:

A set of basic templates and Twitter Bootstrap 3.3.5 (located in the base app, with css and javascript included).

Templating:

  • django_compressor for compressing javascript/css/less/sass

Authentication, registration

  • allauth (+ base-template)

Security:

  • bleach
  • bcrypt - uses bcrypt for password hashing by default

Background Tasks:

  • Celery

Caching:

  • python-memcached

Admin:

  • Includes django-debug-toolbar for development and production (enabled for superusers)

Testing:

  • nose and django-nose
  • pylint, pep8, and coverage

Any of these options can added, modified, or removed as you like after creating your project.

Python 3 compatability

  • use python3-memcached instead of python-memcached

Prerequisites

  • Python 2.6 , 2.7 , 3
  • pip
  • virtualenv (virtualenvwrapper is recommended for use during development)

License

This software is licensed under the New BSD License.

django-base-template's People

Contributors

alex-codelab avatar eshar 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.