Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ojii/django-cms-html5-1140px-boilerplate
No more tedious setups. Start designing and developing right away.
https://github.com/ojii/django-cms-html5-1140px-boilerplate
Last synced: 8 days ago
JSON representation
No more tedious setups. Start designing and developing right away.
- Host: GitHub
- URL: https://github.com/ojii/django-cms-html5-1140px-boilerplate
- Owner: ojii
- Created: 2010-12-28T22:01:45.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-28T22:30:24.000Z (almost 14 years ago)
- Last Synced: 2024-04-15T00:40:46.953Z (7 months ago)
- Language: Python
- Homepage: http://facebook.com/bitmazk
- Size: 216 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Stop peeling. Start cooking!
============================At bitmazk we create beautifull handcrafted websites. After nearly 10 years
of web development it turned out that a simple apache / django / django-cms
stack works best for us and our customers.To streamline the process of setting up new projects for new customers we
created this boilerplate. Stop peeling. Start cooking!Ingredients
===========- automated setup of your virtualenv
- automated setup of an empty test database
- based on django-cms_
- using django-compressor_
for combining, compressing and minifying static files
- comes with SASS_ support
- ready for deployment at Webfaction_Preparation
===========You will need quite some tools such as
virtualenv_, virtualenvwrapper_, csstidy_, sass_ and some more. Have a look at
our bitmazk-environment_ for a full list of tools and libraries needed.Recipe
======- Clone this repository,
- create a virtualenv,
- initiate the project
- and your database
::git clone git://github.com/bitmazk/django-cms-html5-1140px-boilerplate.git yourproject
cd yourproject
./bin/initvirtualenv.sh
./bin/initproject.sh
./bin/initdatabase.sh
cd webapps/django/project
workon yourvirtualenv
python manage.py syncdb
python manage.py migrate
python manage.py runserver
``createvirtualenv.sh`` has been put into its own script because it will take
quite some time to install all dependencies. You might not want to create an own
virtualenv for all your boilerplate based projects (however, it is advisable to
do so).``initdatabase.sh`` will ask you for a database name. It will use your input
for the username as well and drop existing entities, then create fresh ones.
HTML5 Boilerplate and SASS
==========================
We are standing on the shoulders of giants and use the awesome
html5-boilerplate_ as a submodule.Usually the main .css file that comes with the html5-boilerplate has a part
somewhere in the middle of the file where your very own styles should go.
In order to be able to define these styles with SASS ``initproject.sh`` slices
that main .css file into two pieces. Now you can define your own styles in a
.sass file and let django-compressor take care of combining and compressing
everything.Unfortunately we have to inject quite some django specific code into the
``index.html`` that comes with the html5-boilerplate. Therefore this repo ships
with its own ``base.html`` and we don't ever touch the html5-boilerplate's
``index.html``. Maybe this can be automated in the future so that our
``base.html`` will be generated out of ``index.html`` but for now be warned:
Our ``base.html`` might not reflect latest and important changes to the
html5-boilerplate's ``index.html``. We will try to monitor changes there and add
them to our ``base.html`` manually but we are just humans. And we are damn busy.
So you better check it yourself as well.If you find our ``base.html`` horribly outdated, please create an issue and we
will take care quickly.Hosting at Webfaction
=====================You might wonder about the folder structure of this project. We chose this
structure because it reflects the structure on our hosted webservers at our
awesome webhost Webfaction_.We usually have one static app for serving static files plus one django app for
serving the django application. A deployment script on the server checks out the
repository and copies everything to its destination via rsync. We might release
that script in the future as well..... _django-cms: https://github.com/divio/django-cms
.. _django-compressor: https://github.com/mintchaos/django_compressor
.. _SASS: http://sass-lang.com/
.. _Webfaction: http://www.webfaction.com
.. _virtualenv: http://pypi.python.org/pypi/virtualenv/
.. _virtualenvwrapper: http://pypi.python.org/pypi/virtualenv/
.. _csstidy: http://csstidy.sourceforge.net/
.. _sass: http://sass-lang.com/
.. _bitmazk-environment: https://github.com/bitmazk/bitmazk-environment
.. _html5-boilerplate: https://github.com/paulirish/html5-boilerplate