django-cfg 1.1.76__py3-none-any.whl → 1.1.77__py3-none-any.whl

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.
django_cfg/__init__.py CHANGED
@@ -38,7 +38,7 @@ default_app_config = "django_cfg.apps.DjangoCfgConfig"
38
38
  from typing import TYPE_CHECKING
39
39
 
40
40
  # Version information
41
- __version__ = "1.1.76"
41
+ __version__ = "1.1.77"
42
42
  __author__ = "Unrealos Team"
43
43
  __email__ = "info@unrealos.com"
44
44
  __license__ = "MIT"
@@ -70,7 +70,8 @@ class ModelsCache:
70
70
  from django.conf import settings
71
71
  if hasattr(settings, 'CACHES') and 'default' in settings.CACHES:
72
72
  cache_location = settings.CACHES['default'].get('LOCATION')
73
- if cache_location:
73
+ # Only use cache_location if it's a file path, not a Redis URL
74
+ if cache_location and not cache_location.startswith(('redis://', 'rediss://')):
74
75
  self.cache_dir = Path(cache_location) / "django_llm"
75
76
  else:
76
77
  self.cache_dir = Path.cwd() / "cache" / "django_llm"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-cfg
3
- Version: 1.1.76
3
+ Version: 1.1.77
4
4
  Summary: 🚀 Production-ready Django configuration framework with type-safe settings, smart automation, and modern developer experience
5
5
  Project-URL: Homepage, https://github.com/markolofsen/django-cfg
6
6
  Project-URL: Documentation, https://django-cfg.readthedocs.io
@@ -1,5 +1,5 @@
1
1
  django_cfg/README.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- django_cfg/__init__.py,sha256=5HQBbQwX5UmQp5IlOokrIJ5gAjYEWnrSwKTMPFZ4k00,14288
2
+ django_cfg/__init__.py,sha256=OCsVk7qkjeX4hsDgPEvFJT8f1SzWHFgyBsuIi4vBpWU,14288
3
3
  django_cfg/apps.py,sha256=k84brkeXJI7EgKZLEpTkM9YFZofKI4PzhFOn1cl9Msc,1656
4
4
  django_cfg/exceptions.py,sha256=RTQEoU3PfR8lqqNNv5ayd_HY2yJLs3eioqUy8VM6AG4,10378
5
5
  django_cfg/integration.py,sha256=jUO-uZXLmBXy9iugqgsl_xnYA_xoH3LZg5RxZbobVrc,4988
@@ -219,7 +219,7 @@ django_cfg/modules/django_llm/llm/client.py,sha256=MLAboZIGB0MFclvTtKZx1sVEVCmCu
219
219
  django_cfg/modules/django_llm/llm/costs.py,sha256=1L5YTlIIJTWmY0_jKC8sEMZs1YRMDeStz-r-BpyZ2Vo,7490
220
220
  django_cfg/modules/django_llm/llm/extractor.py,sha256=6LCq3IZUO5zKefwNEQ4EkszLGLGEA_YFLvAUPoRBdMc,2694
221
221
  django_cfg/modules/django_llm/llm/models.py,sha256=6MxlRp2ll09mbSZrG6kNH6W_NZcLn_zHJ7d8YWAk1Ac,5529
222
- django_cfg/modules/django_llm/llm/models_cache.py,sha256=RnW9Q147I8YFwZWeceYZ6p32wra3WLKFNTo-o4NT_3s,20675
222
+ django_cfg/modules/django_llm/llm/models_cache.py,sha256=HjnrikmqpaM9UguaAEE7SCXlPXYsw2Qj4bKYjUHF0Zk,20819
223
223
  django_cfg/modules/django_llm/llm/tokenizer.py,sha256=MMrb34Xl1u0yMUGQ4TRW40fP4NWbnOuwjBKkoOswu9g,2678
224
224
  django_cfg/modules/django_llm/translator/__init__.py,sha256=_gMsHBWEfiTFQvTk4UsHcXCyQBf2ilF82ISFRBbRBSU,247
225
225
  django_cfg/modules/django_llm/translator/cache.py,sha256=m1x_VzbkKv2S7rFS6rL8v3p26ur2YnkTPsXvA7JboNY,6305
@@ -265,8 +265,8 @@ django_cfg/templates/emails/base_email.html,sha256=TWcvYa2IHShlF_E8jf1bWZStRO0v8
265
265
  django_cfg/utils/__init__.py,sha256=64wwXJuXytvwt8Ze_erSR2HmV07nGWJ6DV5wloRBvYE,435
266
266
  django_cfg/utils/path_resolution.py,sha256=eML-6-RIGTs5TePktIQN8nxfDUEFJ3JA0AzWBcihAbs,13894
267
267
  django_cfg/utils/smart_defaults.py,sha256=-qaoiOQ1HKDOzwK2uxoNlmrOX6l8zgGlVPgqtdj3y4g,22319
268
- django_cfg-1.1.76.dist-info/METADATA,sha256=3PX5-rA1Dv_hRUi0Nc_qrVImDe9Wsg92YBKYHqBsZoM,45783
269
- django_cfg-1.1.76.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
270
- django_cfg-1.1.76.dist-info/entry_points.txt,sha256=Ucmde4Z2wEzgb4AggxxZ0zaYDb9HpyE5blM3uJ0_VNg,56
271
- django_cfg-1.1.76.dist-info/licenses/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
272
- django_cfg-1.1.76.dist-info/RECORD,,
268
+ django_cfg-1.1.77.dist-info/METADATA,sha256=OPGpVFREbpTyiNho7I1j828EfYzK5IUWozpLSgQx4U8,45783
269
+ django_cfg-1.1.77.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
270
+ django_cfg-1.1.77.dist-info/entry_points.txt,sha256=Ucmde4Z2wEzgb4AggxxZ0zaYDb9HpyE5blM3uJ0_VNg,56
271
+ django_cfg-1.1.77.dist-info/licenses/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
272
+ django_cfg-1.1.77.dist-info/RECORD,,