diff --git a/blt/settings.py b/blt/settings.py index e8bc211bc..5a8388bc0 100644 --- a/blt/settings.py +++ b/blt/settings.py @@ -196,7 +196,7 @@ CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', - 'LOCATION': 'django_cache', # Change 'my_cache_table' to your cache table name if it's not the default + 'LOCATION': 'django_cache', }, } diff --git a/website/management/commands/create_cachetable.py b/website/management/commands/create_cachetable.py index b4edf80d0..c086412f8 100644 --- a/website/management/commands/create_cachetable.py +++ b/website/management/commands/create_cachetable.py @@ -6,7 +6,6 @@ class Command(BaseCommand): help = 'Creates the cache table if it does not exist' def handle(self, *args, **options): - # Assuming the default cache table name; change if yours is different table_name = 'django_cache' table_exists = table_name in connection.introspection.table_names() diff --git a/website/views.py b/website/views.py index b577b7a13..d5a9a4d91 100644 --- a/website/views.py +++ b/website/views.py @@ -619,10 +619,6 @@ def get_client_ip(request): ip = x_forwarded_for.split(',')[0] else: ip = request.META.get('REMOTE_ADDR') - - print("*"*50) - print(f"Client IP: {ip}") - print("*"*50) return ip class IssueCreate(IssueBaseCreate, CreateView):