<repo_name>rootfinlay/OutlastEnterprise<file_sep>/ItemsForSale/admin.py
from django.contrib import admin
from .models import Clothing, Shoes, Accessories

#Admin
class ClothingAdmin(admin.ModelAdmin):
    list_display = (['ITEM_CONDITION' , 'Price' ,  'Brand' ,  'Type' , 'Description'])
    search_fields = (['ITEM_CONDITION' , 'Price' ,  'Brand' ,  'Type' , 'Description'])
    list_filter = (['Price' ,  'Brand' ,  'Type'])

class ShoesAdmin(admin.ModelAdmin):
    list_display = (['shoe_condition' , 'shoe_price' , 'shoe_brand' , 'shoe_type' , 'shoe_description'])
    search_fields = (['shoe_condition' , 'shoe_price' , 'shoe_brand' , 'shoe_type' , 'shoe_description'])
    list_filter = (['shoe_price' , 'shoe_brand' , 'shoe_type'])

class AccessoriesAdmin(admin.ModelAdmin):
    list_display = (['accessory_condition' , 'accessory_price' , 'accessory_brand' , 'accessory_type' , 'accessory_description'])
    search_fields = (['accessory_condition' , 'accessory_price' , 'accessory_brand' , 'accessory_type' , 'accessory_description'])
    list_filter = (['accessory_price' , 'accessory_brand' , 'accessory_type'])

#Register your modules here
admin.site.register(Clothing, ClothingAdmin)
admin.site.register(Shoes, ShoesAdmin)
admin.site.register(Accessories, AccessoriesAdmin)
<file_sep>/ItemsForSale/views.py
from django.shortcuts import render
from .models import *

# Create your views here.
def index(request, *args, **kwargs):
    target_page = './html/index.html'

    return render(request, target_page)

def shoes(request, *args, **kwargs):
    target_page = './html/shoes.html'

    all_shoes = Shoes.objects.all()
    all_accessories = Accessories.objects.all()
    all_clothes = Clothing.objects.all()

    context = {
    "all_shoes" : all_shoes,
    "all_accessories" : all_accessories,
    "all_clothing" : all_clothes,
    }

    return render(request, target_page, context)

def error_404(request, exception):
    return render(request,'./html/404.html')


def error_500(request):
    return render(request,'./html/500.html')
<file_sep>/ItemsForSale/migrations/0006_auto_20191207_1029.py
# Generated by Django 2.2.5 on 2019-12-07 10:29

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('ItemsForSale', '0005_auto_20191127_1508'),
    ]

    operations = [
        migrations.RenameField(
            model_name='accessories',
            old_name='Brand',
            new_name='accessory_brand',
        ),
        migrations.RenameField(
            model_name='accessories',
            old_name='Condition',
            new_name='accessory_condition',
        ),
        migrations.RenameField(
            model_name='accessories',
            old_name='Description',
            new_name='accessory_description',
        ),
        migrations.RenameField(
            model_name='accessories',
            old_name='Picture',
            new_name='accessory_picture',
        ),
        migrations.RenameField(
            model_name='accessories',
            old_name='Price',
            new_name='accessory_price',
        ),
        migrations.RenameField(
            model_name='accessories',
            old_name='Type',
            new_name='accessory_type',
        ),
        migrations.RenameField(
            model_name='shoes',
            old_name='Brand',
            new_name='shoe_brand',
        ),
        migrations.RenameField(
            model_name='shoes',
            old_name='Condition',
            new_name='shoe_condition',
        ),
        migrations.RenameField(
            model_name='shoes',
            old_name='Description',
            new_name='shoe_description',
        ),
        migrations.RenameField(
            model_name='shoes',
            old_name='Picture',
            new_name='shoe_picture',
        ),
        migrations.RenameField(
            model_name='shoes',
            old_name='Price',
            new_name='shoe_price',
        ),
        migrations.RenameField(
            model_name='shoes',
            old_name='Type',
            new_name='shoe_type',
        ),
    ]
<file_sep>/ItemsForSale/migrations/0001_initial.py
# Generated by Django 2.2.5 on 2019-10-01 13:34

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Clothing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Type', models.CharField(max_length=30, verbose_name='Type of clothing:')),
                ('Brand', models.CharField(max_length=30, verbose_name='Brand of item')),
                ('Price', models.CharField(max_length=30, verbose_name='Price of item')),
                ('Description', models.CharField(max_length=255, verbose_name='Description of item')),
            ],
            options={
                'verbose_name': 'Clothing',
                'verbose_name_plural': 'Clothing',
            },
        ),
        migrations.CreateModel(
            name='Shoes',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Type', models.CharField(max_length=30, verbose_name='Type of shoe:')),
                ('Brand', models.CharField(max_length=30, verbose_name='Brand of shoe')),
                ('Price', models.CharField(max_length=30, verbose_name='Price of shoe')),
                ('Description', models.CharField(max_length=255, verbose_name='Description of shoe')),
            ],
            options={
                'verbose_name': 'Shoe',
                'verbose_name_plural': 'Shoes',
            },
        ),
    ]
<file_sep>/ItemsForSale/migrations/0007_featured.py
# Generated by Django 2.2.5 on 2020-02-07 14:55

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('ItemsForSale', '0006_auto_20191207_1029'),
    ]

    operations = [
        migrations.CreateModel(
            name='Featured',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('featured_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ItemsForSale.Clothing')),
            ],
        ),
    ]
