├── main ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-310.pyc │ │ ├── 0001_initial.cpython-310.pyc │ │ ├── 0003_contact.cpython-310.pyc │ │ ├── 0002_blog_slug.cpython-310.pyc │ │ ├── 0005_blog_mini_description.cpython-310.pyc │ │ └── 0004_alter_blog_description.cpython-310.pyc │ ├── 0007_alter_blog_description.py │ ├── 0002_blog_slug.py │ ├── 0004_alter_blog_description.py │ ├── 0008_alter_blog_description.py │ ├── 0005_blog_mini_description.py │ ├── 0006_alter_blog_author.py │ ├── 0003_contact.py │ └── 0001_initial.py ├── tests.py ├── __pycache__ │ ├── apps.cpython-310.pyc │ ├── urls.cpython-310.pyc │ ├── admin.cpython-310.pyc │ ├── forms.cpython-310.pyc │ ├── models.cpython-310.pyc │ ├── views.cpython-310.pyc │ └── __init__.cpython-310.pyc ├── apps.py ├── admin.py ├── urls.py ├── models.py ├── forms.py └── views.py ├── authors ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ └── __init__.cpython-310.pyc │ ├── 0002_userprofuile_education_userprofuile_work.py │ ├── 0003_userprofuile_currently_hacking_on_and_more.py │ └── 0001_initial.py ├── tests.py ├── __pycache__ │ ├── apps.cpython-310.pyc │ ├── urls.cpython-310.pyc │ ├── admin.cpython-310.pyc │ ├── forms.cpython-310.pyc │ ├── models.cpython-310.pyc │ ├── views.cpython-310.pyc │ └── __init__.cpython-310.pyc ├── admin.py ├── apps.py ├── signals.py ├── models.py ├── urls.py ├── forms.py └── views.py ├── blog_project ├── __init__.py ├── __pycache__ │ ├── urls.cpython-310.pyc │ ├── wsgi.cpython-310.pyc │ ├── __init__.cpython-310.pyc │ └── settings.cpython-310.pyc ├── asgi.py ├── wsgi.py ├── urls.py └── settings.py ├── Procfile ├── db.sqlite3 ├── templates ├── authors │ ├── password_change_success.html │ ├── login.html │ ├── delete_user_confirm.html │ ├── edit_user_profile.html │ ├── register.html │ ├── password_change.html │ ├── dashboard.html │ ├── edit_public_details.html │ └── profile.html ├── main │ ├── update_blog.html │ ├── create_blog.html │ ├── delete_blog.html │ ├── contact_us.html │ ├── blog_home.html │ └── blog_detail.html ├── containers │ ├── _sideNavBar.html │ └── _navbar.html └── base.html ├── requirements.txt ├── manage.py ├── readme.md └── .gitignore /main/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /authors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /blog_project/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /main/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /authors/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | release: python manage.py migrate 2 | web: gunicorn blog_project.wsgi -------------------------------------------------------------------------------- /authors/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /main/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /main/__pycache__/apps.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/apps.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/apps.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/apps.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/admin.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/admin.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/forms.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/forms.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/admin.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/admin.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/forms.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/forms.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /authors/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /blog_project/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/blog_project/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /blog_project/__pycache__/wsgi.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/blog_project/__pycache__/wsgi.cpython-310.pyc -------------------------------------------------------------------------------- /authors/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import UserProfuile 3 | 4 | # Register your models here. 5 | admin.site.register(UserProfuile) 6 | -------------------------------------------------------------------------------- /blog_project/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/blog_project/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /blog_project/__pycache__/settings.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/blog_project/__pycache__/settings.cpython-310.pyc -------------------------------------------------------------------------------- /main/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /authors/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/authors/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /main/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class MainConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'main' 7 | -------------------------------------------------------------------------------- /main/migrations/__pycache__/0001_initial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/migrations/__pycache__/0001_initial.cpython-310.pyc -------------------------------------------------------------------------------- /main/migrations/__pycache__/0003_contact.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/migrations/__pycache__/0003_contact.cpython-310.pyc -------------------------------------------------------------------------------- /main/migrations/__pycache__/0002_blog_slug.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/migrations/__pycache__/0002_blog_slug.cpython-310.pyc -------------------------------------------------------------------------------- /main/migrations/__pycache__/0005_blog_mini_description.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/migrations/__pycache__/0005_blog_mini_description.cpython-310.pyc -------------------------------------------------------------------------------- /main/migrations/__pycache__/0004_alter_blog_description.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yashpatel-py/django_blog_youtube/HEAD/main/migrations/__pycache__/0004_alter_blog_description.cpython-310.pyc -------------------------------------------------------------------------------- /main/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Blog, BlogComment, Contact 3 | 4 | # Register your models here. 5 | admin.site.register(Blog) 6 | admin.site.register(BlogComment) 7 | admin.site.register(Contact) -------------------------------------------------------------------------------- /authors/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AuthorsConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'authors' 7 | 8 | def ready(self): 9 | import authors.signals 10 | -------------------------------------------------------------------------------- /templates/authors/password_change_success.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block title %}Password changed successfully{% endblock title %} 4 | 5 | {% block content %} 6 |
16 | {{data.mini_description| truncatechars:200}} 17 |
18 | Read More 19 |{{blog.description|safe}}
27 |41 |43 |{{ comment.description }}
42 |
36 |47 |37 |45 | 46 |38 |40 | 41 |{{post_data.name}}
39 |42 |44 |{{post_data.post_date|timesince}}
43 |
{{user_profile_data.bio}}
23 | {% else %} 24 |404 dio not found
25 | {% endif %} 26 | 27 |{{user_profile_data.currently_learning}}
82 |{{user_profile_data.skills_language}}
93 |{{user_profile_data.currently_hacking_on}}
104 |{{user_related_data.count}} - Posts
110 |119 |130 |120 |128 | 129 |121 |123 | 124 |{{post_data.name}}
122 |125 |127 |{{post_data.post_date|timesince}}
126 |