From 962d58d37ec64e0f0ecc0c8ed8d4de432374d8e7 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 3 Aug 2025 15:54:04 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=AB=20Hide=20pricing=20page=20complete?= =?UTF-8?q?ly=20from=20all=20users?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Remove pricing link from navigation for all users • Redirect pricing page access to AI marketplace • Clean navigation with only essential pages: - Home - AI Digital Branding - AI Marketplace • Graceful handling if anyone tries to access pricing directly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- core/views.py | 27 +++------------------------ templates/base.html | 3 --- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/core/views.py b/core/views.py index 7be5a9f..c2ad7f4 100644 --- a/core/views.py +++ b/core/views.py @@ -39,30 +39,9 @@ def homepage_view(request): return render(request, 'core/homepage.html', {'featured_agents': [], 'user_balance': 0}) @ratelimit(key='ip', rate='60/m', method='GET', block=False) def pricing_view(request): - """Pricing page for non-logged-in users with rate limiting""" - # Check if rate limited - if getattr(request, 'limited', False): - logger.warning(f"Pricing page rate limit exceeded for IP {request.META.get('REMOTE_ADDR')}") - messages.warning(request, 'Too many requests. Please wait a moment before refreshing.') - - # If user is already logged in, redirect to wallet top-up - if request.user.is_authenticated: - return redirect('wallet:wallet_topup') - - try: - # Get sample agents to show pricing context from database - sample_agents = Agent.objects.filter(is_active=True).select_related('category')[:4] - - context = { - 'sample_agents': sample_agents, - } - - return render(request, 'core/pricing.html', context) - - except Exception as e: - logger.error(f"Pricing view error: {e}") - messages.error(request, 'Unable to load pricing page. Please try again.') - return render(request, 'core/pricing.html', {'sample_agents': []}) + """Pricing page - redirect to marketplace""" + # Redirect all pricing page access to the AI marketplace + return redirect('agents:marketplace') @ratelimit(key='ip', rate='60/m', method='GET', block=False) diff --git a/templates/base.html b/templates/base.html index 4f66aef..42299cf 100644 --- a/templates/base.html +++ b/templates/base.html @@ -32,9 +32,6 @@ Home AI Digital Branding AI Marketplace - {% if not user.is_authenticated %} - Pricing - {% endif %}