Preparando para deploy, eso espero
This commit is contained in:
@@ -19,7 +19,7 @@ def create_app():
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return render_template('empty.html')
|
||||
return redirect(url_for('blog.index'))
|
||||
|
||||
|
||||
from . import db
|
||||
|
||||
@@ -32,7 +32,7 @@ def login():
|
||||
if error is None:
|
||||
session.clear()
|
||||
session['user_id'] = user['id']
|
||||
return redirect(url_for('blog.index'))
|
||||
return redirect(url_for('index'))
|
||||
|
||||
flash(error)
|
||||
|
||||
@@ -41,7 +41,7 @@ def login():
|
||||
@bp.route('/logout')
|
||||
def logout():
|
||||
session.clear()
|
||||
return redirect(url_for('blog.index'))
|
||||
return redirect(url_for('index'))
|
||||
|
||||
@bp.before_app_request
|
||||
def load_logged_in_user():
|
||||
|
||||
@@ -23,6 +23,3 @@ INSERT INTO posts (title, markdown, html, resume) values
|
||||
"Sit necessitatibus quibusdam autem facere tempore quibusdam assumenda. Quo sit asperiores earum beatae unde reiciendis perspiciatis. Blanditiis natus ex similique possimus optio veritatis.",
|
||||
"Enim unde ut eaque vero saepe ut. Iure culpa modi ipsam maxime aliquid sed officiis. Consequatur minima quaerat molestias laudantium aut. Quia voluptas sint accusantium architecto."
|
||||
);
|
||||
|
||||
INSERT INTO now (markdown, html) values
|
||||
("", "")
|
||||
|
||||
@@ -22,3 +22,7 @@ CREATE TABLE users (
|
||||
username TEXT NOT NULL,
|
||||
password TEXT NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO now (markdown, html) VALUES (
|
||||
"",""
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}/dev/null{% endblock %}
|
||||
{% block title %}dev/null{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user