grooveshop-django-api 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (533) hide show
  1. grooveshop_django_api-0.6.0/.coveragerc +36 -0
  2. grooveshop_django_api-0.6.0/.editorconfig +32 -0
  3. grooveshop_django_api-0.6.0/.env.example +65 -0
  4. grooveshop_django_api-0.6.0/.flake8 +22 -0
  5. grooveshop_django_api-0.6.0/.git/FETCH_HEAD +11 -0
  6. grooveshop_django_api-0.6.0/.git/HEAD +1 -0
  7. grooveshop_django_api-0.6.0/.git/config +15 -0
  8. grooveshop_django_api-0.6.0/.git/description +1 -0
  9. grooveshop_django_api-0.6.0/.git/hooks/applypatch-msg.sample +15 -0
  10. grooveshop_django_api-0.6.0/.git/hooks/commit-msg.sample +24 -0
  11. grooveshop_django_api-0.6.0/.git/hooks/fsmonitor-watchman.sample +174 -0
  12. grooveshop_django_api-0.6.0/.git/hooks/post-update.sample +8 -0
  13. grooveshop_django_api-0.6.0/.git/hooks/pre-applypatch.sample +14 -0
  14. grooveshop_django_api-0.6.0/.git/hooks/pre-commit.sample +49 -0
  15. grooveshop_django_api-0.6.0/.git/hooks/pre-merge-commit.sample +13 -0
  16. grooveshop_django_api-0.6.0/.git/hooks/pre-push.sample +53 -0
  17. grooveshop_django_api-0.6.0/.git/hooks/pre-rebase.sample +169 -0
  18. grooveshop_django_api-0.6.0/.git/hooks/pre-receive.sample +24 -0
  19. grooveshop_django_api-0.6.0/.git/hooks/prepare-commit-msg.sample +42 -0
  20. grooveshop_django_api-0.6.0/.git/hooks/push-to-checkout.sample +78 -0
  21. grooveshop_django_api-0.6.0/.git/hooks/sendemail-validate.sample +77 -0
  22. grooveshop_django_api-0.6.0/.git/hooks/update.sample +128 -0
  23. grooveshop_django_api-0.6.0/.git/index +0 -0
  24. grooveshop_django_api-0.6.0/.git/info/exclude +6 -0
  25. grooveshop_django_api-0.6.0/.git/logs/HEAD +1 -0
  26. grooveshop_django_api-0.6.0/.git/logs/refs/heads/main +1 -0
  27. grooveshop_django_api-0.6.0/.git/logs/refs/remotes/origin/main +1 -0
  28. grooveshop_django_api-0.6.0/.git/objects/pack/pack-2c626bf25911a2d6c0a88e3ad9b87d1f3d5a910d.idx +0 -0
  29. grooveshop_django_api-0.6.0/.git/objects/pack/pack-2c626bf25911a2d6c0a88e3ad9b87d1f3d5a910d.pack +0 -0
  30. grooveshop_django_api-0.6.0/.git/objects/pack/pack-2c626bf25911a2d6c0a88e3ad9b87d1f3d5a910d.rev +0 -0
  31. grooveshop_django_api-0.6.0/.git/refs/heads/main +1 -0
  32. grooveshop_django_api-0.6.0/.git/refs/remotes/origin/main +1 -0
  33. grooveshop_django_api-0.6.0/.git/refs/tags/v0.1.0 +1 -0
  34. grooveshop_django_api-0.6.0/.git/refs/tags/v0.1.1 +1 -0
  35. grooveshop_django_api-0.6.0/.git/refs/tags/v0.2.0 +1 -0
  36. grooveshop_django_api-0.6.0/.git/refs/tags/v0.2.1 +1 -0
  37. grooveshop_django_api-0.6.0/.git/refs/tags/v0.2.2 +1 -0
  38. grooveshop_django_api-0.6.0/.git/refs/tags/v0.3.0 +1 -0
  39. grooveshop_django_api-0.6.0/.git/refs/tags/v0.3.1 +1 -0
  40. grooveshop_django_api-0.6.0/.git/refs/tags/v0.3.2 +1 -0
  41. grooveshop_django_api-0.6.0/.git/refs/tags/v0.4.0 +1 -0
  42. grooveshop_django_api-0.6.0/.git/refs/tags/v0.5.0 +1 -0
  43. grooveshop_django_api-0.6.0/.github/workflows/ci.yml +147 -0
  44. grooveshop_django_api-0.6.0/.github/workflows/docker.yml +54 -0
  45. grooveshop_django_api-0.6.0/.gitignore +138 -0
  46. grooveshop_django_api-0.6.0/.idea/dataSources.xml +14 -0
  47. grooveshop_django_api-0.6.0/.idea/grooveshop-django-api.iml +18 -0
  48. grooveshop_django_api-0.6.0/.idea/inspectionProfiles/Project_Default.xml +6 -0
  49. grooveshop_django_api-0.6.0/.idea/inspectionProfiles/profiles_settings.xml +7 -0
  50. grooveshop_django_api-0.6.0/.idea/misc.xml +7 -0
  51. grooveshop_django_api-0.6.0/.idea/vcs.xml +6 -0
  52. grooveshop_django_api-0.6.0/.pre-commit-config.yaml +39 -0
  53. grooveshop_django_api-0.6.0/CHANGELOG.md +34 -0
  54. grooveshop_django_api-0.6.0/Dockerfile +46 -0
  55. grooveshop_django_api-0.6.0/LICENSE.md +21 -0
  56. grooveshop_django_api-0.6.0/PKG-INFO +191 -0
  57. grooveshop_django_api-0.6.0/README.md +124 -0
  58. grooveshop_django_api-0.6.0/SECURITY.md +21 -0
  59. grooveshop_django_api-0.6.0/__init__.py +0 -0
  60. grooveshop_django_api-0.6.0/account/account_inactive.html +11 -0
  61. grooveshop_django_api-0.6.0/account/base.html +247 -0
  62. grooveshop_django_api-0.6.0/account/email/account_already_exists_message.txt +13 -0
  63. grooveshop_django_api-0.6.0/account/email/account_already_exists_subject.txt +4 -0
  64. grooveshop_django_api-0.6.0/account/email/base_message.txt +7 -0
  65. grooveshop_django_api-0.6.0/account/email/email_confirmation_message.txt +7 -0
  66. grooveshop_django_api-0.6.0/account/email/email_confirmation_signup_message.txt +1 -0
  67. grooveshop_django_api-0.6.0/account/email/email_confirmation_signup_subject.txt +1 -0
  68. grooveshop_django_api-0.6.0/account/email/email_confirmation_subject.txt +4 -0
  69. grooveshop_django_api-0.6.0/account/email/password_reset_key_message.txt +9 -0
  70. grooveshop_django_api-0.6.0/account/email/password_reset_key_subject.txt +4 -0
  71. grooveshop_django_api-0.6.0/account/email/unknown_account_message.txt +12 -0
  72. grooveshop_django_api-0.6.0/account/email/unknown_account_subject.txt +4 -0
  73. grooveshop_django_api-0.6.0/account/email.html +100 -0
  74. grooveshop_django_api-0.6.0/account/email_confirm.html +30 -0
  75. grooveshop_django_api-0.6.0/account/login.html +99 -0
  76. grooveshop_django_api-0.6.0/account/logout.html +25 -0
  77. grooveshop_django_api-0.6.0/account/messages/cannot_delete_primary_email.txt +2 -0
  78. grooveshop_django_api-0.6.0/account/messages/email_confirmation_sent.txt +2 -0
  79. grooveshop_django_api-0.6.0/account/messages/email_confirmed.txt +2 -0
  80. grooveshop_django_api-0.6.0/account/messages/email_deleted.txt +2 -0
  81. grooveshop_django_api-0.6.0/account/messages/logged_in.txt +4 -0
  82. grooveshop_django_api-0.6.0/account/messages/logged_out.txt +2 -0
  83. grooveshop_django_api-0.6.0/account/messages/password_changed.txt +2 -0
  84. grooveshop_django_api-0.6.0/account/messages/password_set.txt +2 -0
  85. grooveshop_django_api-0.6.0/account/messages/primary_email_set.txt +2 -0
  86. grooveshop_django_api-0.6.0/account/messages/unverified_primary_email.txt +2 -0
  87. grooveshop_django_api-0.6.0/account/password_change.html +47 -0
  88. grooveshop_django_api-0.6.0/account/password_reset.html +39 -0
  89. grooveshop_django_api-0.6.0/account/password_reset_done.html +22 -0
  90. grooveshop_django_api-0.6.0/account/password_reset_from_key.html +44 -0
  91. grooveshop_django_api-0.6.0/account/password_reset_from_key_done.html +17 -0
  92. grooveshop_django_api-0.6.0/account/password_set.html +21 -0
  93. grooveshop_django_api-0.6.0/account/signup.html +63 -0
  94. grooveshop_django_api-0.6.0/account/signup_closed.html +17 -0
  95. grooveshop_django_api-0.6.0/account/snippets/already_logged_in.html +5 -0
  96. grooveshop_django_api-0.6.0/account/verification_sent.html +17 -0
  97. grooveshop_django_api-0.6.0/account/verified_email_required.html +27 -0
  98. grooveshop_django_api-0.6.0/allauth_2fa/authenticate.html +37 -0
  99. grooveshop_django_api-0.6.0/allauth_2fa/backup_tokens.html +50 -0
  100. grooveshop_django_api-0.6.0/allauth_2fa/remove.html +39 -0
  101. grooveshop_django_api-0.6.0/allauth_2fa/setup.html +62 -0
  102. grooveshop_django_api-0.6.0/app/__init__.py +9 -0
  103. grooveshop_django_api-0.6.0/app/asgi.py +7 -0
  104. grooveshop_django_api-0.6.0/app/celery.py +39 -0
  105. grooveshop_django_api-0.6.0/app/settings.py +549 -0
  106. grooveshop_django_api-0.6.0/app/urls.py +98 -0
  107. grooveshop_django_api-0.6.0/app/wsgi.py +7 -0
  108. grooveshop_django_api-0.6.0/blog/__init__.py +0 -0
  109. grooveshop_django_api-0.6.0/blog/admin.py +82 -0
  110. grooveshop_django_api-0.6.0/blog/apps.py +5 -0
  111. grooveshop_django_api-0.6.0/blog/enum/__init__.py +0 -0
  112. grooveshop_django_api-0.6.0/blog/enum/blog_post_enum.py +13 -0
  113. grooveshop_django_api-0.6.0/blog/migrations/0001_initial.py +441 -0
  114. grooveshop_django_api-0.6.0/blog/migrations/0002_initial.py +125 -0
  115. grooveshop_django_api-0.6.0/blog/migrations/__init__.py +0 -0
  116. grooveshop_django_api-0.6.0/blog/models/__init__.py +0 -0
  117. grooveshop_django_api-0.6.0/blog/models/author.py +27 -0
  118. grooveshop_django_api-0.6.0/blog/models/category.py +55 -0
  119. grooveshop_django_api-0.6.0/blog/models/comment.py +46 -0
  120. grooveshop_django_api-0.6.0/blog/models/post.py +89 -0
  121. grooveshop_django_api-0.6.0/blog/models/tag.py +34 -0
  122. grooveshop_django_api-0.6.0/blog/paginators/__init__.py +0 -0
  123. grooveshop_django_api-0.6.0/blog/paginators/author.py +8 -0
  124. grooveshop_django_api-0.6.0/blog/paginators/category.py +8 -0
  125. grooveshop_django_api-0.6.0/blog/paginators/comment.py +8 -0
  126. grooveshop_django_api-0.6.0/blog/paginators/post.py +8 -0
  127. grooveshop_django_api-0.6.0/blog/paginators/tag.py +8 -0
  128. grooveshop_django_api-0.6.0/blog/serializers/__init__.py +0 -0
  129. grooveshop_django_api-0.6.0/blog/serializers/author.py +41 -0
  130. grooveshop_django_api-0.6.0/blog/serializers/category.py +29 -0
  131. grooveshop_django_api-0.6.0/blog/serializers/comment.py +50 -0
  132. grooveshop_django_api-0.6.0/blog/serializers/post.py +66 -0
  133. grooveshop_django_api-0.6.0/blog/serializers/tag.py +29 -0
  134. grooveshop_django_api-0.6.0/blog/urls.py +86 -0
  135. grooveshop_django_api-0.6.0/blog/views/__init__.py +0 -0
  136. grooveshop_django_api-0.6.0/blog/views/author.py +67 -0
  137. grooveshop_django_api-0.6.0/blog/views/category.py +66 -0
  138. grooveshop_django_api-0.6.0/blog/views/comment.py +67 -0
  139. grooveshop_django_api-0.6.0/blog/views/post.py +106 -0
  140. grooveshop_django_api-0.6.0/blog/views/tag.py +66 -0
  141. grooveshop_django_api-0.6.0/cart/__init__.py +0 -0
  142. grooveshop_django_api-0.6.0/cart/admin.py +20 -0
  143. grooveshop_django_api-0.6.0/cart/apps.py +5 -0
  144. grooveshop_django_api-0.6.0/cart/migrations/0001_initial.py +76 -0
  145. grooveshop_django_api-0.6.0/cart/migrations/0002_initial.py +25 -0
  146. grooveshop_django_api-0.6.0/cart/migrations/0003_initial.py +37 -0
  147. grooveshop_django_api-0.6.0/cart/migrations/__init__.py +0 -0
  148. grooveshop_django_api-0.6.0/cart/models.py +93 -0
  149. grooveshop_django_api-0.6.0/cart/paginators.py +15 -0
  150. grooveshop_django_api-0.6.0/cart/serializers.py +82 -0
  151. grooveshop_django_api-0.6.0/cart/service.py +94 -0
  152. grooveshop_django_api-0.6.0/cart/urls.py +36 -0
  153. grooveshop_django_api-0.6.0/cart/views.py +118 -0
  154. grooveshop_django_api-0.6.0/core/__init__.py +0 -0
  155. grooveshop_django_api-0.6.0/core/admin.py +79 -0
  156. grooveshop_django_api-0.6.0/core/api/__init__.py +0 -0
  157. grooveshop_django_api-0.6.0/core/api/schema.py +18 -0
  158. grooveshop_django_api-0.6.0/core/api/serializers.py +32 -0
  159. grooveshop_django_api-0.6.0/core/api/views.py +8 -0
  160. grooveshop_django_api-0.6.0/core/apps.py +5 -0
  161. grooveshop_django_api-0.6.0/core/caches.py +32 -0
  162. grooveshop_django_api-0.6.0/core/context_processors.py +5 -0
  163. grooveshop_django_api-0.6.0/core/db/__init__.py +0 -0
  164. grooveshop_django_api-0.6.0/core/db/fields.py +22 -0
  165. grooveshop_django_api-0.6.0/core/decorators/__init__.py +0 -0
  166. grooveshop_django_api-0.6.0/core/decorators/timing.py +40 -0
  167. grooveshop_django_api-0.6.0/core/enum/__init__.py +0 -0
  168. grooveshop_django_api-0.6.0/core/enum/core_enum.py +12 -0
  169. grooveshop_django_api-0.6.0/core/filters/__init__.py +0 -0
  170. grooveshop_django_api-0.6.0/core/filters/custom_filters.py +12 -0
  171. grooveshop_django_api-0.6.0/core/management/__init__.py +0 -0
  172. grooveshop_django_api-0.6.0/core/management/commands/__init__.py +0 -0
  173. grooveshop_django_api-0.6.0/core/management/commands/populate_all.py +63 -0
  174. grooveshop_django_api-0.6.0/core/management/commands/populate_blog_author.py +84 -0
  175. grooveshop_django_api-0.6.0/core/management/commands/populate_blog_category.py +70 -0
  176. grooveshop_django_api-0.6.0/core/management/commands/populate_blog_comment.py +82 -0
  177. grooveshop_django_api-0.6.0/core/management/commands/populate_blog_post.py +110 -0
  178. grooveshop_django_api-0.6.0/core/management/commands/populate_blog_tag.py +58 -0
  179. grooveshop_django_api-0.6.0/core/management/commands/populate_country.py +132 -0
  180. grooveshop_django_api-0.6.0/core/management/commands/populate_order.py +135 -0
  181. grooveshop_django_api-0.6.0/core/management/commands/populate_pay_way.py +74 -0
  182. grooveshop_django_api-0.6.0/core/management/commands/populate_product.py +92 -0
  183. grooveshop_django_api-0.6.0/core/management/commands/populate_product_category.py +66 -0
  184. grooveshop_django_api-0.6.0/core/management/commands/populate_product_favourite.py +66 -0
  185. grooveshop_django_api-0.6.0/core/management/commands/populate_product_image.py +72 -0
  186. grooveshop_django_api-0.6.0/core/management/commands/populate_product_review.py +86 -0
  187. grooveshop_django_api-0.6.0/core/management/commands/populate_region.py +76 -0
  188. grooveshop_django_api-0.6.0/core/management/commands/populate_slider.py +122 -0
  189. grooveshop_django_api-0.6.0/core/management/commands/populate_tip.py +69 -0
  190. grooveshop_django_api-0.6.0/core/management/commands/populate_user_account.py +89 -0
  191. grooveshop_django_api-0.6.0/core/management/commands/populate_user_address.py +98 -0
  192. grooveshop_django_api-0.6.0/core/management/commands/populate_vat.py +48 -0
  193. grooveshop_django_api-0.6.0/core/management/commands/wait_for_db.py +24 -0
  194. grooveshop_django_api-0.6.0/core/migrations/__init__.py +0 -0
  195. grooveshop_django_api-0.6.0/core/models.py +86 -0
  196. grooveshop_django_api-0.6.0/core/pagination/__init__.py +0 -0
  197. grooveshop_django_api-0.6.0/core/pagination/count.py +20 -0
  198. grooveshop_django_api-0.6.0/core/pagination/cursor.py +51 -0
  199. grooveshop_django_api-0.6.0/core/pagination/limit_offset.py +22 -0
  200. grooveshop_django_api-0.6.0/core/tasks.py +26 -0
  201. grooveshop_django_api-0.6.0/core/templatetags/__init__.py +0 -0
  202. grooveshop_django_api-0.6.0/core/templatetags/form_filters.py +24 -0
  203. grooveshop_django_api-0.6.0/core/utils/__init__.py +0 -0
  204. grooveshop_django_api-0.6.0/core/utils/editorjs.py +78 -0
  205. grooveshop_django_api-0.6.0/core/utils/password.py +26 -0
  206. grooveshop_django_api-0.6.0/country/__init__.py +0 -0
  207. grooveshop_django_api-0.6.0/country/admin.py +11 -0
  208. grooveshop_django_api-0.6.0/country/apps.py +5 -0
  209. grooveshop_django_api-0.6.0/country/migrations/0001_initial.py +132 -0
  210. grooveshop_django_api-0.6.0/country/migrations/__init__.py +0 -0
  211. grooveshop_django_api-0.6.0/country/models.py +46 -0
  212. grooveshop_django_api-0.6.0/country/paginators.py +8 -0
  213. grooveshop_django_api-0.6.0/country/serializers.py +29 -0
  214. grooveshop_django_api-0.6.0/country/urls.py +24 -0
  215. grooveshop_django_api-0.6.0/country/views.py +77 -0
  216. grooveshop_django_api-0.6.0/files/favicon/512x512.png +0 -0
  217. grooveshop_django_api-0.6.0/files/favicon/android-icon-144x144.png +0 -0
  218. grooveshop_django_api-0.6.0/files/favicon/android-icon-192x192.png +0 -0
  219. grooveshop_django_api-0.6.0/files/favicon/android-icon-36x36.png +0 -0
  220. grooveshop_django_api-0.6.0/files/favicon/android-icon-420x420.png +0 -0
  221. grooveshop_django_api-0.6.0/files/favicon/android-icon-48x48.png +0 -0
  222. grooveshop_django_api-0.6.0/files/favicon/android-icon-512x512.png +0 -0
  223. grooveshop_django_api-0.6.0/files/favicon/android-icon-72x72.png +0 -0
  224. grooveshop_django_api-0.6.0/files/favicon/android-icon-96x96.png +0 -0
  225. grooveshop_django_api-0.6.0/files/favicon/apple-icon-114x114.png +0 -0
  226. grooveshop_django_api-0.6.0/files/favicon/apple-icon-120x120.png +0 -0
  227. grooveshop_django_api-0.6.0/files/favicon/apple-icon-144x144.png +0 -0
  228. grooveshop_django_api-0.6.0/files/favicon/apple-icon-152x152.png +0 -0
  229. grooveshop_django_api-0.6.0/files/favicon/apple-icon-180x180.png +0 -0
  230. grooveshop_django_api-0.6.0/files/favicon/apple-icon-57x57.png +0 -0
  231. grooveshop_django_api-0.6.0/files/favicon/apple-icon-60x60.png +0 -0
  232. grooveshop_django_api-0.6.0/files/favicon/apple-icon-72x72.png +0 -0
  233. grooveshop_django_api-0.6.0/files/favicon/apple-icon-76x76.png +0 -0
  234. grooveshop_django_api-0.6.0/files/favicon/apple-icon-precomposed.png +0 -0
  235. grooveshop_django_api-0.6.0/files/favicon/apple-icon.png +0 -0
  236. grooveshop_django_api-0.6.0/files/favicon/browserconfig.xml +2 -0
  237. grooveshop_django_api-0.6.0/files/favicon/favicon-16x16.png +0 -0
  238. grooveshop_django_api-0.6.0/files/favicon/favicon-32x32.png +0 -0
  239. grooveshop_django_api-0.6.0/files/favicon/favicon-96x96.png +0 -0
  240. grooveshop_django_api-0.6.0/files/favicon/favicon.ico +0 -0
  241. grooveshop_django_api-0.6.0/files/favicon/manifest.json +55 -0
  242. grooveshop_django_api-0.6.0/files/favicon/ms-icon-144x144.png +0 -0
  243. grooveshop_django_api-0.6.0/files/favicon/ms-icon-150x150.png +0 -0
  244. grooveshop_django_api-0.6.0/files/favicon/ms-icon-310x310.png +0 -0
  245. grooveshop_django_api-0.6.0/files/favicon/ms-icon-70x70.png +0 -0
  246. grooveshop_django_api-0.6.0/files/images/default.png +0 -0
  247. grooveshop_django_api-0.6.0/files/images/no_photo.jpg +0 -0
  248. grooveshop_django_api-0.6.0/files/images/powered_by_stripe.png +0 -0
  249. grooveshop_django_api-0.6.0/files/images/powered_by_stripe.svg +1 -0
  250. grooveshop_django_api-0.6.0/files/images/websiteLogo.jpg +0 -0
  251. grooveshop_django_api-0.6.0/files/images/websiteLogo.png +0 -0
  252. grooveshop_django_api-0.6.0/files/images/websiteLogo_circle.png +0 -0
  253. grooveshop_django_api-0.6.0/grooveShop.iml +70 -0
  254. grooveshop_django_api-0.6.0/helpers/__init__.py +0 -0
  255. grooveshop_django_api-0.6.0/helpers/image_resize.py +27 -0
  256. grooveshop_django_api-0.6.0/helpers/seed.py +19 -0
  257. grooveshop_django_api-0.6.0/locale/de/LC_MESSAGES/django.mo +0 -0
  258. grooveshop_django_api-0.6.0/locale/de/LC_MESSAGES/django.po +2815 -0
  259. grooveshop_django_api-0.6.0/locale/el/LC_MESSAGES/django.mo +0 -0
  260. grooveshop_django_api-0.6.0/locale/el/LC_MESSAGES/django.po +2820 -0
  261. grooveshop_django_api-0.6.0/locale/en/LC_MESSAGES/django.mo +0 -0
  262. grooveshop_django_api-0.6.0/locale/en/LC_MESSAGES/django.po +2814 -0
  263. grooveshop_django_api-0.6.0/logs/celery.log +0 -0
  264. grooveshop_django_api-0.6.0/logs/django.log +264 -0
  265. grooveshop_django_api-0.6.0/manage.py +22 -0
  266. grooveshop_django_api-0.6.0/openid/base.html +1 -0
  267. grooveshop_django_api-0.6.0/openid/login.html +18 -0
  268. grooveshop_django_api-0.6.0/order/__init__.py +0 -0
  269. grooveshop_django_api-0.6.0/order/admin.py +48 -0
  270. grooveshop_django_api-0.6.0/order/apps.py +5 -0
  271. grooveshop_django_api-0.6.0/order/enum/__init__.py +0 -0
  272. grooveshop_django_api-0.6.0/order/enum/pay_way_enum.py +14 -0
  273. grooveshop_django_api-0.6.0/order/enum/status_enum.py +14 -0
  274. grooveshop_django_api-0.6.0/order/migrations/0001_initial.py +185 -0
  275. grooveshop_django_api-0.6.0/order/migrations/0002_initial.py +56 -0
  276. grooveshop_django_api-0.6.0/order/migrations/0003_initial.py +27 -0
  277. grooveshop_django_api-0.6.0/order/migrations/__init__.py +0 -0
  278. grooveshop_django_api-0.6.0/order/models.py +127 -0
  279. grooveshop_django_api-0.6.0/order/paginators.py +8 -0
  280. grooveshop_django_api-0.6.0/order/serializers.py +87 -0
  281. grooveshop_django_api-0.6.0/order/urls.py +21 -0
  282. grooveshop_django_api-0.6.0/order/views.py +133 -0
  283. grooveshop_django_api-0.6.0/pay_way/__init__.py +0 -0
  284. grooveshop_django_api-0.6.0/pay_way/admin.py +11 -0
  285. grooveshop_django_api-0.6.0/pay_way/apps.py +5 -0
  286. grooveshop_django_api-0.6.0/pay_way/migrations/0001_initial.py +127 -0
  287. grooveshop_django_api-0.6.0/pay_way/migrations/__init__.py +0 -0
  288. grooveshop_django_api-0.6.0/pay_way/models.py +66 -0
  289. grooveshop_django_api-0.6.0/pay_way/paginators.py +8 -0
  290. grooveshop_django_api-0.6.0/pay_way/serializers.py +32 -0
  291. grooveshop_django_api-0.6.0/pay_way/urls.py +21 -0
  292. grooveshop_django_api-0.6.0/pay_way/views.py +71 -0
  293. grooveshop_django_api-0.6.0/poetry.lock +3187 -0
  294. grooveshop_django_api-0.6.0/product/__init__.py +0 -0
  295. grooveshop_django_api-0.6.0/product/admin.py +186 -0
  296. grooveshop_django_api-0.6.0/product/apps.py +5 -0
  297. grooveshop_django_api-0.6.0/product/enum/__init__.py +0 -0
  298. grooveshop_django_api-0.6.0/product/enum/review.py +31 -0
  299. grooveshop_django_api-0.6.0/product/filters/__init__.py +0 -0
  300. grooveshop_django_api-0.6.0/product/filters/product.py +17 -0
  301. grooveshop_django_api-0.6.0/product/migrations/0001_initial.py +478 -0
  302. grooveshop_django_api-0.6.0/product/migrations/0002_initial.py +116 -0
  303. grooveshop_django_api-0.6.0/product/migrations/__init__.py +0 -0
  304. grooveshop_django_api-0.6.0/product/models/__init__.py +0 -0
  305. grooveshop_django_api-0.6.0/product/models/category.py +145 -0
  306. grooveshop_django_api-0.6.0/product/models/favourite.py +24 -0
  307. grooveshop_django_api-0.6.0/product/models/images.py +55 -0
  308. grooveshop_django_api-0.6.0/product/models/product.py +191 -0
  309. grooveshop_django_api-0.6.0/product/models/review.py +42 -0
  310. grooveshop_django_api-0.6.0/product/paginators/__init__.py +0 -0
  311. grooveshop_django_api-0.6.0/product/paginators/category.py +8 -0
  312. grooveshop_django_api-0.6.0/product/paginators/favourite.py +8 -0
  313. grooveshop_django_api-0.6.0/product/paginators/images.py +5 -0
  314. grooveshop_django_api-0.6.0/product/paginators/product.py +5 -0
  315. grooveshop_django_api-0.6.0/product/paginators/review.py +15 -0
  316. grooveshop_django_api-0.6.0/product/serializers/__init__.py +0 -0
  317. grooveshop_django_api-0.6.0/product/serializers/category.py +40 -0
  318. grooveshop_django_api-0.6.0/product/serializers/favourite.py +27 -0
  319. grooveshop_django_api-0.6.0/product/serializers/images.py +36 -0
  320. grooveshop_django_api-0.6.0/product/serializers/product.py +63 -0
  321. grooveshop_django_api-0.6.0/product/serializers/review.py +49 -0
  322. grooveshop_django_api-0.6.0/product/urls.py +102 -0
  323. grooveshop_django_api-0.6.0/product/views/__init__.py +0 -0
  324. grooveshop_django_api-0.6.0/product/views/category.py +78 -0
  325. grooveshop_django_api-0.6.0/product/views/favourite.py +85 -0
  326. grooveshop_django_api-0.6.0/product/views/images.py +68 -0
  327. grooveshop_django_api-0.6.0/product/views/product.py +88 -0
  328. grooveshop_django_api-0.6.0/product/views/review.py +115 -0
  329. grooveshop_django_api-0.6.0/pyproject.toml +158 -0
  330. grooveshop_django_api-0.6.0/region/__init__.py +0 -0
  331. grooveshop_django_api-0.6.0/region/admin.py +14 -0
  332. grooveshop_django_api-0.6.0/region/apps.py +5 -0
  333. grooveshop_django_api-0.6.0/region/migrations/0001_initial.py +109 -0
  334. grooveshop_django_api-0.6.0/region/migrations/__init__.py +0 -0
  335. grooveshop_django_api-0.6.0/region/models.py +32 -0
  336. grooveshop_django_api-0.6.0/region/paginators.py +8 -0
  337. grooveshop_django_api-0.6.0/region/serializers.py +41 -0
  338. grooveshop_django_api-0.6.0/region/urls.py +28 -0
  339. grooveshop_django_api-0.6.0/region/views.py +79 -0
  340. grooveshop_django_api-0.6.0/requirements.txt +45 -0
  341. grooveshop_django_api-0.6.0/schema.yml +12910 -0
  342. grooveshop_django_api-0.6.0/scripts/delete_initial_migrations.py +25 -0
  343. grooveshop_django_api-0.6.0/search/__init__.py +0 -0
  344. grooveshop_django_api-0.6.0/search/admin.py +0 -0
  345. grooveshop_django_api-0.6.0/search/apps.py +5 -0
  346. grooveshop_django_api-0.6.0/search/migrations/__init__.py +0 -0
  347. grooveshop_django_api-0.6.0/search/models.py +0 -0
  348. grooveshop_django_api-0.6.0/search/paginators.py +8 -0
  349. grooveshop_django_api-0.6.0/search/urls.py +10 -0
  350. grooveshop_django_api-0.6.0/search/views.py +23 -0
  351. grooveshop_django_api-0.6.0/seo/__init__.py +0 -0
  352. grooveshop_django_api-0.6.0/seo/admin.py +0 -0
  353. grooveshop_django_api-0.6.0/seo/apps.py +5 -0
  354. grooveshop_django_api-0.6.0/seo/migrations/__init__.py +0 -0
  355. grooveshop_django_api-0.6.0/seo/models.py +17 -0
  356. grooveshop_django_api-0.6.0/seo/views.py +0 -0
  357. grooveshop_django_api-0.6.0/session/__init__.py +0 -0
  358. grooveshop_django_api-0.6.0/session/admin.py +0 -0
  359. grooveshop_django_api-0.6.0/session/apps.py +13 -0
  360. grooveshop_django_api-0.6.0/session/middleware.py +97 -0
  361. grooveshop_django_api-0.6.0/session/migrations/__init__.py +0 -0
  362. grooveshop_django_api-0.6.0/session/signals.py +68 -0
  363. grooveshop_django_api-0.6.0/session/urls.py +12 -0
  364. grooveshop_django_api-0.6.0/session/views.py +76 -0
  365. grooveshop_django_api-0.6.0/setup.py +11 -0
  366. grooveshop_django_api-0.6.0/slider/__init__.py +0 -0
  367. grooveshop_django_api-0.6.0/slider/admin.py +40 -0
  368. grooveshop_django_api-0.6.0/slider/apps.py +5 -0
  369. grooveshop_django_api-0.6.0/slider/migrations/0001_initial.py +269 -0
  370. grooveshop_django_api-0.6.0/slider/migrations/__init__.py +0 -0
  371. grooveshop_django_api-0.6.0/slider/models.py +140 -0
  372. grooveshop_django_api-0.6.0/slider/paginators.py +15 -0
  373. grooveshop_django_api-0.6.0/slider/serializers.py +67 -0
  374. grooveshop_django_api-0.6.0/slider/urls.py +40 -0
  375. grooveshop_django_api-0.6.0/slider/views.py +123 -0
  376. grooveshop_django_api-0.6.0/socialaccount/authentication_error.html +17 -0
  377. grooveshop_django_api-0.6.0/socialaccount/base.html +1 -0
  378. grooveshop_django_api-0.6.0/socialaccount/connections.html +60 -0
  379. grooveshop_django_api-0.6.0/socialaccount/login.html +29 -0
  380. grooveshop_django_api-0.6.0/socialaccount/login_cancelled.html +20 -0
  381. grooveshop_django_api-0.6.0/socialaccount/messages/account_connected.txt +2 -0
  382. grooveshop_django_api-0.6.0/socialaccount/messages/account_connected_other.txt +2 -0
  383. grooveshop_django_api-0.6.0/socialaccount/messages/account_connected_updated.txt +1 -0
  384. grooveshop_django_api-0.6.0/socialaccount/messages/account_disconnected.txt +2 -0
  385. grooveshop_django_api-0.6.0/socialaccount/signup.html +34 -0
  386. grooveshop_django_api-0.6.0/socialaccount/snippets/login_extra.html +3 -0
  387. grooveshop_django_api-0.6.0/socialaccount/snippets/provider_list.html +24 -0
  388. grooveshop_django_api-0.6.0/templates/account/account_inactive.html +11 -0
  389. grooveshop_django_api-0.6.0/templates/account/base.html +247 -0
  390. grooveshop_django_api-0.6.0/templates/account/email/account_already_exists_message.txt +13 -0
  391. grooveshop_django_api-0.6.0/templates/account/email/account_already_exists_subject.txt +4 -0
  392. grooveshop_django_api-0.6.0/templates/account/email/base_message.txt +7 -0
  393. grooveshop_django_api-0.6.0/templates/account/email/email_confirmation_message.txt +7 -0
  394. grooveshop_django_api-0.6.0/templates/account/email/email_confirmation_signup_message.txt +1 -0
  395. grooveshop_django_api-0.6.0/templates/account/email/email_confirmation_signup_subject.txt +1 -0
  396. grooveshop_django_api-0.6.0/templates/account/email/email_confirmation_subject.txt +4 -0
  397. grooveshop_django_api-0.6.0/templates/account/email/password_reset_key_message.txt +9 -0
  398. grooveshop_django_api-0.6.0/templates/account/email/password_reset_key_subject.txt +4 -0
  399. grooveshop_django_api-0.6.0/templates/account/email/unknown_account_message.txt +12 -0
  400. grooveshop_django_api-0.6.0/templates/account/email/unknown_account_subject.txt +4 -0
  401. grooveshop_django_api-0.6.0/templates/account/email.html +100 -0
  402. grooveshop_django_api-0.6.0/templates/account/email_confirm.html +30 -0
  403. grooveshop_django_api-0.6.0/templates/account/login.html +99 -0
  404. grooveshop_django_api-0.6.0/templates/account/logout.html +25 -0
  405. grooveshop_django_api-0.6.0/templates/account/messages/cannot_delete_primary_email.txt +2 -0
  406. grooveshop_django_api-0.6.0/templates/account/messages/email_confirmation_sent.txt +2 -0
  407. grooveshop_django_api-0.6.0/templates/account/messages/email_confirmed.txt +2 -0
  408. grooveshop_django_api-0.6.0/templates/account/messages/email_deleted.txt +2 -0
  409. grooveshop_django_api-0.6.0/templates/account/messages/logged_in.txt +4 -0
  410. grooveshop_django_api-0.6.0/templates/account/messages/logged_out.txt +2 -0
  411. grooveshop_django_api-0.6.0/templates/account/messages/password_changed.txt +2 -0
  412. grooveshop_django_api-0.6.0/templates/account/messages/password_set.txt +2 -0
  413. grooveshop_django_api-0.6.0/templates/account/messages/primary_email_set.txt +2 -0
  414. grooveshop_django_api-0.6.0/templates/account/messages/unverified_primary_email.txt +2 -0
  415. grooveshop_django_api-0.6.0/templates/account/password_change.html +47 -0
  416. grooveshop_django_api-0.6.0/templates/account/password_reset.html +39 -0
  417. grooveshop_django_api-0.6.0/templates/account/password_reset_done.html +22 -0
  418. grooveshop_django_api-0.6.0/templates/account/password_reset_from_key.html +44 -0
  419. grooveshop_django_api-0.6.0/templates/account/password_reset_from_key_done.html +17 -0
  420. grooveshop_django_api-0.6.0/templates/account/password_set.html +21 -0
  421. grooveshop_django_api-0.6.0/templates/account/signup.html +63 -0
  422. grooveshop_django_api-0.6.0/templates/account/signup_closed.html +17 -0
  423. grooveshop_django_api-0.6.0/templates/account/snippets/already_logged_in.html +5 -0
  424. grooveshop_django_api-0.6.0/templates/account/verification_sent.html +17 -0
  425. grooveshop_django_api-0.6.0/templates/account/verified_email_required.html +27 -0
  426. grooveshop_django_api-0.6.0/templates/allauth_2fa/authenticate.html +37 -0
  427. grooveshop_django_api-0.6.0/templates/allauth_2fa/backup_tokens.html +50 -0
  428. grooveshop_django_api-0.6.0/templates/allauth_2fa/remove.html +39 -0
  429. grooveshop_django_api-0.6.0/templates/allauth_2fa/setup.html +62 -0
  430. grooveshop_django_api-0.6.0/templates/openid/base.html +1 -0
  431. grooveshop_django_api-0.6.0/templates/openid/login.html +18 -0
  432. grooveshop_django_api-0.6.0/templates/socialaccount/authentication_error.html +17 -0
  433. grooveshop_django_api-0.6.0/templates/socialaccount/base.html +1 -0
  434. grooveshop_django_api-0.6.0/templates/socialaccount/connections.html +60 -0
  435. grooveshop_django_api-0.6.0/templates/socialaccount/login.html +29 -0
  436. grooveshop_django_api-0.6.0/templates/socialaccount/login_cancelled.html +20 -0
  437. grooveshop_django_api-0.6.0/templates/socialaccount/messages/account_connected.txt +2 -0
  438. grooveshop_django_api-0.6.0/templates/socialaccount/messages/account_connected_other.txt +2 -0
  439. grooveshop_django_api-0.6.0/templates/socialaccount/messages/account_connected_updated.txt +1 -0
  440. grooveshop_django_api-0.6.0/templates/socialaccount/messages/account_disconnected.txt +2 -0
  441. grooveshop_django_api-0.6.0/templates/socialaccount/signup.html +34 -0
  442. grooveshop_django_api-0.6.0/templates/socialaccount/snippets/login_extra.html +3 -0
  443. grooveshop_django_api-0.6.0/templates/socialaccount/snippets/provider_list.html +24 -0
  444. grooveshop_django_api-0.6.0/templates/tests/test_403_csrf.html +2 -0
  445. grooveshop_django_api-0.6.0/tests/__init__.py +0 -0
  446. grooveshop_django_api-0.6.0/tests/integration/__init__.py +0 -0
  447. grooveshop_django_api-0.6.0/tests/integration/blog/__init__.py +0 -0
  448. grooveshop_django_api-0.6.0/tests/integration/blog/author/__init__.py +0 -0
  449. grooveshop_django_api-0.6.0/tests/integration/blog/author/test_model_blog_author.py +20 -0
  450. grooveshop_django_api-0.6.0/tests/integration/blog/author/test_view_blog_author.py +130 -0
  451. grooveshop_django_api-0.6.0/tests/integration/blog/category/__init__.py +0 -0
  452. grooveshop_django_api-0.6.0/tests/integration/blog/category/test_model_blog_category.py +56 -0
  453. grooveshop_django_api-0.6.0/tests/integration/blog/category/test_view_blog_category.py +157 -0
  454. grooveshop_django_api-0.6.0/tests/integration/blog/comment/__init__.py +0 -0
  455. grooveshop_django_api-0.6.0/tests/integration/blog/comment/test_model_blog_comment.py +46 -0
  456. grooveshop_django_api-0.6.0/tests/integration/blog/comment/test_view_blog_comment.py +190 -0
  457. grooveshop_django_api-0.6.0/tests/integration/blog/post/__init__.py +0 -0
  458. grooveshop_django_api-0.6.0/tests/integration/blog/post/test_model_blog_post.py +87 -0
  459. grooveshop_django_api-0.6.0/tests/integration/blog/post/test_view_blog_post.py +211 -0
  460. grooveshop_django_api-0.6.0/tests/integration/blog/tag/__init__.py +0 -0
  461. grooveshop_django_api-0.6.0/tests/integration/blog/tag/test_model_blog_tag.py +16 -0
  462. grooveshop_django_api-0.6.0/tests/integration/blog/tag/test_view_blog_tag.py +129 -0
  463. grooveshop_django_api-0.6.0/tests/integration/country/__init__.py +0 -0
  464. grooveshop_django_api-0.6.0/tests/integration/country/test_view_country.py +154 -0
  465. grooveshop_django_api-0.6.0/tests/integration/pay_way/__init__.py +0 -0
  466. grooveshop_django_api-0.6.0/tests/integration/pay_way/test_view_pay_way.py +146 -0
  467. grooveshop_django_api-0.6.0/tests/integration/product/__init__.py +0 -0
  468. grooveshop_django_api-0.6.0/tests/integration/product/category/__init__.py +0 -0
  469. grooveshop_django_api-0.6.0/tests/integration/product/category/test_view_product_category.py +147 -0
  470. grooveshop_django_api-0.6.0/tests/integration/product/favourite/__init__.py +0 -0
  471. grooveshop_django_api-0.6.0/tests/integration/product/favourite/test_view_product_favourite.py +149 -0
  472. grooveshop_django_api-0.6.0/tests/integration/product/product/__init__.py +0 -0
  473. grooveshop_django_api-0.6.0/tests/integration/product/product/test_view_product_product.py +192 -0
  474. grooveshop_django_api-0.6.0/tests/integration/product/review/__init__.py +0 -0
  475. grooveshop_django_api-0.6.0/tests/integration/product/review/test_view_product_review.py +189 -0
  476. grooveshop_django_api-0.6.0/tests/integration/region/__init__.py +0 -0
  477. grooveshop_django_api-0.6.0/tests/integration/region/test_view_region.py +158 -0
  478. grooveshop_django_api-0.6.0/tests/integration/slider/__init__.py +0 -0
  479. grooveshop_django_api-0.6.0/tests/integration/slider/test_view_slide.py +172 -0
  480. grooveshop_django_api-0.6.0/tests/integration/slider/test_view_slider.py +143 -0
  481. grooveshop_django_api-0.6.0/tests/integration/tip/__init__.py +0 -0
  482. grooveshop_django_api-0.6.0/tests/integration/tip/test_view_tip.py +162 -0
  483. grooveshop_django_api-0.6.0/tests/integration/user/__init__.py +0 -0
  484. grooveshop_django_api-0.6.0/tests/integration/user/test_view_user_account.py +116 -0
  485. grooveshop_django_api-0.6.0/tests/integration/user/test_view_user_address.py +205 -0
  486. grooveshop_django_api-0.6.0/tests/integration/vat/__init__.py +0 -0
  487. grooveshop_django_api-0.6.0/tests/integration/vat/test_model_vat.py +14 -0
  488. grooveshop_django_api-0.6.0/tests/integration/vat/test_view_vat.py +107 -0
  489. grooveshop_django_api-0.6.0/tests/test_403_csrf.html +2 -0
  490. grooveshop_django_api-0.6.0/tests/unit/__init__.py +0 -0
  491. grooveshop_django_api-0.6.0/tip/__init__.py +0 -0
  492. grooveshop_django_api-0.6.0/tip/admin.py +11 -0
  493. grooveshop_django_api-0.6.0/tip/apps.py +5 -0
  494. grooveshop_django_api-0.6.0/tip/enum/__init__.py +0 -0
  495. grooveshop_django_api-0.6.0/tip/enum/tip_enum.py +14 -0
  496. grooveshop_django_api-0.6.0/tip/migrations/0001_initial.py +129 -0
  497. grooveshop_django_api-0.6.0/tip/migrations/__init__.py +0 -0
  498. grooveshop_django_api-0.6.0/tip/models.py +68 -0
  499. grooveshop_django_api-0.6.0/tip/paginators.py +8 -0
  500. grooveshop_django_api-0.6.0/tip/serializers.py +28 -0
  501. grooveshop_django_api-0.6.0/tip/urls.py +24 -0
  502. grooveshop_django_api-0.6.0/tip/validators.py +19 -0
  503. grooveshop_django_api-0.6.0/tip/views.py +66 -0
  504. grooveshop_django_api-0.6.0/user/__init__.py +0 -0
  505. grooveshop_django_api-0.6.0/user/admin.py +31 -0
  506. grooveshop_django_api-0.6.0/user/apps.py +5 -0
  507. grooveshop_django_api-0.6.0/user/enum/__init__.py +0 -0
  508. grooveshop_django_api-0.6.0/user/enum/address.py +29 -0
  509. grooveshop_django_api-0.6.0/user/migrations/0001_initial.py +281 -0
  510. grooveshop_django_api-0.6.0/user/migrations/__init__.py +0 -0
  511. grooveshop_django_api-0.6.0/user/models/__init__.py +2 -0
  512. grooveshop_django_api-0.6.0/user/models/account.py +138 -0
  513. grooveshop_django_api-0.6.0/user/models/address.py +77 -0
  514. grooveshop_django_api-0.6.0/user/paginators/__init__.py +0 -0
  515. grooveshop_django_api-0.6.0/user/paginators/account.py +8 -0
  516. grooveshop_django_api-0.6.0/user/paginators/address.py +8 -0
  517. grooveshop_django_api-0.6.0/user/serializers/__init__.py +0 -0
  518. grooveshop_django_api-0.6.0/user/serializers/account.py +46 -0
  519. grooveshop_django_api-0.6.0/user/serializers/address.py +63 -0
  520. grooveshop_django_api-0.6.0/user/urls.py +50 -0
  521. grooveshop_django_api-0.6.0/user/views/__init__.py +0 -0
  522. grooveshop_django_api-0.6.0/user/views/account.py +74 -0
  523. grooveshop_django_api-0.6.0/user/views/address.py +114 -0
  524. grooveshop_django_api-0.6.0/vat/__init__.py +0 -0
  525. grooveshop_django_api-0.6.0/vat/admin.py +8 -0
  526. grooveshop_django_api-0.6.0/vat/apps.py +5 -0
  527. grooveshop_django_api-0.6.0/vat/migrations/0001_initial.py +43 -0
  528. grooveshop_django_api-0.6.0/vat/migrations/__init__.py +0 -0
  529. grooveshop_django_api-0.6.0/vat/models.py +22 -0
  530. grooveshop_django_api-0.6.0/vat/paginators.py +8 -0
  531. grooveshop_django_api-0.6.0/vat/serializers.py +15 -0
  532. grooveshop_django_api-0.6.0/vat/urls.py +24 -0
  533. grooveshop_django_api-0.6.0/vat/views.py +66 -0
