mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Sorted imports with isort; refs #23860.
This commit is contained in:
parent
388d986b8a
commit
0ed7d15563
793 changed files with 2551 additions and 2333 deletions
|
@ -5,7 +5,6 @@ from datetime import datetime
|
|||
|
||||
from django.test import TestCase, override_settings
|
||||
|
||||
|
||||
FULL_RESPONSE = 'Test conditional get response'
|
||||
LAST_MODIFIED = datetime(2007, 10, 21, 23, 21, 47)
|
||||
LAST_MODIFIED_STR = 'Sun, 21 Oct 2007 23:21:47 GMT'
|
||||
|
|
|
@ -2,7 +2,6 @@ from django.conf.urls import url
|
|||
|
||||
from . import views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url('^condition/$', views.index),
|
||||
url('^condition/last_modified/$', views.last_modified_view1),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.views.decorators.http import condition, etag, last_modified
|
||||
from django.http import HttpResponse
|
||||
from django.views.decorators.http import condition, etag, last_modified
|
||||
|
||||
from .tests import FULL_RESPONSE, LAST_MODIFIED, ETAG
|
||||
from .tests import ETAG, FULL_RESPONSE, LAST_MODIFIED
|
||||
|
||||
|
||||
def index(request):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue