diff --git a/README.rst b/README.rst index 77d905f3..5f06efd5 100644 --- a/README.rst +++ b/README.rst @@ -242,11 +242,15 @@ Admin support development is on initial stage. Only basic admin features are ava Changelog ========= -0.3.0 - GIT Version -------------------- - -* Added frontend module +0.3.0 2015-05-11 - Alpha +------------------------ +* Migrated to new version of materializecss framework +* List all applications in admin navigation menu +* Added breadcrumbs in admin +* Custom material css and js cleanup +* New Frontend template +* Various widget rendering fixes (splitdatetime, empty selects) 0.2.1 2015-04-20 - Alpha ------------------------ diff --git a/setup.py b/setup.py index 18f0eec8..4e613903 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='django-material', - version='0.2.1', + version='0.3.0', description='Material design for django forms and admin', license='BSD', author='Mikhail Podgurskiy', diff --git a/tests/static/img/admin_change.png b/tests/static/img/admin_change.png index c4d3fe2a..868cce37 100644 Binary files a/tests/static/img/admin_change.png and b/tests/static/img/admin_change.png differ diff --git a/tests/static/img/admin_list.png b/tests/static/img/admin_list.png index 5de3136c..94125939 100644 Binary files a/tests/static/img/admin_list.png and b/tests/static/img/admin_list.png differ diff --git a/tests/static/img/admin_login.png b/tests/static/img/admin_login.png index 95ac41ba..78ddf20c 100644 Binary files a/tests/static/img/admin_login.png and b/tests/static/img/admin_login.png differ diff --git a/tests/static/img/admin_main.png b/tests/static/img/admin_main.png index 3996c896..62f16c8c 100644 Binary files a/tests/static/img/admin_main.png and b/tests/static/img/admin_main.png differ diff --git a/tests/static/img/frontend.png b/tests/static/img/frontend.png new file mode 100644 index 00000000..1d05717a Binary files /dev/null and b/tests/static/img/frontend.png differ diff --git a/tests/templates/index.html b/tests/templates/index.html index 23c0e608..8531dd92 100644 --- a/tests/templates/index.html +++ b/tests/templates/index.html @@ -149,14 +149,21 @@
$ pip install django-material
-And add it into INSTALLED_APPS settings
+And add desired apps into INSTALLED_APPS settings
INSTALLED_APPS = (
'material',
+ 'material.frontend',
'material.admin',
...
)
@@ -274,6 +282,61 @@ Forms samples
TEMPLATES = [
+ {
+ ...
+ 'OPTIONS': {
+ 'context_processors': [
+ ...
+ 'material.frontend.context_processors.modules',
+ ],
+ },
+ },
+]
+ from material.frontend import urls as frontend_urls
+
+ urlpatterns = [
+ ...
+ url(r'^admin/', include(admin.site.urls)),
+ url(r'', include(frontend_urls)),
+]
+
+
+To create a new module make a `modules.py` file, inside app directory, with following content
+
+.. code-block:: python
+
+from material.frontend import Module
+
+ class Sample(Module):
+ icon = 'mdi-image-compare'
+
+By default module expose a single view that renders html template from <module_name>/index.html file.
+