split make misc for time and date stuff
This commit is contained in:
8
app.py
8
app.py
@@ -1,7 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import time
|
|
||||||
from datetime import datetime, date
|
|
||||||
from flask import Flask, render_template, redirect
|
from flask import Flask, render_template, redirect
|
||||||
|
from misc import datetime, date, time, currDay
|
||||||
from db import (db, Period, Task, Event)
|
from db import (db, Period, Task, Event)
|
||||||
from forms import (TaskForm, EventForm, PeriodForm)
|
from forms import (TaskForm, EventForm, PeriodForm)
|
||||||
from create_events import createEvents
|
from create_events import createEvents
|
||||||
@@ -15,14 +14,9 @@ app.config['SQLALCHEMY_DATABASE_URI'] =\
|
|||||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
|
|
||||||
# db = SQLAlchemy(app)
|
|
||||||
|
|
||||||
from auth import auth as auth_blueprint
|
from auth import auth as auth_blueprint
|
||||||
app.register_blueprint(auth_blueprint)
|
app.register_blueprint(auth_blueprint)
|
||||||
|
|
||||||
currDay = datetime.now()
|
|
||||||
currDay = currDay.strftime('%m-%d-%Y')
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return redirect('/events')
|
return redirect('/events')
|
||||||
|
Reference in New Issue
Block a user