Skip to content

Commit

Permalink
release 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Upadhyay committed Feb 24, 2015
1 parent bee73ff commit 561b762
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 10 deletions.
7 changes: 6 additions & 1 deletion ChangeLog.rst
@@ -1,6 +1,11 @@
importd ChangeLog
=================

0.3.3 - 24-Feb-2015
-------------------

* added livereload command/feature.

0.3.2 - 27-Jan-2015
-------------------

Expand All @@ -26,7 +31,7 @@ importd ChangeLog
* Add importd-boilerplate hyperlink.
* Auto Add coffin/django-jinja.
* Added support for Django1.7 and Python3.4, removed support for python3.3.
* Added autoimport keyword argument, to control if views etc should be auto
* Added autoimport keyword argument, to control if views etc should be auto
imported.
* Added a blueprint like framework inspired from flask

Expand Down
5 changes: 3 additions & 2 deletions README.rst
Expand Up @@ -2,7 +2,7 @@ Issues you can help with right now: |waffle|

Build Status: |build-status|

.. |waffle| image:: https://badge.waffle.io/amitu/importd.png?label=ready&title=Ready
.. |waffle| image:: https://badge.waffle.io/amitu/importd.png?label=ready&title=Ready
:target: https://waffle.io/amitu/importd
:alt: 'Stories in Ready'

Expand Down Expand Up @@ -81,6 +81,7 @@ Features
* Auto Add django-debug-toolbar (Needs to add it manually to INSTALLED_APPS)
* Auto SECRET_KEY: If no SECRET_KEY on settings, try to read SECRET_KEY from ./secret.txt , if no ./secret.txt generate a random string then write it to ./secret.txt and finally return it as SECRET_KEY.
* Auto Add coffin/django-jinja (jinja2 integration)
* Support for livereload

Installation
============
Expand All @@ -106,7 +107,7 @@ Contributors
* Dmytro Vorona (https://github.com/alendit)
* Jannis Leidel (https://twitter.com/jezdez)
* Lukasz Balcerzak (https://github.com/lukaszb)
* Juan Carlos (https://github.com/juancarlospaco)
* Juan Carlos (https://github.com/juancarlospaco)
* Josep Cugat (https://github.com/jcugat)
* Yu Byunghoo (https://github.com/if1live)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Expand Up @@ -45,7 +45,7 @@
# built documents.
#
# The short X.Y version.
version = '0.3.2'
version = '0.3.3'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
41 changes: 36 additions & 5 deletions docs/source/index.rst
Expand Up @@ -60,7 +60,7 @@ d.main() acts as management command too:
$ python hello.py help shell
python hello.py help shell (02-18 21:14)
Usage: hello.py shell [options]
Usage: hello.py shell [options]
Runs a Python interactive interpreter. Tries to use IPython or bpython, if
one of them is available.
Expand Down Expand Up @@ -103,7 +103,7 @@ calling d(dont_configure=True) before any other importd functionality.
wsgi server
-----------
importd based hello.py is a `wsgi app`_ without any more work.
importd based hello.py is a `wsgi app`_ without any more work.
... wsgi example http://www.tornadoweb.org/documentation/wsgi.html ...
Expand Down Expand Up @@ -168,7 +168,7 @@ For testing many a times sqlite is sufficient, and for those times importd
automatically configures django with sqlite3 as database, with sqlite file
stored in `db.sqlite` in the same folder as hello.py.
This can be disabled by passing actual database settings DATABASES to d().
This can be disabled by passing actual database settings DATABASES to d().
@d decorator
------------
Expand Down Expand Up @@ -374,15 +374,15 @@ Usage:
Content-Type: text/html; charset=utf-8
Location: http://localhost:8000/asd
$ curl -b "csrftoken=cnoaUDrr08haTTAMjpGWaPPBgt5rG1ZW" -d "csrfmiddlewaretoken=cnoaUDrr08haTTAMjpGWaPPBgt5rG1ZW&x=10&y=1" "http://localhost:8000/fhurl/?json=true"
$ curl -b "csrftoken=cnoaUDrr08haTTAMjpGWaPPBgt5rG1ZW" -d "csrfmiddlewaretoken=cnoaUDrr08haTTAMjpGWaPPBgt5rG1ZW&x=10&y=1" "http://localhost:8000/fhurl/?json=true"
{"response": 10, "success": true}
views can return non HttpResponse objects
-----------------------------------------
Django views are expected to only return HttpResponse based objects. importd
allows you to do more than this.
allows you to do more than this.
A view can return a string, which is treated as name of template, which is
rendered with RequestContext and returned. A view can also return a tuple of
Expand Down Expand Up @@ -581,6 +581,37 @@ If you want to use more advanced features, you pass a dictionary. ::
blueprints={"app3-clone": {"blueprint": "app3.views.bp", "url_prefix": "app3-clone/"}}
livereload support
------------------
ImportD comes with livereload support.
To activate it you have to pass keyword argument "lr", which is a dict.
eg.
.. code-block:: python
d(
DEBUG=True,
lr={
"static/scss,static/js": "make build"
}
)
Subsequently, you can run python app.py livereload, which will listen on port
8000 and watch the folders "static/scss" and "static/js" and run "make build"
if any file is modified in either folder.
You can pass any number of patterns as key value, eg if you want different cmds
to run for css files and different for js files etc.
In order to use this feature, please install livereload package first.
This feature injects a auto reload js in each page, and runs a websocket in
background, which signals the JS to reload the page everytime one of the watched
file changes and command is finished.
a more detailed example
-----------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@
description="a django based miniframework, inspired by sinatra",
long_description=long_description,

version="0.3.2",
version="0.3.3",
author='Amit Upadhyay',
author_email="upadhyay@gmail.com",

Expand Down

0 comments on commit 561b762

Please sign in to comment.