Skip to content

Commit

Permalink
rename project to django-compress-field
Browse files Browse the repository at this point in the history
  • Loading branch information
valdergallo committed Sep 30, 2015
1 parent a333f10 commit cf57590
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 18 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
Django Compress Storage
=======================

[![Build Status](https://travis-ci.org/valdergallo/django-compress-storage.png?branch=master)](https://travis-ci.org/valdergallo/django-compress-storage)
[![Latest Version](http://img.shields.io/pypi/v/django-compress-storage.svg)](https://pypi.python.org/pypi/django-compress-storage)
[![Build Status](https://travis-ci.org/valdergallo/django-compress-field.png?branch=master)](https://travis-ci.org/valdergallo/django-compress-field)
[![Latest Version](http://img.shields.io/pypi/v/django-compress-field.svg)](https://pypi.python.org/pypi/django-compress-field)
[![BSD License](http://img.shields.io/badge/license-BSD-yellow.svg)](http://opensource.org/licenses/BSD-3-Clause)
[![Pypi Download](https://pypip.in/d/django-compress-storage/badge.png)](https://www.djangopackages.com/packages/p/django-compress-storage)
[![Pypi Download](https://pypip.in/d/django-compress-field/badge.png)](https://www.djangopackages.com/packages/p/django-compress-field)

Custom ZipFileField for Django that auto compact file uploaded

```
PROJECT RENAMED django-compress-storage to django-compress-field
```

Install
-------

```bash
pip install django-compress-storage
pip install django-compress-field
```
or by source code
```bash
git clone https://github.com/valdergallo/django-compress-storage/
git clone https://github.com/valdergallo/django-compress-field/
python setup.py install
```

Expand Down Expand Up @@ -58,7 +62,7 @@ FILE_COMPRESS_QUEUE = 'Celery' # by default queue is Celery, but you can change
INSTALLED_APPS = (
...
...
'compress_storage',
'compress_field',
)
```

Expand All @@ -71,7 +75,7 @@ Usage
# example model.py

from django.db import models
from compress_storage import ZipFileField
from compress_field import ZipFileField

class MyContent(models.Model):
name = models.CharField(max_length=150)
Expand Down Expand Up @@ -136,7 +140,7 @@ Developer

```bash
# download code
git clone https://github.com/valdergallo/django-compress-storage
git clone https://github.com/valdergallo/django-compress-field

# install developer packages
setup.py develop
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
__version__ = '0.9.1'
__version__ = '0.9.8'

try:
from .models import ZipFileField
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion compress_storage/models.py → compress_field/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class ZipFileField(models.FileField):

try:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^compress_storage\.models\.(ZipFileField)"])
add_introspection_rules([], ["^compress_field\.models\.(ZipFileField)"])
except ImportError:
pass
File renamed without changes.
2 changes: 1 addition & 1 deletion example/core/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.db import models
from compress_storage import ZipFileField
from compress_field import ZipFileField


class MyContent(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
# 'django.contrib.admin',
# 'django.contrib.admindocs',
'example.core',
'compress_storage',
'compress_field',
# 'django_pytest',
)

Expand Down
2 changes: 1 addition & 1 deletion example/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@
# 'django.contrib.admin',
# 'django.contrib.admindocs',
'example.core',
'compress_storage',
'compress_field',
)
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

os.environ['DJANGO_SETTINGS_MODULE'] = 'example.test_settings'

import compress_storage
import compress_field

install_requires = [
'django>=1.2',
Expand All @@ -21,9 +21,9 @@ def readme():
return 'Automantic compress files after upload'


setup(name='django-compress-storage',
url='https://github.com/valdergallo/django-compress-storage',
download_url='https://github.com/valdergallo/django-compress-storage/tarball/v%s/' % compress_storage.__version__,
setup(name='django-compress-field',
url='https://github.com/valdergallo/django-compress-field',
download_url='https://github.com/valdergallo/django-compress-field/tarball/v%s/' % compress_field.__version__,
author="valdergallo",
author_email='[email protected]',
keywords=['django', 'compress', 'field', 'zip', 'tar', 'gzip'],
Expand All @@ -40,7 +40,7 @@ def readme():
'Programming Language :: Python :: 3.3',
],
include_package_data=True,
version=compress_storage.__version__,
version=compress_field.__version__,
install_requires=install_requires,
test_suite="runtest.runtests",
packages=find_packages(where='.',
Expand Down

0 comments on commit cf57590

Please sign in to comment.