| # profiles/apps.py | |
| from django.apps import AppConfig | |
| class ProfilesConfig(AppConfig): | |
| default_auto_field = "django.db.models.BigAutoField" | |
| name = "profiles" | |
| def ready(self): | |
| # Register the HuggingFace provider only if allauth is installed | |
| try: | |
| from allauth.socialaccount.providers import registry | |
| from profiles.providers.huggingface.provider import HuggingFaceProvider | |
| registry.register(HuggingFaceProvider) | |
| except ImportError: | |
| pass | |
| import profiles.signals # noqa | |
Xet Storage Details
- Size:
- 562 Bytes
- Xet hash:
- 599d26615f00350a9b7cb991a303eba24093d21486951c6655f773b5299a7c1b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.