fnschool 20251101.82236.812__tar.gz → 20251102.81729.808__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.

Potentially problematic release.


This version of fnschool might be problematic. Click here for more details.

Files changed (152) hide show
  1. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/PKG-INFO +1 -1
  2. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/__init__.py +1 -1
  3. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/settings.py +1 -6
  4. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/manage.py +21 -17
  5. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile.py +17 -13
  6. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/apps.py +7 -0
  7. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/settings.py +0 -10
  8. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/PKG-INFO +1 -1
  9. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/LICENSE +0 -0
  10. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/README.md +0 -0
  11. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/pyproject.toml +0 -0
  12. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/setup.cfg +0 -0
  13. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/__init__.py +0 -0
  14. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/admin.py +0 -0
  15. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/apps.py +0 -0
  16. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/forms.py +0 -0
  17. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0001_initial.py +0 -0
  18. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0002_ingredient_is_disabled.py +0 -0
  19. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0003_consumption_is_disabled_alter_ingredient_is_disabled.py +0 -0
  20. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0004_alter_ingredient_name_category_and_more.py +0 -0
  21. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0005_alter_category_created_at_alter_category_name_and_more.py +0 -0
  22. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0006_category_is_disabled_alter_category_user_and_more.py +0 -0
  23. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0007_alter_consumption_amount_used_and_more.py +0 -0
  24. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0008_category_abbreviation_mealtype.py +0 -0
  25. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0009_alter_category_abbreviation_and_more.py +0 -0
  26. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0010_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  27. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0011_category_pin_to_consumptions_top.py +0 -0
  28. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0012_alter_ingredient_storage_date.py +0 -0
  29. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0013_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  30. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0014_category_priority.py +0 -0
  31. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0015_alter_category_options_alter_category_priority.py +0 -0
  32. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0016_consumption_unique_ingredient_date_of_using.py +0 -0
  33. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0017_ingredient_updated_at_alter_category_created_at_and_more.py +0 -0
  34. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0018_alter_ingredient_updated_at.py +0 -0
  35. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0019_category_updated_at_ingredient_created_at_and_more.py +0 -0
  36. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/0020_alter_ingredient_created_at.py +0 -0
  37. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/migrations/__init__.py +0 -0
  38. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/models.py +0 -0
  39. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/category/create.html +0 -0
  40. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/category/delete.html +0 -0
  41. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/category/list.html +0 -0
  42. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/category/update.html +0 -0
  43. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/close.html +0 -0
  44. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/consumption/_create.html +0 -0
  45. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/consumption/create.html +0 -0
  46. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/ingredient/close.html +0 -0
  47. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/ingredient/create.html +0 -0
  48. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/ingredient/create_one.html +0 -0
  49. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/ingredient/delete.html +0 -0
  50. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/ingredient/list.html +0 -0
  51. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/ingredient/update.html +0 -0
  52. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/meal_type/create.html +0 -0
  53. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/meal_type/delete.html +0 -0
  54. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/meal_type/list.html +0 -0
  55. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/templates/canteen/meal_type/update.html +0 -0
  56. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/tests.py +0 -0
  57. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/urls.py +0 -0
  58. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/views.py +0 -0
  59. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/workbook/__init__.py +0 -0
  60. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/canteen/workbook/generate.py +0 -0
  61. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/__init__.py +0 -0
  62. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/admin.py +0 -0
  63. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/apps.py +0 -0
  64. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/migrations/__init__.py +0 -0
  65. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/models.py +0 -0
  66. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/templates/fnhome/home.html +0 -0
  67. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/tests.py +0 -0
  68. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/urls.py +0 -0
  69. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnhome/views.py +0 -0
  70. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/__init__.py +0 -0
  71. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/admin.py +0 -0
  72. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/apps.py +0 -0
  73. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/forms.py +0 -0
  74. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/migrations/0001_initial.py +0 -0
  75. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/migrations/0002_auto_20251026_2235.py +0 -0
  76. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/migrations/0003_alter_fnuser_options_alter_fnuser_groups_and_more.py +0 -0
  77. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/migrations/__init__.py +0 -0
  78. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/models.py +0 -0
  79. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/signals.py +0 -0
  80. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/templates/fnprofile/create.html +0 -0
  81. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/templates/fnprofile/detail.html +0 -0
  82. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/templates/fnprofile/edit.html +0 -0
  83. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/templates/fnprofile/log_in.html +0 -0
  84. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/templates/fnprofile/log_out.html +0 -0
  85. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/tests.py +0 -0
  86. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/urls.py +0 -0
  87. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnprofile/views.py +0 -0
  88. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/__init__.py +0 -0
  89. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/_settings.py +0 -0
  90. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/asgi.py +0 -0
  91. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/templatetags/__init__.py +0 -0
  92. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/templatetags/fnschool_tags.py +0 -0
  93. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/urls.py +0 -0
  94. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/views.py +0 -0
  95. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/fnschool/wsgi.py +0 -0
  96. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/locale/en/LC_MESSAGES/django.mo +0 -0
  97. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  98. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/__init__.py +0 -0
  99. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/__init__.py +0 -0
  100. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/admin.py +0 -0
  101. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/forms.py +0 -0
  102. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0001_initial.py +0 -0
  103. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0002_alter_profile_bio.py +0 -0
  104. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0003_alter_profile_options_alter_profile_address_and_more.py +0 -0
  105. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0004_profile_gender.py +0 -0
  106. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0005_alter_profile_gender.py +0 -0
  107. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0006_profile_created_at_profile_updated_at.py +0 -0
  108. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/0007_alter_profile_created_at.py +0 -0
  109. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/migrations/__init__.py +0 -0
  110. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/models.py +0 -0
  111. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/signals.py +0 -0
  112. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/templates/profiles/create.html +0 -0
  113. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/templates/profiles/detail.html +0 -0
  114. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/templates/profiles/edit.html +0 -0
  115. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/templates/profiles/log_in.html +0 -0
  116. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/templates/profiles/log_out.html +0 -0
  117. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/tests.py +0 -0
  118. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/urls.py +0 -0
  119. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/202511012053_copy_profiles_to_fnprofile_data/profiles/views.py +0 -0
  120. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/patches/__init__.py +0 -0
  121. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/css/bootstrap.min.css +0 -0
  122. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/css/fnschool.css +0 -0
  123. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/images/favicon.ico +0 -0
  124. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/js/bootstrap.bundle.min.js +0 -0
  125. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/js/bootstrap.min.js +0 -0
  126. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/js/fnschool.js +0 -0
  127. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/js/jquery.min.js +0 -0
  128. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/js/jquery.slim.min.js +0 -0
  129. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/static/js/popper.min.js +0 -0
  130. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/base/_content.html +0 -0
  131. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/base/_css.html +0 -0
  132. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/base/_js.html +0 -0
  133. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/base/content.html +0 -0
  134. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/base/document.html +0 -0
  135. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/close.html +0 -0
  136. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/home.html +0 -0
  137. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/includes/_footer.html +0 -0
  138. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/includes/_header.html +0 -0
  139. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/includes/_navigation.html +0 -0
  140. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/includes/_paginator.html +0 -0
  141. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/registration/logged_out.html +0 -0
  142. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschoo1/templates/registration/login.html +0 -0
  143. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/SOURCES.txt +0 -0
  144. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/SOURCES.txt.py +0 -0
  145. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/dependency_links.txt +0 -0
  146. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/dependency_links.txt.py +0 -0
  147. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/entry_points.txt +0 -0
  148. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/entry_points.txt.py +0 -0
  149. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/requires.txt +0 -0
  150. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/requires.txt.py +0 -0
  151. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/top_level.txt +0 -0
  152. {fnschool-20251101.82236.812 → fnschool-20251102.81729.808}/src/fnschool.egg-info/top_level.txt.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251101.82236.812
