diff --git a/assets/pasted-20260306-170732-802ece65.jpg b/assets/pasted-20260306-170732-802ece65.jpg new file mode 100644 index 0000000..45041c3 Binary files /dev/null and b/assets/pasted-20260306-170732-802ece65.jpg differ diff --git a/assets/pasted-20260306-173029-9c184f3f.jpg b/assets/pasted-20260306-173029-9c184f3f.jpg new file mode 100644 index 0000000..afc6907 Binary files /dev/null and b/assets/pasted-20260306-173029-9c184f3f.jpg differ diff --git a/assets/vm-shot-2026-03-06T17-07-22-517Z.jpg b/assets/vm-shot-2026-03-06T17-07-22-517Z.jpg new file mode 100644 index 0000000..45041c3 Binary files /dev/null and b/assets/vm-shot-2026-03-06T17-07-22-517Z.jpg differ diff --git a/assets/vm-shot-2026-03-06T17-30-26-593Z.jpg b/assets/vm-shot-2026-03-06T17-30-26-593Z.jpg new file mode 100644 index 0000000..afc6907 Binary files /dev/null and b/assets/vm-shot-2026-03-06T17-30-26-593Z.jpg differ diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index 5e8987a..5a6652b 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index a251b5f..e6a67d4 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index f705988..b01dfc2 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 2f0989c..2c86cd8 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 8c38f3f..8dd1385 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,10 @@ from django.contrib import admin +from .models import Game, News -# Register your models here. +@admin.register(Game) +class GameAdmin(admin.ModelAdmin): + list_display = ('title', 'release_date') + +@admin.register(News) +class NewsAdmin(admin.ModelAdmin): + list_display = ('title', 'created_at') \ No newline at end of file diff --git a/core/migrations/0001_initial.py b/core/migrations/0001_initial.py new file mode 100644 index 0000000..d6985c4 --- /dev/null +++ b/core/migrations/0001_initial.py @@ -0,0 +1,33 @@ +# Generated by Django 5.2.7 on 2026-03-06 17:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Game', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200)), + ('description', models.TextField()), + ('release_date', models.DateField()), + ('image', models.ImageField(blank=True, null=True, upload_to='games/')), + ], + ), + migrations.CreateModel( + name='News', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200)), + ('content', models.TextField()), + ('created_at', models.DateTimeField(auto_now_add=True)), + ], + ), + ] diff --git a/core/migrations/__pycache__/0001_initial.cpython-311.pyc b/core/migrations/__pycache__/0001_initial.cpython-311.pyc new file mode 100644 index 0000000..720280d Binary files /dev/null and b/core/migrations/__pycache__/0001_initial.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 71a8362..ed5ed81 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,18 @@ from django.db import models -# Create your models here. +class Game(models.Model): + title = models.CharField(max_length=200) + description = models.TextField() + release_date = models.DateField() + image = models.ImageField(upload_to='games/', blank=True, null=True) + + def __str__(self): + return self.title + +class News(models.Model): + title = models.CharField(max_length=200) + content = models.TextField() + created_at = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.title \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 1e7e5fb..f08172b 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -3,23 +3,30 @@
-