-
Notifications
You must be signed in to change notification settings - Fork 244
Home
arocks edited this page Sep 12, 2014
·
40 revisions
edge - a rapid, cutting-edge Django project skeleton.
- 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.
- 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.
- 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
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
- Brand Name: Edit
src/templates/_brandname.html
- Logo: Change
src/static/site/img/logo.png
- Settings: Set environment vars. Move
local.env
out of git. - CSS: Change
src/static/site/css/main.css
=== (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
- Background photo courtesy: Death to the Stock Photo
- Social icons: Font Awesome icons
- Admin themed with bootstrap. Try to have foreign key drop down.
- Django suit is not fully free. See #.
- Grappelli (not bootstrap :( but so many good features)
- django-admin-bootstrapped (light but no foreign key part) Intro post
- django-admin-bootstrap Responsive
- Or simply override the templates in admin folder
- Include
django compressor
. Full python sass pipeline might be ambitious.- Short tip on django compressor and pyscss
- Twitter scss port. Adding as a sub-module in github.
- See also django-pyscss
- Bootstrap setup in Django tutorial part 2
- 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