JIT
Django lost and found website design
can you create a website django lost and found system and there's CRUD 5 table in model.py from django.db import models from django.contrib.auth.models import AbstractUser class User(AbstractUser): ROLE_CHOICES = ( ('admin', 'Admin'), ('user', 'User'), ) role = models.CharField(max_length=20, choices=ROLE_CHOICES) def __str__(self): return self.username class Category(models.Model): name = models.CharField(max_length=100) def __str__(self): return self.name class Location(models.Model): description = models.CharField(max_length=255) def __str__(self): return self.description class Item(models.Model): STATUS_CHOICES = ( ('lost', 'Lost'), ('found', 'Found'), ('claimed', 'Claimed'), ) title = models.CharField(max_length=100) description = models.TextField() status = models.CharField(max_length=20, choices=STATUS_CHOICES) date_reported = models.DateTimeField(auto_now_add=True) user = models.ForeignKey( User, on_delete=models.CASCADE, related_name='items' ) category = models.ForeignKey( Category, on_delete=models.CASCADE, related_name='items' ) location = models.ForeignKey( Location, on_delete=models.CASCADE, related_name='items' ) def __str__(self): return self.title class ItemImage(models.Model): item = models.ForeignKey( Item, on_delete=models.CASCADE, related_name='images' ) image_path = models.CharField(max_length=255) def __str__(self): return f"Image for {self.item.title}" class Claim(models.Model): STATUS_CHOICES = ( ('pending', 'Pending'), ('approved', 'Approved'), ('rejected', 'Rejected'), ) item = models.ForeignKey( Item, on_delete=models.CASCADE, related_name='claims' ) user = models.ForeignKey( User, on_delete=models.CASCADE, related_name='claims' ) claim_date = models.DateTimeField(auto_now_add=True) status = models.CharField(max_length=20, choices=STATUS_CHOICES) def __str__(self): return f"Claim by {self.user.username} for {self.item.title}" make it unique design and friendly

I'll help you create a Django lost and found system with CRUD operations for your models. Let me start by exploring the current project structure and then build the complete system.

I'll create a complete Django lost and found system with your models. Let me start by setting up the project structure:

Write file
Write file
Write file
Write file
Write file
Write file
Write file

Now let me create the accounts app with the User model:

Write file
Write file
Write file
Write file
Write file
Write file
Write file
Write file

Now let me create the items app:

Write file
Write file
Write file
Write file
Write file
Write file
Write file

Now let me create the claims app:

Write file
Write file
Write file
Write file
Write file
Write file
Write file

Now let me create the templates directory and the main templates:

Write file
Write file
Write file
Write file
Write file
Write file
Write file
Write file

Now let me create the static files directory and add some CSS:

Write file

Now let me create the Django migrations and run them:

Let me fix the login/logout URLs and create the missing login/logout views:

Edit file
Write file

Now let me create a superuser and create some sample data:

Let me create some sample data:

Let me fix the syntax error in the sample data:

Write file
Write file

Now let me create a README file to document the system:

Write file

Now let me create a simple static image placeholder:

Write file

Let me fix the base template to include the static CSS:

Edit file

Now let me test if the Django application can start successfully:

Perfect! Let me create a final summary and progress report:

Created Django lost and found system
v1