Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit 13bde1c

Browse files
authored
Merge pull request #20 from dipcode-software/feat/documentation
Feat/documentation
2 parents 48e762b + 0523240 commit 13bde1c

File tree

6 files changed

+40
-23
lines changed

6 files changed

+40
-23
lines changed

AUTHORS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Authors
2+
3+
We'd like to thank the following people for their contributions.
4+
5+
- Paulo Truta <jpt@eurotux.com>
6+
- Sandro Rodrigues <srtabs@gmail.com>
7+
- Tiago Brito <tfb@eurotux.com>
8+
- Tiago Loureiro <tiagocostaloureiro@gmail.com>

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## 0.1.0 - 2017-09-13
8+
- First release on PyPi

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,28 @@
44
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a64f03c2bd344561bc21e05c23aa04fb)](https://www.codacy.com/app/srtabs/django-ajax-views?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=dipcode-software/django-ajax-views&amp;utm_campaign=Badge_Grade)
55
[![Coverage Status](https://coveralls.io/repos/github/dipcode-software/django-ajax-views/badge.svg?branch=master)](https://coveralls.io/github/dipcode-software/django-ajax-views?branch=master)
66

7-
Django module to easily use ajax forms.
7+
Django module to easily use generic views with ajax.
88

9-
## Install
9+
Table of contents:
10+
* [How to install](#how-to-install);
11+
* [License](#license).
12+
13+
## How to install
1014
To install the app run :
1115
```shell
1216
pip install django-ajax-views
1317
```
1418
or add it to the list of requirements of your project.
1519

16-
## Running tests
17-
To run tests we use tox:
20+
Then add 'ajax\_views' to your INSTALLED_APPS.
21+
```python
22+
INSTALLED_APPS = [
23+
...
24+
'ajax_views',
25+
]
1826
```
19-
# Run unit and flake
20-
$ tox
2127

22-
# Run only unit tests
23-
$ tox -e py27
2428

25-
# Run only flake8 tests
26-
$ tox -e flake8
29+
## License
2730

28-
# Run coverage tests
29-
$ tox -e coverage
30-
```
31+
MIT license, see the LICENSE file. You can use obfuscator in open source projects and commercial products.

ajax_views/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
15
default_app_config = 'ajax_views.apps.AjaxViewsConfig'
6+
7+
__version__ = '0.1.0'

ajax_views/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
from __future__ import absolute_import, unicode_literals
33

44
from django.views.generic import (
5-
TemplateView, CreateView, UpdateView, DeleteView)
5+
CreateView, DeleteView, TemplateView, UpdateView)
66

7-
from .mixins import PartialAjaxMixin, FormAjaxMixin, AjaxResponseMixin
7+
from .mixins import AjaxResponseMixin, FormAjaxMixin, PartialAjaxMixin
88

99

1010
class TemplateAjaxView(PartialAjaxMixin, TemplateView):

setup.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
import os
21
from setuptools import find_packages, setup
32

4-
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
5-
README = readme.read()
6-
7-
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
83

94
setup(
105
name='django-ajax-partials',
11-
version='0.1.0-alpha',
6+
version=__import__("ajax_views").__version__,
127
packages=find_packages(),
138
include_package_data=True,
149
license='MIT',
15-
description='Django module to easily use ajax forms.',
16-
long_description=README,
10+
description='Django module to easily use generic views with ajax.',
1711
url='https://github.com/dipcode-software/django-ajax-partials/',
1812
author='Dipcode',
1913
author_email='info@dipcode.com',

0 commit comments

Comments
 (0)