arba yesodot blueprint init
This commit is contained in:
parent
d6c532ea49
commit
90c0f3ae98
3 changed files with 30 additions and 0 deletions
9
app/arba_yesodot/__init__.py
Normal file
9
app/arba_yesodot/__init__.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from flask import Blueprint
|
||||
|
||||
arba_yesodot = Blueprint('arba_yesodot',
|
||||
__name__,
|
||||
template_folder='templates',
|
||||
static_folder='static',
|
||||
url_prefix='/arba_yesodot')
|
||||
|
||||
from app.arba_yesodot import routes
|
||||
15
app/arba_yesodot/routes.py
Normal file
15
app/arba_yesodot/routes.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from app import db
|
||||
from app.arba_yesodot import arba_yesodot
|
||||
from app.users.models import User
|
||||
from app.campaigns.models import Campaign
|
||||
from app.campaigns.forms import CreateCampaignForm
|
||||
from flask import render_template, redirect, url_for, flash, request
|
||||
from flask_login import login_required, login_user, current_user, logout_user
|
||||
from werkzeug.security import check_password_hash, generate_password_hash
|
||||
from datetime import datetime
|
||||
import os
|
||||
from time import sleep
|
||||
|
||||
@arba_yesodot.route('arba_yesodot_homepage')
|
||||
def arba_yesodot_homepage():
|
||||
return render_template('arba_yesodot_homepage.html')
|
||||
6
app/arba_yesodot/templates/arba_yesodot_homepage.html
Normal file
6
app/arba_yesodot/templates/arba_yesodot_homepage.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{% extends 'base.html' %}
|
||||
{% block title %}Arba Yesodot{% endblock title %}
|
||||
{% block stylesheet %}{% endblock stylesheet %}
|
||||
{% block content %}
|
||||
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue