-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support django 3.2 and patterns
- Loading branch information
1 parent
bfdb894
commit 607b5e4
Showing
46 changed files
with
744 additions
and
944 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,4 +1,3 @@ | ||
github: [agusmakmun] | ||
patreon: | ||
ko_fi: | ||
liberapay: | ||
|
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
Empty file.
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-10-30 17:54+0700\n" | ||
"POT-Creation-Date: 2021-07-06 21:39+0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -18,35 +18,36 @@ msgstr "" | |
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:6 | ||
msgid "Home" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:8 | ||
#: templates/log_viewer/logfile_viewer.html:39 | ||
#: templates/log_viewer/logfile_viewer.html:3 | ||
#: templates/log_viewer/logfile_viewer.html:9 | ||
#: templates/log_viewer/logfile_viewer.html:35 | ||
msgid "Django Log Viewer" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:32 | ||
msgid "Log Files" | ||
#: templates/log_viewer/logfile_viewer.html:7 | ||
msgid "Home" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:41 | ||
#: templates/log_viewer/logfile_viewer.html:37 | ||
msgid "Download all Log Files" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:42 | ||
#: templates/log_viewer/logfile_viewer.html:38 | ||
msgid "Download this Log File" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:48 | ||
#: templates/log_viewer/logfile_viewer.html:44 | ||
msgid "No." | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:49 | ||
#: templates/log_viewer/logfile_viewer.html:45 | ||
msgid "Log entries" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:53 | ||
#: templates/log_viewer/logfile_viewer.html:49 | ||
msgid "No entries!" | ||
msgstr "" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:55 | ||
msgid "Log Files" | ||
msgstr "" |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-10-30 17:54+0700\n" | ||
"POT-Creation-Date: 2021-07-06 21:39+0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -18,35 +18,36 @@ msgstr "" | |
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:6 | ||
msgid "Home" | ||
msgstr "Beranda" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:8 | ||
#: templates/log_viewer/logfile_viewer.html:39 | ||
#: templates/log_viewer/logfile_viewer.html:3 | ||
#: templates/log_viewer/logfile_viewer.html:9 | ||
#: templates/log_viewer/logfile_viewer.html:35 | ||
msgid "Django Log Viewer" | ||
msgstr "Penampil Log Django" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:32 | ||
msgid "Log Files" | ||
msgstr "File log" | ||
#: templates/log_viewer/logfile_viewer.html:7 | ||
msgid "Home" | ||
msgstr "Beranda" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:41 | ||
#: templates/log_viewer/logfile_viewer.html:37 | ||
msgid "Download all Log Files" | ||
msgstr "Unduh seluruh File Log" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:42 | ||
#: templates/log_viewer/logfile_viewer.html:38 | ||
msgid "Download this Log File" | ||
msgstr "Unduh File Log ini" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:48 | ||
#: templates/log_viewer/logfile_viewer.html:44 | ||
msgid "No." | ||
msgstr "No." | ||
|
||
#: templates/log_viewer/logfile_viewer.html:49 | ||
#: templates/log_viewer/logfile_viewer.html:45 | ||
msgid "Log entries" | ||
msgstr "Entri log" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:53 | ||
#: templates/log_viewer/logfile_viewer.html:49 | ||
msgid "No entries!" | ||
msgstr "Tidak ada entri!" | ||
|
||
#: templates/log_viewer/logfile_viewer.html:55 | ||
msgid "Log Files" | ||
msgstr "File log" |
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,8 +1,34 @@ | ||
from django.test import TestCase | ||
from django.urls import reverse | ||
from django.test import TestCase, Client | ||
from django.contrib.auth import get_user_model | ||
|
||
User = get_user_model() | ||
|
||
class SimpleTest(TestCase): | ||
|
||
class TestLogsViewer(TestCase): | ||
|
||
def setUp(self): | ||
self.user = User.objects.create_user( | ||
username='john', | ||
password='Foobar@1234', | ||
is_active=True, | ||
is_staff=True, | ||
is_superuser=True | ||
) | ||
self.client_login = Client() | ||
self.client_login.force_login(self.user) | ||
self.client_anon = Client() | ||
self.url = reverse('log_file_view') | ||
|
||
def test_redirection(self): | ||
response = self.client.get('/') | ||
response = self.client_anon.get(self.url) | ||
self.assertEqual(response.status_code, 302) | ||
|
||
def test_logs_viewer(self): | ||
# response = self.client_login.get(self.url) | ||
# self.assertEqual(response.status_code, 200) | ||
# self.assertContains(response, 'Django Log Viewer') | ||
# self.assertTemplateUsed(response, 'log_viewer/logfile_viewer.html') | ||
|
||
# FIXME: django.urls.exceptions.NoReverseMatch: 'admin' is not a registered namespace | ||
... |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
ASGI config for log_viewer_demo project. | ||
It exposes the ASGI callable as a module-level variable named ``application``. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.asgi import get_asgi_application | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'log_viewer_demo.settings') | ||
|
||
application = get_asgi_application() |
Oops, something went wrong.