<file_sep>/ItemsForSale/migrations/0004_auto_20191127_1504.py
# Generated by Django 2.2.5 on 2019-11-27 15:04

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('ItemsForSale', '0003_auto_20191127_1459'),
    ]

    operations = [
        migrations.AddField(
            model_name='accessories',
            name='Condition',
            field=models.CharField(blank=True, choices=[('MINT', 'Mint'), ('AMAZING', 'Amazing'), ('GOOD', 'Good'), ('BAD', 'Bad'), ('TERRIBLE', 'Terrbile')], default='MINT', max_length=16, null=True),
        ),
        migrations.AddField(
            model_name='clothing',
            name='Condition',
            field=models.CharField(blank=True, choices=[('MINT', 'Mint'), ('AMAZING', 'Amazing'), ('GOOD', 'Good'), ('BAD', 'Bad'), ('TERRIBLE', 'Terrible')], default='MINT', max_length=16, null=True),
        ),
        migrations.AddField(
            model_name='shoes',
            name='Condition',
            field=models.CharField(blank=True, choices=[('MINT', 'Mint'), ('AMAZING', 'Amazing'), ('GOOD', 'Good'), ('BAD', 'Bad'), ('TERRIBLE', 'Terrible')], default='MINT', max_length=16, null=True),
        ),
    ]
<file_sep>/ItemsForSale/migrations/0002_accessories.py
# Generated by Django 2.2.5 on 2019-11-27 06:55

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('ItemsForSale', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Accessories',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Type', models.CharField(max_length=30, verbose_name='Type of accessory')),
                ('Brand', models.CharField(max_length=30, verbose_name='Brand of accessory')),
                ('Price', models.CharField(max_length=30, verbose_name='Price of accessory')),
                ('Description', models.CharField(max_length=30, verbose_name='Description of accessory.')),
            ],
            options={
                'verbose_name': 'Accessory',
                'verbose_name_plural': 'Accessories',
            },
        ),
    ]
<file_sep>/ItemsForSale/models.py
from django.db import models

# Create your models here.
class Clothing(models.Model):
    ITEM_CONDITION = [('MINT','Mint') , ('AMAZING','Amazing') ,  ('GOOD','Good') , ('BAD','Bad') , ('TERRIBLE','Terrible')]
    Type = models.CharField(max_length=30, verbose_name='Type of clothing:')
    Brand = models.CharField(max_length=50, verbose_name='Brand of item')
    Price = models.CharField(max_length=30, verbose_name='Price of item')
    Description = models.CharField(max_length=255, verbose_name='Description of item')
    Picture = models.ImageField(null=True, blank=True)
    Condition = models.CharField(choices=ITEM_CONDITION, max_length=16, default='MINT', null=True, blank=True, verbose_name='Condition')

    class Meta:
        verbose_name = 'Clothing'
        verbose_name_plural = 'Clothing'

    def __str__(self):
        return self.Brand + ' ' + self.Type

class Shoes(models.Model):
    ITEM_CONDITION = [('MINT','Mint') , ('AMAZING','Amazing') ,  ('GOOD','Good') , ('BAD','Bad') , ('TERRIBLE','Terrible')]
    shoe_type = models.CharField(max_length=30, verbose_name='Type of shoe:')
    shoe_brand = models.CharField(max_length=30, verbose_name='Brand of shoe')
    shoe_price = models.CharField(max_length=30, verbose_name='Price of shoe')
    shoe_description = models.CharField(max_length=255, verbose_name='Description of shoe')
    shoe_picture = models.ImageField(null=True, blank=True)
    shoe_condition = models.CharField(choices=ITEM_CONDITION, max_length=16, default='MINT', null=True, blank=True)

    class Meta:
        verbose_name = 'Shoe'
        verbose_name_plural = 'Shoes'

    def __str__(self):
        return self.shoe_brand + ' ' + self.shoe_type

class Accessories(models.Model):
    ITEM_CONDITION = [('MINT', 'Mint') , ('AMAZING', 'Amazing') , ('GOOD', 'Good') , ('BAD', 'Bad') , ('TERRIBLE', 'Terrbile')]
    accessory_type = models.CharField(max_length=30, verbose_name='Type of accessory')
    accessory_brand = models.CharField(max_length=30, verbose_name='Brand of accessory')
    accessory_price = models.CharField(max_length=30, verbose_name='Price of accessory')
    accessory_description = models.CharField(max_length=255, verbose_name='Description of accessory.')
    accessory_picture = models.ImageField(null=True, blank=True)
    accessory_condition = models.CharField(choices=ITEM_CONDITION, max_length=16, default='MINT', null=True, blank=True, verbose_name='Condition')

    class Meta:
        verbose_name = 'Accessory'
        verbose_name_plural = 'Accessories'

    def __str__(self):
        return self.Brand + ' ' + self.Type
<file_sep>/ItemsForSale/apps.py
from django.apps import AppConfig


class ItemsforsaleConfig(AppConfig):
    name = 'ItemsForSale'
<file_sep>/ItemsForSale/migrations/0003_auto_20191127_1459.py
# Generated by Django 2.2.5 on 2019-11-27 14:59

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('ItemsForSale', '0002_accessories'),
    ]

    operations = [
        migrations.AddField(
            model_name='accessories',
            name='Picture',
            field=models.ImageField(blank=True, null=True, upload_to=''),
        ),
        migrations.AddField(
            model_name='clothing',
            name='Picture',
            field=models.ImageField(blank=True, null=True, upload_to=''),
        ),
        migrations.AddField(
            model_name='shoes',
            name='Picture',
            field=models.ImageField(blank=True, null=True, upload_to=''),
        ),
        migrations.AlterField(
            model_name='accessories',
            name='Description',
            field=models.CharField(max_length=255, verbose_name='Description of accessory.'),
        ),
        migrations.AlterField(
            model_name='clothing',
            name='Brand',
            field=models.CharField(max_length=50, verbose_name='Brand of item'),
        ),
    ]