3
+ Version: 20251102.81729.808
4
4
  Summary: Just some school related scripts, without any ambition.
5
5
  Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
6
6
  Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>
@@ -6,4 +6,4 @@ import random
6
6
  import sys
7
7
  from pathlib import Path
8
8
 
9
- __version__ = "20251101.82236.812"
9
+ __version__ = "20251102.81729.808"
@@ -170,11 +170,6 @@ LOGIN_URL = reverse_lazy("fnprofile:log_in")
170
170
 
171
171
  _settings_path = Path(__file__).parent / "_settings.py"
172
172
  if _settings_path.exists():
173
- print(
174
- ('Custom configuration "{_settings_path}" has been used.').format(
175
- _settings_path=_settings_path.as_posix()
176
- )
177
- )
178
- from ._settings import *
173
+ from fnschool._settings import *
179
174
 
180
175
  # The end.
@@ -1,5 +1,5 @@
1
- #!/usr/bin/env python3
2
1
  """Django's command-line utility for administrative tasks."""
2
+
3
3
  import os
4
4
  import platform
5
5
  import random
@@ -22,6 +22,20 @@ elif system_name == "Windows":
22
22
  elif system_name == "Darwin":
23
23
  is_macos = True
24
24
 
25
+ sys_executable = sys.executable
26
+
27
+
28
+ def run_patches():
29
+ if "202511012053_copy_profiles_to_fnprofile" in sys.argv:
30
+ patche_path = (
31
+ FNSCHOOL_PATH
32
+ / "patches"
33
+ / "202511012053_copy_profiles_to_fnprofile.py"
34
+ )
35
+ patche_path = patche_path.as_posix()
36
+ os.system(f"{sys_executable} {patche_path} run")
37
+ sys.exit()
38
+
25
39
 
26
40
  def main():
27
41
  """Run administrative tasks."""
@@ -38,28 +52,18 @@ def main():
38
52
  os.chdir(FNSCHOOL_PATH)
39
53
  sys.argv[0] = "manage.py"
40
54
 
41
- if "202511012053_copy_profiles_to_fnprofile" in sys.argv:
42
- patche_path = (
43
- FNSCHOOL_PATH
44
- / "patches"
45
- / "202511012053_copy_profiles_to_fnprofile.py"
46
- )
47
- patche_path = patche_path.as_posix()
48
- os.system(f"python3 {patche_path} run")
49
- return
55
+ run_patches()
50
56
 
