Skip to content

Commit eaca742

Browse files
committed
commit
1 parent a6080d5 commit eaca742

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

.gitignore

-1
This file was deleted.

Procfile

-1
This file was deleted.

__pycache__/forms.cpython-38.pyc

1.51 KB
Binary file not shown.

instance/blog.db

0 Bytes
Binary file not shown.

main.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
import os
1313

1414
app = Flask(__name__)
15-
app.config['SECRET_KEY'] = os.environ.get("SECRET_KEY")
15+
# app.config['SECRET_KEY'] = os.environ.get("SECRET_KEY") #Create your app app SECRET_KEY
16+
app.config['SECRET_KEY'] = '8BYkEfBA6O6donzWlSihBXox7C0sKR6b'
1617
ckeditor = CKEditor(app)
1718
Bootstrap(app)
1819
gravatar = Gravatar(app, size=100, rating='g', default='retro', force_default=False, force_lower=False, use_ssl=False, base_url=None)
1920

2021
##CONNECT TO DB
21-
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get("DATABASE_URL", "sqlite:///blog.db")
22+
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///blog.db"
2223
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
2324
db = SQLAlchemy(app)
2425
login_manager = LoginManager()

templates/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</a>
2222
</li>
2323
<li class="list-inline-item">
24-
<a href="https://github.com/saa1man">
24+
<a href="#">
2525
<span class="fa-stack fa-lg">
2626
<i class="fas fa-circle fa-stack-2x"></i>
2727
<i class="fab fa-github fa-stack-1x fa-inverse"></i>

templates/header.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="description" content="">
99
<meta name="author" content="">
1010

11-
<title>Salmane's Blog</title>
11+
<title>Website Blog</title>
1212

1313
<!-- Bootstrap core CSS -->
1414
<link href="{{ url_for('static', filename='vendor/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
@@ -28,7 +28,7 @@
2828
<!-- Navigation -->
2929
<nav class="navbar navbar-expand-md navbar-light fixed-top" id="mainNav">
3030
<div class="container">
31-
<a class="navbar-brand" href="{{url_for('get_all_posts')}}">Salmane's Blog</a>
31+
<a class="navbar-brand" href="{{url_for('get_all_posts')}}">Website Blog</a>
3232
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
3333
Menu
3434
<i class="fas fa-bars"></i>

templates/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% include "header.html" %}
22

33
<!-- Page Header -->
4-
<header class="masthead" style="background-image: url('https://images.unsplash.com/photo-1601691244706-7427e2073a71?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80')">
4+
<header class="masthead" style="background-image: url('https://images.unsplash.com/flagged/photo-1572392640988-ba48d1a74457?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=464&q=80')">
55
<div class="overlay"></div>
66
<div class="container">
77
<div class="row">
88
<div class="col-lg-8 col-md-10 mx-auto">
99
<div class="site-heading">
10-
<h1>Salmane's Blog</h1>
10+
<h1>Website Blog</h1>
1111
<span class="subheading">A collection of random musings.</span>
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)