From 19453d8e9ac0395d682063d2b1ab9cb86f7cf607 Mon Sep 17 00:00:00 2001 From: Harsh Date: Sat, 20 Jun 2020 18:20:12 +0530 Subject: [PATCH 1/3] added main app for blog --- main/__init__.py | 0 main/admin.py | 3 +++ main/apps.py | 5 +++++ main/migrations/__init__.py | 0 main/models.py | 3 +++ main/tests.py | 3 +++ main/views.py | 3 +++ 7 files changed, 17 insertions(+) create mode 100644 main/__init__.py create mode 100644 main/admin.py create mode 100644 main/apps.py create mode 100644 main/migrations/__init__.py create mode 100644 main/models.py create mode 100644 main/tests.py create mode 100644 main/views.py diff --git a/main/__init__.py b/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main/admin.py b/main/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/main/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/main/apps.py b/main/apps.py new file mode 100644 index 0000000..833bff6 --- /dev/null +++ b/main/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class MainConfig(AppConfig): + name = 'main' diff --git a/main/migrations/__init__.py b/main/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/main/models.py b/main/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/main/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/main/tests.py b/main/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/main/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/main/views.py b/main/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/main/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. From afd140c855ed8a79adee1bee9d9158d21eb24ca8 Mon Sep 17 00:00:00 2001 From: Harsh Date: Sat, 20 Jun 2020 20:13:02 +0530 Subject: [PATCH 2/3] added html file for blog-home --- .gitignore | 3 ++- .../templates/templates}/login.html | 0 .../templates/templates}/sign_up.html | 0 blog/__pycache__/__init__.cpython-37.pyc | Bin 133 -> 133 bytes blog/__pycache__/settings.cpython-37.pyc | Bin 2229 -> 2278 bytes blog/__pycache__/urls.cpython-37.pyc | Bin 905 -> 950 bytes blog/__pycache__/wsgi.cpython-37.pyc | Bin 530 -> 530 bytes blog/settings.py | 3 ++- blog/urls.py | 3 ++- main/urls.py | 7 +++++++ main/views.py | 6 +++++- .../index1.html => templates/index.html | 4 +++- 12 files changed, 21 insertions(+), 5 deletions(-) rename {templates => Static/templates/templates}/login.html (100%) rename {templates => Static/templates/templates}/sign_up.html (100%) create mode 100644 main/urls.py rename Static/templates/index1.html => templates/index.html (99%) diff --git a/.gitignore b/.gitignore index 8872716..2f48bb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ venv/ -db.sqlite3 \ No newline at end of file +db.sqlite3 +__pycache__/ \ No newline at end of file diff --git a/templates/login.html b/Static/templates/templates/login.html similarity index 100% rename from templates/login.html rename to Static/templates/templates/login.html diff --git a/templates/sign_up.html b/Static/templates/templates/sign_up.html similarity index 100% rename from templates/sign_up.html rename to Static/templates/templates/sign_up.html diff --git a/blog/__pycache__/__init__.cpython-37.pyc b/blog/__pycache__/__init__.cpython-37.pyc index 7f42922dedbcf33c02b884eab6c96c3c477ed755..5a1a55ae3b8aaf96c7861ce78983836599962376 100644 GIT binary patch delta 19 ZcmZo=Y-Qwj;^pOH0D>Eg?g2bDqPge zQbJvp;f-j_Ud5;YKV^!*5ukw$gxFME6PgRINIKY(6|~U)r?*pvXu&keDmvIPWCy#e z+*{?oCdH+T1KF%0mUVFH8T-Zo4rK%EG}rB>zs&cphkDW*&Stm0W77uH$(2^w4|}1t wkM+CkiJuVJ*=K%9c|M-%N%Cm5lcl8#k$HL(B`v#8XUU}Vg2B5&f^l50~XQ?Yygy${wpq3?Be`)FJVP(uifIvQvqGM?1Xk`Qg< zfDxmEE_ygIoD-4_8xoDa)NzWl1r=)7ShyIxC=53$Cut(ZdG$e#VTLgAFpuJD&ZluQ-4A; P`{XC~&5udhPe1zyOw>4X diff --git a/blog/__pycache__/urls.cpython-37.pyc b/blog/__pycache__/urls.cpython-37.pyc index cd2d67416c06992c03f69e95f5a728ba12016a56..21b64a28005d2d224afb6d73f07ccbb8793bf810 100644 GIT binary patch delta 168 zcmeBV-^Q-)#LLUY00b(0@8ZOm85kaeI55BpWHRF)K$RHiJp zEcRw5Ae%LnHHEF2v6(5IDT*V7J(xk0V`EGslLpf*mV(5Rj9cuPdC57YDXCR#i7C06 zdHS~)syK5KGxPLHi*kznG&v`~XEIz>% delta 125 zcmdnS-pQ`+#LLUY00avrJ&Jq9#K7ul3nLFB4>JJq%NK_L diff --git a/blog/__pycache__/wsgi.cpython-37.pyc b/blog/__pycache__/wsgi.cpython-37.pyc index 5d0e199f1645c77c5647f55ffd5d76c1de002e81..7aa513906544685e6d48d82f964552feee30e067 100644 GIT binary patch delta 20 acmbQlGKq!TiI + @@ -9,7 +11,7 @@ - + index1
From 1acd39c02807398cfd1c0bdf48592e9ceea7442f Mon Sep 17 00:00:00 2001 From: Harsh Date: Sat, 20 Jun 2020 22:51:02 +0530 Subject: [PATCH 3/3] created blog-home page --- blog/__pycache__/settings.cpython-37.pyc | Bin 2278 -> 2322 bytes blog/settings.py | 4 +++ {Static/CSS => static/css}/style.css | 0 {Static/CSS => static/css}/style1.css | 0 {Static => static}/images/back.jpeg | Bin {Static => static}/images/image1.jpeg | Bin {Static => static}/images/image2.jfif | Bin {Static => static}/images/image3.jfif | Bin static/{ => static}/CSS/style.css | 0 static/{ => static}/CSS/uikit-rtl.css | 0 static/{ => static}/CSS/uikit-rtl.min.css | 0 static/{ => static}/CSS/uikit.css | 0 static/{ => static}/CSS/uikit.min.css | 0 static/{ => static}/JS/uikit-icons.js | 0 static/{ => static}/JS/uikit-icons.min.js | 0 static/{ => static}/JS/uikit.js | 0 static/{ => static}/JS/uikit.min.js | 0 .../images/1_2UYnnJKYwLM4_TATq2f06g.jpeg | Bin {Static => static}/templates/index.html | 0 .../templates/templates/login.html | 0 .../templates/templates/sign_up.html | 0 templates/index.html | 23 +++++++++--------- 22 files changed, 15 insertions(+), 12 deletions(-) rename {Static/CSS => static/css}/style.css (100%) rename {Static/CSS => static/css}/style1.css (100%) rename {Static => static}/images/back.jpeg (100%) rename {Static => static}/images/image1.jpeg (100%) rename {Static => static}/images/image2.jfif (100%) rename {Static => static}/images/image3.jfif (100%) rename static/{ => static}/CSS/style.css (100%) rename static/{ => static}/CSS/uikit-rtl.css (100%) rename static/{ => static}/CSS/uikit-rtl.min.css (100%) rename static/{ => static}/CSS/uikit.css (100%) rename static/{ => static}/CSS/uikit.min.css (100%) rename static/{ => static}/JS/uikit-icons.js (100%) rename static/{ => static}/JS/uikit-icons.min.js (100%) rename static/{ => static}/JS/uikit.js (100%) rename static/{ => static}/JS/uikit.min.js (100%) rename static/{ => static}/images/1_2UYnnJKYwLM4_TATq2f06g.jpeg (100%) rename {Static => static}/templates/index.html (100%) rename {Static => static}/templates/templates/login.html (100%) rename {Static => static}/templates/templates/sign_up.html (100%) diff --git a/blog/__pycache__/settings.cpython-37.pyc b/blog/__pycache__/settings.cpython-37.pyc index 5ce976b3de3ca9b3293139a429d8d96888a27e93..8922d560e5e6f0defa5a8763aef85dd4f998147a 100644 GIT binary patch delta 111 zcmaDRI7x`tiICCTmJ=Heu&yl)fbp9O4+_>Fnm|;~E_A;u#dYlA%ZuXk?M%WFHPE N#<0o#9N|nX%m9ML9Nho_ delta 66 zcmbOv^h}V~iI - +{% load static %} Latest Blogs - + - index1 +
@@ -37,7 +37,7 @@

Latest Blogs

By Admin September 24,2020

- +

Contact Admin For More Blogs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, @@ -48,9 +48,8 @@

Contact Admin For More Blogs

-
-

By Admin September 26,2020

- +
{% static 'images/image1.jpeg' %}span>September 26,2020

+

Contact Admin For More Blogs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, @@ -63,20 +62,20 @@

Contact Admin For More Blogs

By Admin October 2,2020

- +

Contact Admin For More Blogs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book

Read More 7 people liked 3.. -

+

../images/image3.jfif

By Admin October 2,2020

- +

Contact Admin For More Blogs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, @@ -89,7 +88,7 @@

Contact Admin For More Blogs

By Admin September 26,2020

- +

Contact Admin For More Blogs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, @@ -102,7 +101,7 @@

Contact Admin For More Blogs

By Admin September 26,2020

- +

Contact Admin For More Blogs

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,