Database says | 29 |{{ object.attachment }} | 30 |
---|---|
attachment.url is |
33 | {{ object.attachment.url }} | 34 |
Database says | 41 |{{ object.image }} | 42 |
---|---|
attachment.url is |
45 | {{ object.image.url }} | 46 |
The result | 49 |
"]
8 | license = "GPL-3.0-or-later"
9 | classifiers = [
10 | "Operating System :: POSIX",
11 | "Operating System :: Unix",
12 | "Programming Language :: Python",
13 | "Programming Language :: Python :: 2.7",
14 | "Programming Language :: Python :: 3.4",
15 | "Programming Language :: Python :: 3.5",
16 | "Programming Language :: Python :: 3.6",
17 | "Topic :: Internet :: WWW/HTTP",
18 | ]
19 |
20 |
21 | [tool.poetry.dependencies]
22 | python = "^3.6"
23 | cryptography = ">=1.7.1"
24 | requests = ">=2.12.4"
25 | python-magic = ">=0.4.12,<0.5.0"
26 | django = ">=2.2"
27 |
28 |
29 | [tool.poetry.dev-dependencies]
30 | black = "^20.8b1"
31 | isort = "^5.6.4"
32 |
33 |
34 | [build-system]
35 | requires = ["poetry>=0.12"]
36 | build-backend = "poetry.masonry.api"
37 |
38 |
39 | [tool.coverage.run]
40 | branch = true
41 | omit = ["tests.py"]
42 |
43 |
44 | [tool.coverage.report]
45 | ignore_errors = true
46 | exclude_lines = [
47 | "pragma: no cover",
48 | "raise NotImplementedError"
49 | ]
50 |
51 |
52 | [tool.isort]
53 | atomic = true
54 | multi_line_output = 3
55 | case_sensitive = true
56 | lines_after_imports = 2
57 | lines_between_types = 1
58 | combine_as_imports = true
59 | default_section = "THIRDPARTY"
60 | known_django = "django"
61 | line_length = 79
62 | include_trailing_comma = true
63 | sections=[
64 | "FUTURE",
65 | "STDLIB",
66 | "DJANGO",
67 | "THIRDPARTY",
68 | "FIRSTPARTY",
69 | "LOCALFOLDER"
70 | ]
71 |
72 |
73 | [tool.black]
74 | line-length = 79
75 | target-version = ['py36']
76 | include = '\.pyi?$'
77 | exclude = '/(\.eggs|\.git|_build|build|dist)/'
--------------------------------------------------------------------------------