Skip to content

small changes #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added blog/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added blog/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added blog/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added blog/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added blog/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added blog/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added blog/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
9 changes: 5 additions & 4 deletions blog/templates/blog/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
<!doctype html>
<html lang="en">
<head>
Expand All @@ -12,15 +12,15 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" >
<link rel="stylesheet" href="{% static 'blog/main.css' %}">
{% if title %}
<title>Django Blog - {{title}}</title>
<title>Dishank Blogs - {{title}}</title>
{% else %}
<title>Django Blog</title>
<title>Dishank Blogs</title>
{% endif %}

</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand font-weight-bold" href="{% url 'blog-home' %}"><i class="fas fa-blog"></i> Django Blog</a>
<a class="navbar-brand font-weight-bold" href="{% url 'blog-home' %}"><i class="fas fa-blog"></i> Dishank Blog</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -49,6 +49,7 @@

</div>
</nav>

<div class="container my-bg">
{% if messages %}
{% for message in messages %}
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
Binary file added django_blog/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added django_blog/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added django_blog/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added django_blog/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion django_blog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
'blog.apps.BlogConfig',
'users.apps.UsersConfig',
'crispy_forms',
'crispy_bootstrap5',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -125,7 +126,9 @@
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

CRISPY_TEMPLATE_PACK = 'bootstrap4'
CRISPY_TEMPLATE_PACK = 'bootstrap5'
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"


LOGIN_REDIRECT_URL = 'blog-home'
LOGIN_URL = 'login'
Binary file added users/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/signals.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.