Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to use Propeller 1.3.1 #54

Open
wants to merge 36 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4725129
Update tests.py
RaddishIoW Apr 25, 2019
8c739f7
Merge pull request #1 from RaddishIoW/RaddishIoW-patch-1
RaddishIoW Apr 25, 2019
50e6ed8
Update README.md
RaddishIoW Apr 25, 2019
2ee4385
Update .travis.yml
RaddishIoW Apr 25, 2019
de80817
Updated propeller to 1.3.1
RaddishIoW Apr 25, 2019
1c91d9a
Updated Django versions
RaddishIoW Apr 25, 2019
a1f78c7
Update .travis.yml
RaddishIoW Apr 25, 2019
43ee5a2
Update README.md
RaddishIoW Apr 26, 2019
bcd328b
Updated to use new name for package - "django2_propeller"
RaddishIoW Apr 26, 2019
359afd9
Updated travis to use Python 3.7 and Django 2.2
RaddishIoW Apr 26, 2019
7b4ba8a
Fixed Django version for pip
RaddishIoW Apr 26, 2019
d34cca3
Fixed Django version for pip
RaddishIoW Apr 26, 2019
729426a
Update README.md
RaddishIoW Apr 26, 2019
fe6ab21
Fixed references to django_propeller
RaddishIoW Apr 26, 2019
fb00373
Updated reference to django.forms.extras to django.forms.widgets for …
RaddishIoW Apr 26, 2019
a834876
Update README.md
RaddishIoW Apr 26, 2019
1478090
Fixed assert to work with Django >2.0 in tests.py line 289
RaddishIoW Apr 26, 2019
7e7a823
Merge pull request #3 from RaddishIoW/stable
RaddishIoW Apr 26, 2019
2c7088e
Update README.md
RaddishIoW Apr 26, 2019
577202b
Updated the docs to rename the project
RaddishIoW Apr 26, 2019
4bd0c62
Update README.md
RaddishIoW Apr 26, 2019
f0bfae4
Fixes #4 by moving the fonts folder up one level
RaddishIoW Apr 26, 2019
25e9a35
Update LICENSE
RaddishIoW Apr 30, 2019
f0ea445
Tidied and updated templates in the demo project to remove references…
RaddishIoW Apr 30, 2019
ae5ffa2
Merge pull request #5 from RaddishIoW/master
RaddishIoW Apr 30, 2019
8fdc21d
Split requirements.txt into seperate dev and common.txt files.
RaddishIoW May 1, 2019
4090f54
Added .bumpversion.cfg to simplify incrementing the version of the pa…
RaddishIoW May 1, 2019
0c77399
Fixed requirements.txt
RaddishIoW May 1, 2019
5467523
Fixed requirements.txt
RaddishIoW May 1, 2019
7ac7b13
Fixed requirements.txt
RaddishIoW May 1, 2019
1310a0f
Added static version to setup.py
RaddishIoW May 1, 2019
1a8f79c
Updated version number
RaddishIoW May 1, 2019
7787bf4
Updated version number
RaddishIoW May 1, 2019
9982373
Revert "Added static version to setup.py"
RaddishIoW May 1, 2019
3eee4fa
Merge branch 'stable' into master
RaddishIoW May 1, 2019
a1c95c9
Merge pull request #6 from RaddishIoW/master
RaddishIoW May 1, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[run]
omit =
docs/*
django_propeller_demo/*
django2_propeller_demo/*
manage.py

[report]
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,5 @@ fabric.properties
db.sqlite3
docs/_build/
/MANIFEST
/*.sublime-project
/*.sublime-workspace
3 changes: 1 addition & 2 deletions .landscape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ uses:
autodetect: yes
ignore-paths:
- docs
- django_propeller_demo
- django2_propeller_demo
ignore-patterns:
- ^manage.py$
- (^|/)docs(/|$)
- ^tests.py$
python-targets:
- 2
- 3
23 changes: 11 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
sudo: false

# Python versions for matrix
dist: xenial # required for Python >= 3.7
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.7"

# Django versions for matrix
env:
- DJANGO_VERSION='>=1.8,<1.9'
- DJANGO_VERSION='>=1.9,<1.10'
- DJANGO_VERSION='>=1.10,<1.11'
#- DJANGO_VERSION='>=1.11,<1.12' Django 1.11 coming soon
- DJANGO_VERSION='>=2.0,<2.1'
- DJANGO_VERSION='>=2.1,<2.2'
- DJANGO_VERSION='>=2.2,<3.0'

# Command to install dependencies, e.g. pip install -r requirements.txt
install:
Expand All @@ -26,16 +25,16 @@ install:
# Command to run tests, e.g. python setup.py test
script:
- pip install -r requirements.txt
- coverage run --source=django_propeller manage.py test
- coverage run --source=django2_propeller manage.py test
- python manage.py check

matrix:
exclude:
- python: "3.3"
env: DJANGO_VERSION='>=1.9,<1.10'
- python: "3.3"
env: DJANGO_VERSION='>=1.10,<1.11'
- python: "3.4"
env: DJANGO_VERSION='>=2.1,<2.2'
- python: "3.4"
env: DJANGO_VERSION='>=2.2,<3.0'

# Report to coveralls
after_success:
- COVERALLS_REPO_TOKEN=zhYHkOdDrdEtPvuCowlDRTzI4kEYmwn1B coveralls
- COVERALLS_REPO_TOKEN=ItbtB3pj34SxQaN3kesEg8rYfbCI7GLXv coveralls
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Types of Contributions
Report Bugs
~~~~~~~~~~~

Report bugs at https://github.com/tfroehlich82/django-propeller/issues.
Report bugs at https://github.com/RaddishIoW/django2-propeller/issues.

If you are reporting a bug, please include:

Expand Down Expand Up @@ -43,7 +43,7 @@ articles, and such.
Submit Feedback
~~~~~~~~~~~~~~~

The best way to send feedback is to file an issue at https://github.com/tfroehlich82/django-propeller/issues.
The best way to send feedback is to file an issue at https://github.com/RaddishIoW/django2-propeller/issues.

If you are proposing a feature:

Expand Down
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2017 Thorsten Fröhlich
Original work Copyright (c) 2017 Thorsten Fröhlich
Modified work Copyright (c) 2019 Adam Radestock

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include CONTRIBUTING.rst
include LICENSE
include README.md
recursive-include django_propeller *
recursive-include django_propeller_demo *
recursive-include django2_propeller *
recursive-include django2_propeller_demo *
31 changes: 0 additions & 31 deletions PKG-INFO

This file was deleted.

50 changes: 18 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,38 @@
Propeller for Django
Propeller for Django2
====================

Write Django as usual, and let ``django-propeller`` make template output into code based on Google's Material Design Standards & Bootstrap.
Write Django as usual, and let ``django2-propeller`` make template output into code based on Google's Material Design Standards & Bootstrap.


[![Build Status](https://travis-ci.org/tfroehlich82/django-propeller.svg?branch=stable)](https://travis-ci.org/tfroehlich82/django-propeller)
[![Coverage Status](https://coveralls.io/repos/github/tfroehlich82/django-propeller/badge.svg?branch=stable)](https://coveralls.io/github/tfroehlich82/django-propeller?branch=stable)
[![Code Health](https://landscape.io/github/tfroehlich82/django-propeller/stable/landscape.svg?style=flat)](https://landscape.io/github/tfroehlich82/django-propeller/stable)
![PyPI version](http://img.shields.io/pypi/v/django-propeller.svg)
![PyPI downloads](http://img.shields.io/pypi/dm/django-propeller.svg)
[![Updates](https://pyup.io/repos/github/tfroehlich82/django-propeller/shield.svg)](https://pyup.io/repos/github/tfroehlich82/django-propeller/)
[![Python 3](https://pyup.io/repos/github/tfroehlich82/django-propeller/python-3-shield.svg)](https://pyup.io/repos/github/tfroehlich82/django-propeller/)
[![Build Status](https://travis-ci.com/RaddishIoW/django2-propeller.svg?branch=stable)](https://travis-ci.com/RaddishIoW/django2-propeller)
[![Documentation Status](https://readthedocs.org/projects/django2-propeller/badge/?version=latest)](https://django2-propeller.readthedocs.io/en/latest/?badge=latest)
[![Coverage Status](https://coveralls.io/repos/github/RaddishIoW/django2-propeller/badge.svg?branch=stable)](https://coveralls.io/github/RaddishIoW/django2-propeller?branch=stable)
[![Updates](https://pyup.io/repos/github/RaddishIoW/django2-propeller/shield.svg)](https://pyup.io/repos/github/RaddishIoW/django2-propeller/)
[![Python 3](https://pyup.io/repos/github/RaddishIoW/django2-propeller/python-3-shield.svg)](https://pyup.io/repos/github/RaddishIoW/django2-propeller/)


Requirements
------------

- Python 2.7, 3.3, 3.4, 3.5, or 3.6
- Django >= 1.9
- Python 3.3, 3.4, 3.5, or 3.6
- Django >= 2.0


Installation
------------

1. Install using pip:
```
pip install django-propeller
pip install django2-propeller
```

2. Add to INSTALLED_APPS in your ``settings.py``:

```
'django_propeller',
'django2_propeller',
```

3. In your templates, load the ``django_propeller`` library and use the ``propeller_*`` tags:
3. In your templates, load the ``django2_propeller`` library and use the ``propeller_*`` tags:



Expand All @@ -61,7 +59,7 @@ Example template
Documentation
-------------

The full documentation is at http://django-propeller.readthedocs.io/en/stable/
The full documentation is at https://django2-propeller.readthedocs.io/en/latest/


Demo application
Expand All @@ -71,11 +69,11 @@ The demo application provides a number of useful examples.

clone the repo:

$ git clone https://github.com/tfroehlich82/django-propeller.git
$ git clone https://github.com/RaddishIoW/django2-propeller.git

cd into the cloned directory:

$ cd django-propeller
$ cd django2-propeller

run the testserver:

Expand All @@ -91,7 +89,7 @@ Bugs and suggestions

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.

https://github.com/tfroehlich82/django-propeller/issues
https://github.com/RaddishIoW/django2-propeller/issues


Further Information
Expand All @@ -104,19 +102,6 @@ Bootstrap: http://getbootstrap.com/
Google Material Design: https://material.io/


Donation
--------

[![Donation](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ARFDZCBQTWRSQ)


[BTC Donation] 35bfZEE6NknfBVnEd86XZpGgqKeVjmXQxn

[ETH Donation] 0xc9eb5eaed97c94cd47def84fd23a9802fa40384b

[LTC Donation] LW4cbjTYCYuymdCBQRzgkRWMGfLBaG5g4C


License
-------

Expand All @@ -126,5 +111,6 @@ You can use this under MIT License. See [LICENSE](LICENSE) file for details.
Author
------

Developed and maintained by [Thorsten Fröhlich](https://github.com/tfroehlich82),
Originally developed and maintained by [Thorsten Fröhlich](https://github.com/tfroehlich82),
based on the idea of [django-bootstrap3](https://github.com/dyve/django-bootstrap3) from [Dylan Verheul](https://github.com/dyve).
This package is updated by [Adam Radestock](https://github.com/RaddishIoW) to work with Django 2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '1.5.0'
__version__ = '2.0.1'
2 changes: 1 addition & 1 deletion django_propeller/apps.py → django2_propeller/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class DjangoPropellerConfig(AppConfig):
name = 'django_propeller'
name = 'django2_propeller'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion django_propeller/navbar.py → django2_propeller/navbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class NavBarLinkItem(object):
def __init__(self, name="", url=None, icon=None):
"""


"""
self.name = name
self.url = url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
'error_css_class': 'has-error',
'success_css_class': 'has-success',
'formset_renderers': {
'default': 'django_propeller.renderers.FormsetRenderer',
'default': 'django2_propeller.renderers.FormsetRenderer',
},
'form_renderers': {
'default': 'django_propeller.renderers.FormRenderer',
'default': 'django2_propeller.renderers.FormRenderer',
},
'field_renderers': {
'default': 'django_propeller.renderers.FieldRenderer',
'inline': 'django_propeller.renderers.InlineFieldRenderer',
'default': 'django2_propeller.renderers.FieldRenderer',
'inline': 'django2_propeller.renderers.InlineFieldRenderer',
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
TextInput, DateInput, FileInput, CheckboxInput, MultiWidget,
ClearableFileInput, Select, RadioSelect, CheckboxSelectMultiple
)
from django.forms.extras import SelectDateWidget
from django.forms.widgets import SelectDateWidget
from django.forms.forms import BaseForm, BoundField
from django.forms.formsets import BaseFormSet
from django.utils.html import conditional_escape, escape, strip_tags
Expand Down
7 changes: 7 additions & 0 deletions django2_propeller/static/css/propeller.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions django2_propeller/static/css/propeller.min.css.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions django2_propeller/static/js/propeller.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block propeller_title %}django_propeller template title{% endblock %}</title>
<title>{% block propeller_title %}django2_propeller template title{% endblock %}</title>

<!-- Bootstrap css-->
{% propeller_css %}
Expand All @@ -31,7 +31,7 @@
</head>

<body>
{% block propeller_content %}django-propeller template content{% endblock %}
{% block propeller_content %}django2-propeller template content{% endblock %}
{% if not 'javascript_in_head'|propeller_setting %}
{% propeller_javascript jquery=True %}
<script type="text/javascript" src="{% static 'js/propeller.min.js' %}"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -793,38 +793,6 @@ def propeller_alert(content, alert_type='info', dismissable=True):
return render_alert(content, alert_type, dismissable)


# @register.tag('buttons')
# def propeller_buttons(parser, token):
# """
# Render buttons for form
#
# **Tag name**::
#
# buttons
#
# **Parameters**:
#
# submit
# Text for a submit button
#
# reset
# Text for a reset button
#
# **Usage**::
#
# {% buttons %}{% endbuttons %}
#
# **Example**::
#
# {% buttons submit='OK' reset="Cancel" %}{% endbuttons %}
#
# """
# kwargs = parse_token_contents(parser, token)
# kwargs['nodelist'] = parser.parse(('endbuttons',))
# parser.delete_first_token()
# return ButtonsNode(**kwargs)


@register.simple_tag(takes_context=True)
def propeller_messages(context, *args, **kwargs):
"""
Expand Down
File renamed without changes.
File renamed without changes.