51
57
  if len(sys.argv) < 2:
52
58
  local_port = "8230"
53
59
  local_url = "http://127.0.0.1:" + local_port
54
60
  sys.argv.append("runserver")
55
61
  sys.argv.append(str(local_port))
56
- try:
57
- if is_windows:
58
- os.startfile(local_url)
59
- else:
60
- os.system("open " + local_url + "&")
61
- except Exception as e:
62
- print(e)
62
+
63
+ if is_windows:
64
+ os.startfile(local_url)
65
+ else:
66
+ os.system("open " + local_url + "&")
63
67
 
64
68
  execute_from_command_line(sys.argv)
65
69
 
@@ -8,11 +8,12 @@ file_path = Path(__file__)
8
8
  data_path = Path(file_path.with_suffix("").as_posix() + "_data")
9
9
  data_name = data_path.stem
10
10
 
11
+ patches_path = file_path.parent
12
+ fnscho1_path = patches_path.parent
13
+
11
14
  settings_temp_path = data_path / "settings.py"
12
15
  profiles_path = data_path / "profiles"
13
16
 
14
- patches_path = file_path.parent
15
- fnscho1_path = patches_path.parent
16
17
  src_path = fnscho1_path.parent
17
18
  db_path = fnscho1_path / "db.sqlite3"
18
19
 
@@ -26,26 +27,27 @@ cursor.execute(
26
27
  ("fnprofile_fnuser",),
27
28
  )
28
29
  fnprofile_fnuser_exists = cursor.fetchone() is not None
30
+ conn.close()
31
+
32
+ sys_executable = sys.executable
29
33
 
30
34
 
31
35
  def run():
32
36
  if fnprofile_fnuser_exists:
33
- print((f"Patch {0} had been applied successfully!").format(patch_name))
37
+ print(('Patch "{0}" had been applied successfully!').format(patch_name))
34
38
  return
35
39
 
36
40
  os.system(
37
- ("python manage.py migrate --settings {0}").format(settings_temp_name)
41
+ ("{0} manage.py migrate --settings {1}").format(
42
+ sys_executable, settings_temp_name
43
+ )
38
44
  )
39
45
  os.system(
40
- ("python manage.py makemigrations --settings {0}").format(
41
- settings_temp_name
46
+ ("{0} manage.py makemigrations --settings {1}").format(
47
+ sys_executable, settings_temp_name
42
48
  )
43
49
  )
44
- print((f"Patch {0} applied successfully!").format(patch_name))
45
-
46
-
47
- def rollback():
48
- print((f"Patch {0} rolled back!").format(patch_name))
50
+ print(('Patch "{0}" applied successfully!').format(patch_name))
49
51
 
50
52
 
51
53
  def main():
@@ -55,12 +57,14 @@ def main():
55
57
 
56
58
  func_name = sys.argv[1]
57
59
 
58
- function_dict = {"run": run, "rollback": rollback}
60
+ function_dict = {
61
+ "run": run,
62
+ }
59
63
 
60
64
  if func_name in function_dict:
61
65
  function_dict[func_name]()
62
66
  else:
63
- print(f"Error: Function '{func_name}' not found.")
67
+ print(f'Error: Function "{func_name}" not found.')
64
68
 
65
69
 
66
70
  if __name__ == "__main__":
@@ -1,3 +1,5 @@
1
+ import importlib
2
+
1
3
  from django.apps import AppConfig
2
4
 
3
5
 
@@ -6,5 +8,10 @@ class ProfilesConfig(AppConfig):
6
8
  # name = "profiles"
7
9
  name = "patches.202511012053_copy_profiles_to_fnprofile_data.profiles"
8
10
 
11
+ def ready(sef):
12
+ importlib.import_module(
13
+ "patches.202511012053_copy_profiles_to_fnprofile_data.profiles.signals"
14
+ )
15
+
9
16
 
10
17
  # The end.
@@ -18,7 +18,6 @@ from django.utils.translation import gettext_lazy as _
18
18
 
19
19
  # Build paths inside the project like this: BASE_DIR / 'subdir'.
20
20
  BASE_DIR = Path(__file__).resolve().parent.parent.parent
21
- print(BASE_DIR)
22
21
 
23
22
  # Quick-start development settings - unsuitable for production
24
23
  # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
@@ -169,13 +168,4 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media")
169
168
 
170
169
  LOGIN_URL = reverse_lazy("fnprofile:log_in")
171
170
 
172
- _settings_path = Path(__file__).parent / "_settings.py"
173
- if _settings_path.exists():
174
- print(
175
- ('Custom configuration "{_settings_path}" has been used.').format(
176
- _settings_path=_settings_path.as_posix()
177
- )
178
- )
179
- from ._settings import *
180
-
181
171
  # The end.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251101.82236.812
3
+ Version: 20251102.81729.808
4
4
  Summary: Just some school related scripts, without any ambition.
5
5
  Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
6
6
  Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>