mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 15:32:53 +00:00
Features: - Django REST API backend - Multi-strategy web scraping system (Beautiful Soup, Playwright, Firecrawl) - Anti-detection features (proxy rotation, user-agent rotation) - Data export functionality (JSON, CSV, TXT) - Business and CrawledPage models - Enhanced crawling service with fallback mechanisms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
366 B
Python
15 lines
366 B
Python
from types import NoneType
|
|
|
|
from django.conf import settings
|
|
from django.core.checks import Error
|
|
|
|
|
|
def check_site_id(app_configs, **kwargs):
|
|
if hasattr(settings, "SITE_ID") and not isinstance(
|
|
settings.SITE_ID, (NoneType, int)
|
|
):
|
|
return [
|
|
Error("The SITE_ID setting must be an integer", id="sites.E101"),
|
|
]
|
|
return []
|