diff --git a/blog/admin.py b/blog/admin.py
index 9ceff3a..bacd596 100644
--- a/blog/admin.py
+++ b/blog/admin.py
@@ -1,5 +1,5 @@
from django.contrib import admin
-from .models import Post, Index_Post
+from .models import Post, Index_Post, Sexy_Posts
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'short_description', 'pub_date')
@@ -7,5 +7,9 @@ class PostAdmin(admin.ModelAdmin):
class IndexPostAdmin(admin.ModelAdmin):
list_display = ('title', 'content', 'pub_date')
+class SexyPost(admin.ModelAdmin):
+ list_display = ('title', 'short_description', 'pub_date')
+
admin.site.register(Post, PostAdmin)
-admin.site.register(Index_Post, IndexPostAdmin)
\ No newline at end of file
+admin.site.register(Index_Post, IndexPostAdmin)
+admin.site.register(Sexy_Posts, SexyPost)
\ No newline at end of file
diff --git a/blog/migrations/0006_sexy_posts.py b/blog/migrations/0006_sexy_posts.py
new file mode 100644
index 0000000..12975bf
--- /dev/null
+++ b/blog/migrations/0006_sexy_posts.py
@@ -0,0 +1,23 @@
+# Generated by Django 4.2.7 on 2024-01-27 22:38
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('blog', '0005_rename_indexcontent_index_post_content_and_more'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Sexy_Posts',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('content', models.TextField()),
+ ('short_description', models.TextField(blank=True, max_length=300, null=True)),
+ ('pub_date', models.DateTimeField(verbose_name='date published')),
+ ],
+ ),
+ ]
diff --git a/blog/models.py b/blog/models.py
index 2cdc032..b45d699 100644
--- a/blog/models.py
+++ b/blog/models.py
@@ -14,5 +14,14 @@ class Index_Post(models.Model):
content = models.TextField()
pub_date = models.DateTimeField('date published')
+ def __str__(self):
+ return self.title
+
+class Sexy_Posts(models.Model):
+ title = models.CharField(max_length=200)
+ content = models.TextField()
+ short_description = models.TextField(max_length=300, blank=True, null=True)
+ pub_date = models.DateTimeField('date published')
+
def __str__(self):
return self.title
\ No newline at end of file
diff --git a/blog/templates/blog/about.html b/blog/templates/blog/about.html
deleted file mode 100644
index 141a4eb..0000000
--- a/blog/templates/blog/about.html
+++ /dev/null
@@ -1,291 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Oxer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- About Class
-
-
-
- iusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris iusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquipnisi ut aliquipiusmod tempor incididunt ut labore et
-
-
-
- Read More
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blog/templates/blog/blog.html b/blog/templates/blog/blog.html
deleted file mode 100644
index 5804fb9..0000000
--- a/blog/templates/blog/blog.html
+++ /dev/null
@@ -1,339 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Oxer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Latest Blog
-
-
- iusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 17
- Feb
-
-
-
- Boxer Joniya Daro
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
-
-
- Read More
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 17
- Jun
-
-
-
- Boxer Joniya Daro
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
-
-
- Read More
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blog/templates/blog/class.html b/blog/templates/blog/class.html
deleted file mode 100644
index c937060..0000000
--- a/blog/templates/blog/class.html
+++ /dev/null
@@ -1,373 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Oxer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Our Classes Videos
-
-
- iusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis n
- ostrud exercitation ullamco laboris iusmod tempor incididunt ut labore et dolore
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Boxing
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Boxing
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Boxing
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Boxing
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blog/templates/blog/menu.html b/blog/templates/blog/menu.html
index 65b5b0a..7860951 100644
--- a/blog/templates/blog/menu.html
+++ b/blog/templates/blog/menu.html
@@ -1,11 +1,11 @@
\ No newline at end of file
diff --git a/blog/templates/blog/post_detail.html_old b/blog/templates/blog/post_detail.html_old
deleted file mode 100644
index e7600e6..0000000
--- a/blog/templates/blog/post_detail.html_old
+++ /dev/null
@@ -1,4 +0,0 @@
-{{ post.title }}
-{{ post.short_description }}
-{{ post.pub_date }}
-{{ post.content }}
diff --git a/blog/templates/blog/post_list.html_old b/blog/templates/blog/post_list.html_old
deleted file mode 100644
index 8abbff8..0000000
--- a/blog/templates/blog/post_list.html_old
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
- Dark Blog
-
-
-
-
-
-
-
- Dark Blog
-
-
-
-
-
-
-
-
-
Dark Blog Posts
-
- {% for post in posts %}
-
-
-
-
{{ post.short_description }}
-
{{ post.pub_date }}
-
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
diff --git a/blog/templates/blog/sexy_detail.html b/blog/templates/blog/sexy_detail.html
new file mode 100644
index 0000000..e5e1111
--- /dev/null
+++ b/blog/templates/blog/sexy_detail.html
@@ -0,0 +1,108 @@
+{% load static %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Prudellic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ sexy_post.title }}
+
+
+
+ {{ sexy_post.content|linebreaksbr }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/blog/templates/blog/sexy_list.html b/blog/templates/blog/sexy_list.html
new file mode 100644
index 0000000..3081688
--- /dev/null
+++ b/blog/templates/blog/sexy_list.html
@@ -0,0 +1,113 @@
+{% load static %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Prudellic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{% for post in sexy_posts %}
+
+
+
+
+
+
+
+
+
+
+ {{ post.title }}
+
+
+
+ {{ post.short_description|linebreaksbr }}
+
+
+ Read More
+
+
+
+
+
+
+
+
+
+{% endfor %}
+
+
+
+
+
\ No newline at end of file
diff --git a/blog/urls.py b/blog/urls.py
index 900bf42..2de672f 100644
--- a/blog/urls.py
+++ b/blog/urls.py
@@ -4,6 +4,8 @@ from . import views
app_name = 'blog'
urlpatterns = [
path('', views.index, name='index'),
- path('blog/', views.post_list, name='post_list'),
+ path('blog/', views.post_list, name='blog'),
+ path('sexy/', views.sexy_list, name='sexy'),
path('/', views.post_detail, name='post_detail'),
+ path('sexy//', views.sexy_detail, name='sexy_detail'),
]
diff --git a/blog/views.py b/blog/views.py
index 66e8714..07c0226 100644
--- a/blog/views.py
+++ b/blog/views.py
@@ -1,5 +1,9 @@
from django.shortcuts import render, get_object_or_404
-from .models import Post, Index_Post
+from .models import Post, Index_Post, Sexy_Posts
+
+def index(request):
+ index_posts = Index_Post.objects.all()
+ return render(request, 'blog/index.html', {'index_posts': index_posts})
def post_list(request):
posts = Post.objects.all()
@@ -9,6 +13,11 @@ def post_detail(request, post_id):
post = get_object_or_404(Post, pk=post_id)
return render(request, 'blog/post_detail.html', {'post': post})
-def index(request):
- index_posts = Index_Post.objects.all()
- return render(request, 'blog/index.html', {'index_posts': index_posts})
\ No newline at end of file
+def sexy_list(request):
+ sexy_posts = Sexy_Posts.objects.all()
+ return render(request, 'blog/sexy_list.html', {'sexy_posts': sexy_posts})
+
+def sexy_detail(request, post_id):
+ sexy_post = get_object_or_404(Sexy_Posts, pk=post_id)
+ return render(request, 'blog/sexy_detail.html', {'sexy_post': sexy_post})
+
diff --git a/db.sqlite3 b/db.sqlite3
index c2f13d6..02f38a1 100644
Binary files a/db.sqlite3 and b/db.sqlite3 differ
diff --git a/urls.py b/urls.py
index f730628..cc36beb 100644
--- a/urls.py
+++ b/urls.py
@@ -4,5 +4,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('blog/', include('blog.urls')),
+ path('sexy/', include('blog.urls')),
path('', include('blog.urls')),
]