@@ -0,0 +1,36 @@
1
+ [run]
2
+ branch = True
3
+ source = .
4
+ omit =
5
+ */migrations/*
6
+ */management/*
7
+ */manage.py
8
+ */setup.py
9
+ */asgi.py
10
+ */wsgi.py
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
29
+
30
+ # Don't complain about abstract methods, they aren't run:
31
+ @(abc\.)?abstractmethod
32
+
33
+ ignore_errors = True
34
+
35
+ [html]
36
+ directory = coverage_html_report
@@ -0,0 +1,32 @@
1
+ # -*- mode: conf-unix; -*-
2
+
3
+ # EditorConfig is awesome: http://EditorConfig.org
4
+
5
+ # top-most EditorConfig file
6
+ root = true
7
+
8
+ # defaults
9
+ [*]
10
+ end_of_line = lf
11
+ insert_final_newline = false
12
+
13
+ # 2 space indentation
14
+ [*.{ini,rst,js,html,css}]
15
+ indent_style = space
16
+ indent_size = 2
17
+ trim_trailing_whitespace = true
18
+ insert_final_newline = true
19
+ max_line_length = 90
20
+
21
+ [*.py]
22
+ indent_style = space
23
+ indent_size = 4
24
+ trim_trailing_whitespace = true
25
+ insert_final_newline = true
26
+ max_line_length = 90
27
+
28
+ # and travis does its own thing
29
+ [*.yml]
30
+ indent_style = space
31
+ indent_size = 2
32
+ trim_trailing_whitespace = true
@@ -0,0 +1,65 @@
1
+ # Django
2
+ DEBUG=1
3
+ SYSTEM_ENV=dev|prod|docker
4
+ SITE_NAME=""
5
+ ALLOWED_HOSTS='[*]'
6
+ SECRET_KEY=devsecret
7
+ APPEND_SLASH=False
8
+ COERCE_DECIMAL_TO_STRING=False
9
+ APP_BASE_URL=http://localhost:8000
10
+ APP_MAIN_HOST_NAME=localhost
11
+ NUXT_BASE_URL=http://localhost:3000
12
+ MEDIA_STREAM_BASE_URL=http://localhost:3003
13
+ MEDIA_STREAM_PATH=http://localhost:3003/media_stream-image
14
+ DJANGO_SETTINGS_MODULE=settings
15
+ DJANG0_SPECTACULAR_SETTINGS_TITLE=
16
+ DJANG0_SPECTACULAR_SETTINGS_DESCRIPTION=
17
+ CORS_ORIGIN_ALLOW_ALL=True
18
+
19
+ # Postgres
20
+ DB_HOST=db
21
+ DB_NAME=devdb
22
+ DB_USER=devuser
23
+ DB_PASS=changeme
24
+
25
+ # Postgres Test
26
+ DB_HOST_TEST=db_replica
27
+ DB_NAME_TEST=devdb_replica
28
+ DB_TEST_MIRROR=default
29
+
30
+ # Django Mailer
31
+ EMAIL_BACKEND='django.core.mail.backends.console.EmailBackend' # django.core.mail.backends.smtp.EmailBackend for prod
32
+ EMAIL_HOST='localhost' # smtp.gmail.com for prod
33
+ EMAIL_PORT=25 # 587 for prod
34
+ EMAIL_HOST_USER=
35
+ EMAIL_HOST_PASSWORD=
36
+ EMAIL_USE_TLS=False # True for prod
37
+ DEFAULT_FROM_EMAIL=
38
+
39
+ # Django Timezone
40
+ LANGUAGE_CODE='en'
41
+ TIME_ZONE='Europe/Athens'
42
+ USE_I18N=True
43
+ USE_L10N=True
44
+ USE_TZ=True
45
+
46
+ # Postgres credentials
47
+ POSTGRES_DB=devdb
48
+ POSTGRES_USER=devuser
49
+ POSTGRES_PASSWORD=changeme
50
+
51
+ # PgAdmin
52
+ PGADMIN_DEFAULT_EMAIL=devuser@devuser.com
53
+ PGADMIN_DEFAULT_PASSWORD=changeme
54
+ PGADMIN_LISTEN_PORT=5050
55
+
56
+ # superuser details
57
+ DJANGO_SU_NAME=
58
+ DJANGO_SU_EMAIL=
59
+ DJANGO_SU_PASSWORD=
60
+
61
+ # Elastic Search
62
+ ELASTICSEARCH_DSL_HOSTS=['localhost:9200']
63
+
64
+ # DeepL
65
+ DEEPL_AUTH_KEY=
@@ -0,0 +1,22 @@
1
+ [flake8]
2
+ show-source = True
3
+ statistics = False
4
+ doctests = True
5
+ strictness = long
6
+ docstring-style = numpy
7
+ max-line-length = 140
8
+ extend-ignore = E203, H101, H238, H301, H306, W503
9
+ exclude =
10
+ .*/,
11
+ __pycache__/,
12
+ node_modules/,
13
+ */migrations/
14
+ ignore = E203,H101,H238,H301,H306,W503
15
+ max-complexity = 31
16
+
17
+ [flake8.report]
18
+ exclude_lines =
19
+ pragma: no cover
20
+ raise NotImplementedError
21
+ return NotImplemented
22
+ if TYPE_CHECKING:
@@ -0,0 +1,11 @@
1
+ 74956f8cdfe006873ca80c067fa8656b27534abe branch 'main' of https://github.com/vasilistotskas/grooveshop-django-api
2
+ 253afefeaf401b8feed0d7026107c9c620f3bb52 tag 'v0.1.0' of https://github.com/vasilistotskas/grooveshop-django-api
3
+ e33c5b2c6e88cc39bce5e6496b00276e9575846f tag 'v0.1.1' of https://github.com/vasilistotskas/grooveshop-django-api
4
+ f6edef0df3448c3fdb94a70eb7cfd69f40c1bf94 tag 'v0.2.0' of https://github.com/vasilistotskas/grooveshop-django-api
5
+ 211bd1c77a43ab05cd922933471f73775442d61e tag 'v0.2.1' of https://github.com/vasilistotskas/grooveshop-django-api
6
+ 6ee256b40f7a1df827ad41d10951af0487e634b3 tag 'v0.2.2' of https://github.com/vasilistotskas/grooveshop-django-api
7
+ 1c5a399a15674fea21987e570c2096c1b9760c67 tag 'v0.3.0' of https://github.com/vasilistotskas/grooveshop-django-api
8
+ 3c2784a8b64298962431a5e44e5336d90f55c4bd tag 'v0.3.1' of https://github.com/vasilistotskas/grooveshop-django-api
9
+ fbbc33b358e45c91c77c3bb88bbb406ccb27b1a4 tag 'v0.3.2' of https://github.com/vasilistotskas/grooveshop-django-api
10
+ b8ceb1dbd054d08645d8f0ef3b079b5305e7514c tag 'v0.4.0' of https://github.com/vasilistotskas/grooveshop-django-api
11
+ 7d945471ae78138712afa8f972fcd5a1104cd487 tag 'v0.5.0' of https://github.com/vasilistotskas/grooveshop-django-api
@@ -0,0 +1 @@
1
+ ref: refs/heads/main
@@ -0,0 +1,15 @@
1
+ [core]
2
+ repositoryformatversion = 0
3
+ filemode = true
4
+ bare = false
5
+ logallrefupdates = true
6
+ [remote "origin"]
7
+ url = https://github.com/vasilistotskas/grooveshop-django-api
8
+ fetch = +refs/heads/*:refs/remotes/origin/*
9
+ [gc]
10
+ auto = 0
11
+ [http "https://github.com/"]
12
+ extraheader = AUTHORIZATION: basic eC1hY2Nlc3MtdG9rZW46Z2hzX1l3UFBMaEJEMmFrd0xpQ1N6ckRTRnVJSjJ0M25kUDRCNFRGQw==
13
+ [branch "main"]
14
+ remote = origin
15
+ merge = refs/heads/main
@@ -0,0 +1 @@
1
+ Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,15 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message taken by
4
+ # applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit. The hook is
8
+ # allowed to edit the commit message file.
9
+ #
10
+ # To enable this hook, rename this file to "applypatch-msg".
11
+
12
+ . git-sh-setup
13
+ commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
14
+ test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
15
+ :
@@ -0,0 +1,24 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message.
4
+ # Called by "git commit" with one argument, the name of the file
5
+ # that has the commit message. The hook should exit with non-zero
6
+ # status after issuing an appropriate message if it wants to stop the
7
+ # commit. The hook is allowed to edit the commit message file.
8
+ #
9
+ # To enable this hook, rename this file to "commit-msg".
10
+
11
+ # Uncomment the below to add a Signed-off-by line to the message.
12
+ # Doing this in a hook is a bad idea in general, but the prepare-commit-msg
13
+ # hook is more suited to it.
14
+ #
15
+ # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
16
+ # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
17
+
18
+ # This example catches duplicate Signed-off-by lines.
19
+
20
+ test "" = "$(grep '^Signed-off-by: ' "$1" |
21
+ sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
22
+ echo >&2 Duplicate Signed-off-by lines.
23
+ exit 1
24
+ }
@@ -0,0 +1,174 @@
1
+ #!/usr/bin/perl
2
+
3
+ use strict;
4
+ use warnings;
5
+ use IPC::Open2;
6
+
7
+ # An example hook script to integrate Watchman
8
+ # (https://facebook.github.io/watchman/) with git to speed up detecting
9
+ # new and modified files.
10
+ #
11
+ # The hook is passed a version (currently 2) and last update token
12
+ # formatted as a string and outputs to stdout a new update token and
13
+ # all files that have been modified since the update token. Paths must
14
+ # be relative to the root of the working tree and separated by a single NUL.
15
+ #
16
+ # To enable this hook, rename this file to "query-watchman" and set
17
+ # 'git config core.fsmonitor .git/hooks/query-watchman'
18
+ #
19
+ my ($version, $last_update_token) = @ARGV;
20
+
21
+ # Uncomment for debugging
22
+ # print STDERR "$0 $version $last_update_token\n";
23
+
24
+ # Check the hook interface version
25
+ if ($version ne 2) {
26
+ die "Unsupported query-fsmonitor hook version '$version'.\n" .
27
+ "Falling back to scanning...\n";
28
+ }
29
+
30
+ my $git_work_tree = get_working_dir();
31
+
32
+ my $retry = 1;
33
+
34
+ my $json_pkg;
35
+ eval {
36
+ require JSON::XS;
37
+ $json_pkg = "JSON::XS";
38
+ 1;
39
+ } or do {
40
+ require JSON::PP;
41
+ $json_pkg = "JSON::PP";
42
+ };
43
+
44
+ launch_watchman();
45
+
46
+ sub launch_watchman {
47
+ my $o = watchman_query();
48
+ if (is_work_tree_watched($o)) {
49
+ output_result($o->{clock}, @{$o->{files}});
50
+ }
51
+ }
52
+
53
+ sub output_result {
54
+ my ($clockid, @files) = @_;
55
+
56
+ # Uncomment for debugging watchman output
57
+ # open (my $fh, ">", ".git/watchman-output.out");
58
+ # binmode $fh, ":utf8";
59
+ # print $fh "$clockid\n@files\n";
60
+ # close $fh;
61
+
62
+ binmode STDOUT, ":utf8";
63
+ print $clockid;
64
+ print "\0";
65
+ local $, = "\0";
66
+ print @files;
67
+ }
68
+
69
+ sub watchman_clock {
70
+ my $response = qx/watchman clock "$git_work_tree"/;
71
+ die "Failed to get clock id on '$git_work_tree'.\n" .
72
+ "Falling back to scanning...\n" if $? != 0;
73
+
74
+ return $json_pkg->new->utf8->decode($response);
75
+ }
76
+
77
+ sub watchman_query {
78
+ my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty')
79
+ or die "open2() failed: $!\n" .
80
+ "Falling back to scanning...\n";
81
+
82
+ # In the query expression below we're asking for names of files that
83
+ # changed since $last_update_token but not from the .git folder.
84
+ #
85
+ # To accomplish this, we're using the "since" generator to use the
86
+ # recency index to select candidate nodes and "fields" to limit the
87
+ # output to file names only. Then we're using the "expression" term to
88
+ # further constrain the results.
89
+ my $last_update_line = "";
90
+ if (substr($last_update_token, 0, 1) eq "c") {
91
+ $last_update_token = "\"$last_update_token\"";
92
+ $last_update_line = qq[\n"since": $last_update_token,];
93
+ }
94
+ my $query = <<" END";
95
+ ["query", "$git_work_tree", {$last_update_line
96
+ "fields": ["name"],
97
+ "expression": ["not", ["dirname", ".git"]]
98
+ }]
99
+ END
100
+
101
+ # Uncomment for debugging the watchman query
102
+ # open (my $fh, ">", ".git/watchman-query.json");
103
+ # print $fh $query;
104
+ # close $fh;
105
+
106
+ print CHLD_IN $query;
107
+ close CHLD_IN;
108
+ my $response = do {local $/; <CHLD_OUT>};
109
+
110
+ # Uncomment for debugging the watch response
111
+ # open ($fh, ">", ".git/watchman-response.json");
112
+ # print $fh $response;
113
+ # close $fh;
114
+
115
+ die "Watchman: command returned no output.\n" .
116
+ "Falling back to scanning...\n" if $response eq "";
117
+ die "Watchman: command returned invalid output: $response\n" .
118
+ "Falling back to scanning...\n" unless $response =~ /^\{/;
119
+
120
+ return $json_pkg->new->utf8->decode($response);
121
+ }
122
+
123
+ sub is_work_tree_watched {
124
+ my ($output) = @_;
125
+ my $error = $output->{error};
126
+ if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) {
127
+ $retry--;
128
+ my $response = qx/watchman watch "$git_work_tree"/;
129
+ die "Failed to make watchman watch '$git_work_tree'.\n" .
130
+ "Falling back to scanning...\n" if $? != 0;
131
+ $output = $json_pkg->new->utf8->decode($response);
132
+ $error = $output->{error};
133
+ die "Watchman: $error.\n" .
134
+ "Falling back to scanning...\n" if $error;
135
+
136
+ # Uncomment for debugging watchman output
137
+ # open (my $fh, ">", ".git/watchman-output.out");
138
+ # close $fh;
139
+
140
+ # Watchman will always return all files on the first query so
141
+ # return the fast "everything is dirty" flag to git and do the
142
+ # Watchman query just to get it over with now so we won't pay
143
+ # the cost in git to look up each individual file.
144
+ my $o = watchman_clock();
145
+ $error = $output->{error};
146
+
147
+ die "Watchman: $error.\n" .
148
+ "Falling back to scanning...\n" if $error;
149
+
150
+ output_result($o->{clock}, ("/"));
151
+ $last_update_token = $o->{clock};
152
+
153
+ eval { launch_watchman() };
154
+ return 0;
155
+ }
156
+
157
+ die "Watchman: $error.\n" .
158
+ "Falling back to scanning...\n" if $error;
159
+
160
+ return 1;
161
+ }
162
+
163
+ sub get_working_dir {
164
+ my $working_dir;
165
+ if ($^O =~ 'msys' || $^O =~ 'cygwin') {
166
+ $working_dir = Win32::GetCwd();
167
+ $working_dir =~ tr/\\/\//;
168
+ } else {
169
+ require Cwd;
170
+ $working_dir = Cwd::cwd();
171
+ }
172
+
173
+ return $working_dir;
174
+ }
@@ -0,0 +1,8 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to prepare a packed repository for use over
4
+ # dumb transports.
5
+ #
6
+ # To enable this hook, rename this file to "post-update".
7
+
8
+ exec git update-server-info
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed
4
+ # by applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit.
8
+ #
9
+ # To enable this hook, rename this file to "pre-applypatch".
10
+
11
+ . git-sh-setup
12
+ precommit="$(git rev-parse --git-path hooks/pre-commit)"
13
+ test -x "$precommit" && exec "$precommit" ${1+"$@"}
14
+ :
@@ -0,0 +1,49 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git commit" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message if
6
+ # it wants to stop the commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-commit".
9
+
10
+ if git rev-parse --verify HEAD >/dev/null 2>&1
11
+ then
12
+ against=HEAD
13
+ else
14
+ # Initial commit: diff against an empty tree object
15
+ against=$(git hash-object -t tree /dev/null)
16
+ fi
17
+
18
+ # If you want to allow non-ASCII filenames set this variable to true.
19
+ allownonascii=$(git config --type=bool hooks.allownonascii)
20
+
21
+ # Redirect output to stderr.
22
+ exec 1>&2
23
+
24
+ # Cross platform projects tend to avoid non-ASCII filenames; prevent
25
+ # them from being added to the repository. We exploit the fact that the
26
+ # printable range starts at the space character and ends with tilde.
27
+ if [ "$allownonascii" != "true" ] &&
28
+ # Note that the use of brackets around a tr range is ok here, (it's
29
+ # even required, for portability to Solaris 10's /usr/bin/tr), since
30
+ # the square bracket bytes happen to fall in the designated range.
31
+ test $(git diff --cached --name-only --diff-filter=A -z $against |
32
+ LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
33
+ then
34
+ cat <<\EOF
35
+ Error: Attempt to add a non-ASCII file name.
36
+
37
+ This can cause problems if you want to work with people on other platforms.
38
+
39
+ To be portable it is advisable to rename the file.
40
+
41
+ If you know what you are doing you can disable this check using:
42
+
43
+ git config hooks.allownonascii true
44
+ EOF
45
+ exit 1
46
+ fi
47
+
48
+ # If there are whitespace errors, print the offending file names and fail.
49
+ exec git diff-index --check --cached $against --
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git merge" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message to
6
+ # stderr if it wants to stop the merge commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-merge-commit".
9
+
10
+ . git-sh-setup
11
+ test -x "$GIT_DIR/hooks/pre-commit" &&
12
+ exec "$GIT_DIR/hooks/pre-commit"
13
+ :
@@ -0,0 +1,53 @@
1
+ #!/bin/sh
2
+
3
+ # An example hook script to verify what is about to be pushed. Called by "git
4
+ # push" after it has checked the remote status, but before anything has been
5
+ # pushed. If this script exits with a non-zero status nothing will be pushed.
6
+ #
7
+ # This hook is called with the following parameters:
8
+ #
9
+ # $1 -- Name of the remote to which the push is being done
10
+ # $2 -- URL to which the push is being done
11
+ #
12
+ # If pushing without using a named remote those arguments will be equal.
13
+ #
14
+ # Information about the commits which are being pushed is supplied as lines to
15
+ # the standard input in the form:
16
+ #
17
+ # <local ref> <local oid> <remote ref> <remote oid>
18
+ #
19
+ # This sample shows how to prevent push of commits where the log message starts
20
+ # with "WIP" (work in progress).
21
+
22
+ remote="$1"
23
+ url="$2"
24
+
25
+ zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
26
+
27
+ while read local_ref local_oid remote_ref remote_oid
28
+ do
29
+ if test "$local_oid" = "$zero"
30
+ then
31
+ # Handle delete
32
+ :
33
+ else
34
+ if test "$remote_oid" = "$zero"
35
+ then
36
+ # New branch, examine all commits
37
+ range="$local_oid"
38
+ else
39
+ # Update to existing branch, examine new commits
40
+ range="$remote_oid..$local_oid"
41
+ fi
42
+
43
+ # Check for WIP commit
44
+ commit=$(git rev-list -n 1 --grep '^WIP' "$range")
45
+ if test -n "$commit"
46
+ then
47
+ echo >&2 "Found WIP commit in $local_ref, not pushing"
48
+ exit 1
49
+ fi
50
+ fi
51
+ done
52
+
53
+ exit 0