mirror of
https://github.com/thecyberlearn/quantum-ai.git
synced 2026-08-18 10:13:00 +00:00
- Complete Django project structure with apps/ organization - Working homepage with exact Next.js recreation (1039 lines) - User authentication system with wallet balance - Agent system with processors and models - Stripe payment integration setup - All Django migrations and URL routing - Comprehensive .gitignore file - Homepage loads successfully (HTTP 200) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
585 B
Python
17 lines
585 B
Python
from django.shortcuts import render, redirect
|
|
from django.contrib.auth import login
|
|
from django.contrib.auth.forms import UserCreationForm
|
|
from django.contrib import messages
|
|
|
|
def register(request):
|
|
if request.method == 'POST':
|
|
form = UserCreationForm(request.POST)
|
|
if form.is_valid():
|
|
user = form.save()
|
|
login(request, user)
|
|
messages.success(request, 'Registration successful!')
|
|
return redirect('homepage')
|
|
else:
|
|
form = UserCreationForm()
|
|
return render(request, 'auth/register.html', {'form': form})
|