-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run coverage across entire build matrix * Use the root url for 'get_csv' in the demo app, because it's the only view. * Add flake8 linting to travis jobs * Make a few small syntax changes to make it easier to support python3 in the future * Fix lint * Simplify development dependencies http://python-packaging-user-guide.readthedocs.org/en/latest/requirements/ it makes sense to specify a loose requirement for django in `setup.py` and a duplicate it in `dev_requirements.txt`
- Loading branch information
steve
authored and
Steve Lamb
committed
Jan 22, 2016
1 parent
4b36144
commit 9ffb68d
Showing
12 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
coveralls==0.3 | ||
coverage==3.6 | ||
flake8==2.5.1 | ||
django>=1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from djqscsv import (render_to_csv_response, write_csv, # NOQA | ||
generate_filename, CSVException) # NOQA | ||
from .djqscsv import (render_to_csv_response, write_csv, # NOQA | ||
generate_filename, CSVException) # NOQA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
from django.db import models | ||
|
||
from django.utils.translation import ugettext as _ | ||
|
||
from django.utils.encoding import python_2_unicode_compatible | ||
from datetime import datetime | ||
|
||
SOME_TIME = datetime(2001, 01, 01, 01, 01) | ||
SOME_TIME = datetime(2001, 1, 1, 1, 1) | ||
|
||
|
||
class Activity(models.Model): | ||
name = models.CharField(max_length=50, verbose_name="Name of Activity") | ||
|
||
|
||
@python_2_unicode_compatible | ||
class Person(models.Model): | ||
name = models.CharField(max_length=50, verbose_name=_("Person's name")) | ||
address = models.CharField(max_length=255) | ||
info = models.TextField(verbose_name="Info on Person") | ||
hobby = models.ForeignKey(Activity) | ||
born = models.DateTimeField(default=SOME_TIME) | ||
|
||
def __unicode__(self): | ||
def __str__(self): | ||
return self.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from test_csv_creation import * | ||
from test_utilities import * | ||
from djqscsv_tests.tests.test_csv_creation import * # NOQA | ||
from djqscsv_tests.tests.test_utilities import * # NOQA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
from django.conf.urls import patterns, include, url | ||
import views | ||
from django.conf.urls import url | ||
from djqscsv_tests import views | ||
|
||
urlpatterns = patterns( | ||
'', | ||
url(r'^get_csv/', views.get_csv, name='get_csv'), | ||
urlpatterns = ( | ||
url(r'^$', views.get_csv, name='get_csv'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters