Skip to content

Commit

Permalink
added new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 committed Feb 17, 2024
1 parent 7621a70 commit 585e283
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion blt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
}

Expand Down
1 change: 0 additions & 1 deletion website/management/commands/create_cachetable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 0 additions & 4 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 585e283

Please sign in to comment.