Skip to content
arocks edited this page Sep 12, 2014 · 40 revisions

Welcome to the edge!

edge - a rapid, cutting-edge Django project skeleton.

screenshot

Features

  • Python 3 support - e.g. Uses pathlib for paths in settings
  • Django 1.7 support - e.g. south dependency removed
  • Sign-in, Sign-up and Logouts - Basic user registration and sign-ins using crispy forms
  • Bootstrap bundled - Snazzy Bootstrap 3 based home page and admin out of the box
  • Clean start - Based on Django 1.7 project structure
  • Secrets Secure - Picks SECRET_KEY from environment as a best practise
  • Minimal dependencies - Only essential packages listed in requirements.txt not all recommended ones

Warning: Software is currently beta and bleeding edge.

Motivation

  • Django programmers are not designers. They need a better starting point say, with Bootstrap.
  • Many project skeletons contain recommended packages making them bloated.
  • None of the project skeletons were Python 3 and Django 1.7 compatible at the time of creating the project.
  • Better layout (a subjective preference) that is intuitive to use.

Which packages were included and why?

  • django-environ - By default, settings has environment specific information. This package helps you define such variables in the environment which is more secure.
  • django-crispy-forms - Provides the Sign-in and Sign-up forms.
  • django-braces - Essential set of mixins used for the included views
  • django-admin-bootstrapped - Added Bootstrap 3 theme to the admin

Quick start:

Use the following one-liner but change my_proj at end to the name of your project:

$ django-admin.py startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env my_proj

Project is on Github: https://github.com/arocks/edge

Customisation Tips:

  1. Brand Name: Edit src/templates/_brandname.html
  2. Logo: Change src/static/site/img/logo.png
  3. Settings: Set environment vars. Move local.env out of git.
  4. CSS: Change src/static/site/css/main.css

Changelog

=== (2014-09-12) ===

  • Added django-environ and pathlib
  • Added Sign-in, Sign-up, logout functionality.
  • Admin now has bootstrap theme.

=== (2014-09-01) ===

  • initial release

Credits

Proposed Features

  • Admin themed with bootstrap. Try to have foreign key drop down.
  • Include django compressor. Full python sass pipeline might be ambitious.
  • Add messages (See simple example )
  • Add 404.html and 500.html
  • Add py.test in the dev env. Change app template to include it.
  • Add crispy forms for bootstrapped forms
  • #, sign out and # forms using crispy
  • Extract navbar into a _navbar.html with a navigation pattern
Clone this wiki locally