diff --git a/blog/migrations/0002_comment_parent.py b/blog/migrations/0002_comment_parent.py deleted file mode 100755 index 34d10c1..0000000 --- a/blog/migrations/0002_comment_parent.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 12:05 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('blog', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='parent', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='blog.Comment'), - ), - ] diff --git a/blog/migrations/0003_remove_comment_parent.py b/blog/migrations/0003_remove_comment_parent.py deleted file mode 100755 index d5a5ab3..0000000 --- a/blog/migrations/0003_remove_comment_parent.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-13 14:16 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('blog', '0002_comment_parent'), - ] - - operations = [ - migrations.RemoveField( - model_name='comment', - name='parent', - ), - ] diff --git a/blog/migrations/0004_auto_20191015_0853.py b/blog/migrations/0004_auto_20191015_0853.py deleted file mode 100755 index 8aaef51..0000000 --- a/blog/migrations/0004_auto_20191015_0853.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 2.2.6 on 2019-10-15 08:53 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('blog', '0003_remove_comment_parent'), - ] - - operations = [ - migrations.RemoveField( - model_name='comment', - name='status', - ), - migrations.AddField( - model_name='comment', - name='active', - field=models.BooleanField(default=False), - ), - ] diff --git a/blog/migrations/0005_auto_20211014_1338.py b/blog/migrations/0005_auto_20211014_1338.py deleted file mode 100644 index c2b7110..0000000 --- a/blog/migrations/0005_auto_20211014_1338.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 3.2 on 2021-10-14 13:38 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('blog', '0004_auto_20191015_0853'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='id', - field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), - ), - migrations.AlterField( - model_name='post', - name='id', - field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), - ), - ] diff --git a/blog/__init__.py b/src/blog/__init__.py old mode 100755 new mode 100644 similarity index 100% rename from blog/__init__.py rename to src/blog/__init__.py diff --git a/blog/admin.py b/src/blog/admin.py old mode 100755 new mode 100644 similarity index 100% rename from blog/admin.py rename to src/blog/admin.py diff --git a/blog/apps.py b/src/blog/apps.py old mode 100755 new mode 100644 similarity index 100% rename from blog/apps.py rename to src/blog/apps.py diff --git a/blog/feeds.py b/src/blog/feeds.py similarity index 100% rename from blog/feeds.py rename to src/blog/feeds.py diff --git a/blog/forms.py b/src/blog/forms.py old mode 100755 new mode 100644 similarity index 100% rename from blog/forms.py rename to src/blog/forms.py diff --git a/blog/migrations/0001_initial.py b/src/blog/migrations/0001_initial.py old mode 100755 new mode 100644 similarity index 77% rename from blog/migrations/0001_initial.py rename to src/blog/migrations/0001_initial.py index 39ea4a9..0a1d71c --- a/blog/migrations/0001_initial.py +++ b/src/blog/migrations/0001_initial.py @@ -1,48 +1,48 @@ -# Generated by Django 2.2.6 on 2019-10-13 10:21 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ] - - operations = [ - migrations.CreateModel( - name='Post', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=200, unique=True)), - ('slug', models.SlugField(max_length=200, unique=True)), - ('updated_on', models.DateTimeField(auto_now=True)), - ('content', models.TextField()), - ('created_on', models.DateTimeField(auto_now_add=True)), - ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Publish')], default=0)), - ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blog_posts', to=settings.AUTH_USER_MODEL)), - ], - options={ - 'ordering': ['-created_on'], - }, - ), - migrations.CreateModel( - name='Comment', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=80)), - ('email', models.EmailField(max_length=254)), - ('body', models.TextField()), - ('created_on', models.DateTimeField(auto_now_add=True)), - ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Publish')], default=0)), - ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.Post')), - ], - options={ - 'ordering': ['created_on'], - }, - ), - ] +# Generated by Django 3.2.12 on 2023-02-02 22:55 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='Post', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=200, unique=True)), + ('slug', models.SlugField(max_length=200, unique=True)), + ('updated_on', models.DateTimeField(auto_now=True)), + ('content', models.TextField()), + ('created_on', models.DateTimeField(auto_now_add=True)), + ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Publish')], default=0)), + ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blog_posts', to=settings.AUTH_USER_MODEL)), + ], + options={ + 'ordering': ['-created_on'], + }, + ), + migrations.CreateModel( + name='Comment', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=80)), + ('email', models.EmailField(max_length=254)), + ('body', models.TextField()), + ('created_on', models.DateTimeField(auto_now_add=True)), + ('active', models.BooleanField(default=False)), + ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.post')), + ], + options={ + 'ordering': ['created_on'], + }, + ), + ] diff --git a/blog/migrations/__init__.py b/src/blog/migrations/__init__.py old mode 100755 new mode 100644 similarity index 100% rename from blog/migrations/__init__.py rename to src/blog/migrations/__init__.py diff --git a/blog/models.py b/src/blog/models.py old mode 100755 new mode 100644 similarity index 100% rename from blog/models.py rename to src/blog/models.py diff --git a/blog/sitemaps.py b/src/blog/sitemaps.py similarity index 100% rename from blog/sitemaps.py rename to src/blog/sitemaps.py diff --git a/blog/tests.py b/src/blog/tests.py old mode 100755 new mode 100644 similarity index 100% rename from blog/tests.py rename to src/blog/tests.py diff --git a/blog/urls.py b/src/blog/urls.py old mode 100755 new mode 100644 similarity index 100% rename from blog/urls.py rename to src/blog/urls.py diff --git a/blog/views.py b/src/blog/views.py old mode 100755 new mode 100644 similarity index 100% rename from blog/views.py rename to src/blog/views.py diff --git a/manage.py b/src/manage.py old mode 100755 new mode 100644 similarity index 100% rename from manage.py rename to src/manage.py diff --git a/mysite/__init__.py b/src/mysite/__init__.py old mode 100755 new mode 100644 similarity index 100% rename from mysite/__init__.py rename to src/mysite/__init__.py diff --git a/mysite/settings.py b/src/mysite/settings.py old mode 100755 new mode 100644 similarity index 100% rename from mysite/settings.py rename to src/mysite/settings.py diff --git a/mysite/urls.py b/src/mysite/urls.py old mode 100755 new mode 100644 similarity index 100% rename from mysite/urls.py rename to src/mysite/urls.py diff --git a/mysite/wsgi.py b/src/mysite/wsgi.py old mode 100755 new mode 100644 similarity index 100% rename from mysite/wsgi.py rename to src/mysite/wsgi.py diff --git a/static/css/base.css b/src/static/css/base.css old mode 100755 new mode 100644 similarity index 100% rename from static/css/base.css rename to src/static/css/base.css diff --git a/templates/base.html b/src/templates/base.html old mode 100755 new mode 100644 similarity index 100% rename from templates/base.html rename to src/templates/base.html diff --git a/templates/index.html b/src/templates/index.html old mode 100755 new mode 100644 similarity index 100% rename from templates/index.html rename to src/templates/index.html diff --git a/templates/post_detail.html b/src/templates/post_detail.html old mode 100755 new mode 100644 similarity index 100% rename from templates/post_detail.html rename to src/templates/post_detail.html diff --git a/templates/sidebar.html b/src/templates/sidebar.html old mode 100755 new mode 100644 similarity index 100% rename from templates/sidebar.html rename to src/templates/sidebar.html