Source

django-template-project /

Filename Size Date modified Message
media
source
static
238 B
555 B
2.7 KB
27 B

Django template project

Using django-template-project you will minimize bunch of routine tasks required for every new project:

  • create directory structure
  • make an order in your project and apps settings
  • develop web skeleton (styles + html templates)

Project came from our Django development experience. We are using it, so, maybe it will be useful for you.

This is what you will get after cloning and launching:

http://webriders.com.ua/media/images/projects/django-template-project/django-template-project.png

Any ideas, improvements or critics are very welcome!

Features

Settings

  1. Separated settings per each application, see settings/apps package
  2. Deployment and local settings profiles

Bundled Main application

  1. Basic main application with standard structure (templates, migrations, fixtures, etc);
  2. Standard Django 1.3 static files directories (css, img, js);

Templates

  1. Basic layout templates, including content, header, footer, and menu. You can extend from layout/base.html;
  2. Support for meta tags, title, css and javascript extensions, when extending from base.html;
  3. 404 and 500 templates;

CSS

  1. CSS reset;
  2. Basic layout styles;
  3. Rich content styles;

JavaScript:

  1. Enabled jQuery (we've made it as ext django app);

Static files:

  1. We use Django 1.3 static files, as its a rocket feature!
  2. Configured static and media roots

Utility scripts (win):

  1. I18n & localization (make and compile messages);
  2. Dump, load, init DB;
  3. South migrations;

Requirements

See requirements.txt in root folder:

  • Django 1.3
  • South

Installation

  1. Clone it;
  2. Disconnect from Mercurial;
  3. Make syncdb (it will create SQLite database in source/db);
  4. Run;
  5. Extend it;

Change log

2011-11-01

  • Update folder structure
  • Update .hgignore
  • Fix links in menu

2011-10-02

  • web app renamed to main
  • rollback to settings via imports
  • django 1.3 static files support
  • jquery as ext app (static)
  • basic html templates (common case: header, content, footer)
  • basic css styles
  • 404 & 500 templates

TODO

Made by WebRiders

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.