-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16336de
commit 8150a10
Showing
13 changed files
with
489 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .django_1_8 import * | ||
from .dev import * |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{% if versions.DJANGO_GTE_2_1 %}A{% endif %}{% if versions.DJANGO_LTE_2_1 %}B{% endif %} |
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,10 +1,13 @@ | ||
from django.conf.urls import include, url | ||
from django.contrib import admin | ||
from django.views.generic import TemplateView | ||
|
||
urlpatterns = [ | ||
# Examples: | ||
# url(r'^$', 'simple.views.home', name='home'), | ||
# url(r'^blog/', include('blog.urls')), | ||
|
||
url(r'^admin/', include(admin.site.urls)), | ||
url('^/$', | ||
view=TemplateView.as_view(template_name="nine.html"), | ||
name='django_nine'), | ||
# url(r'^admin/', include(admin.site.urls)), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# import unittest | ||
# import mock | ||
# # For Python3 >= 3.4 | ||
# try: | ||
# from importlib import reload | ||
# # For Python3 < 3.4 | ||
# except ImportError as err: | ||
# try: | ||
# from imp import reload | ||
# except ImportError as err: | ||
# pass | ||
# | ||
# from django.urls import reverse | ||
# from django.test import RequestFactory, TestCase | ||
# | ||
# from .base import log_info | ||
# | ||
# __title__ = 'django_nine.tests.test_versions' | ||
# __author__ = 'Artur Barseghyan' | ||
# __copyright__ = 'Copyright (c) 2015 Artur Barseghyan' | ||
# __license__ = 'GPL-2.0-only OR LGPL-2.1-or-later' | ||
# __all__ = ('ContextProcessorsTest',) | ||
# | ||
# | ||
# class ContextProcessorsTest(TestCase): | ||
# """ | ||
# Tests of ``django_nine.context_processors`` module. | ||
# """ | ||
# def setUp(self): | ||
# self.factory = RequestFactory() | ||
# | ||
# @log_info | ||
# @mock.patch('django.get_version', mock.MagicMock(return_value='2.1')) | ||
# def test_django_2_1(self): | ||
# """ | ||
# Tests as if we were using Django==2.1. | ||
# """ | ||
# from django_nine import versions | ||
# reload(versions) | ||
# | ||
# url = reverse('django_nine') | ||
# response = self.client.get(url) | ||
# | ||
# import pytest; pytest.set_trace() | ||
# | ||
# | ||
# if __name__ == "__main__": | ||
# unittest.main() |
Oops, something went wrong.