Rename undercover/ to app/
This commit is contained in:
parent
e2be735d3f
commit
241dfa8ba6
|
@ -7,8 +7,7 @@ from flask import Flask, Response, make_response, render_template
|
||||||
from flask_minify import Minify
|
from flask_minify import Minify
|
||||||
from werkzeug.exceptions import HTTPException
|
from werkzeug.exceptions import HTTPException
|
||||||
|
|
||||||
import undercover.routes
|
from app import routes, email
|
||||||
import undercover.email
|
|
||||||
|
|
||||||
|
|
||||||
def create_app(test_config=None) -> Flask:
|
def create_app(test_config=None) -> Flask:
|
|
@ -9,7 +9,7 @@ from uuid import uuid4, UUID
|
||||||
import bcrypt
|
import bcrypt
|
||||||
import psycopg
|
import psycopg
|
||||||
|
|
||||||
from undercover.fallback import MockConnection
|
from app.fallback import MockConnection
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
|
@ -3,7 +3,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from mailjet_rest import Client
|
from mailjet_rest import Client
|
||||||
from undercover.fallback import mock_sender
|
from app.fallback import mock_sender
|
||||||
|
|
||||||
api_key = os.environ.get('MAILJET_API_KEY')
|
api_key = os.environ.get('MAILJET_API_KEY')
|
||||||
api_secret = os.environ.get('MAILJET_SECRET_KEY')
|
api_secret = os.environ.get('MAILJET_SECRET_KEY')
|
|
@ -6,13 +6,12 @@ import subprocess
|
||||||
import threading
|
import threading
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
from flask import (Blueprint, render_template, request, make_response, session, redirect, jsonify, Response)
|
from flask import Blueprint, render_template, request, make_response, session, redirect, jsonify, Response
|
||||||
from wtforms import Form, SelectField, StringField, TextAreaField, validators
|
from wtforms import Form, SelectField, StringField, TextAreaField, validators
|
||||||
from email_validator import validate_email, EmailNotValidError
|
from email_validator import validate_email, EmailNotValidError
|
||||||
|
|
||||||
import undercover.db as db
|
from app import db, email
|
||||||
import undercover.email as email
|
from app.pdf_builder import CLData
|
||||||
from undercover.pdf_builder import CLData
|
|
||||||
|
|
||||||
writing_blueprint = Blueprint('writing', __name__)
|
writing_blueprint = Blueprint('writing', __name__)
|
||||||
|
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
2
start
2
start
|
@ -18,6 +18,6 @@ if [[ "$1" == "prod" ]]; then
|
||||||
gunicorn -b localhost:8080 "undercover:create_app()"
|
gunicorn -b localhost:8080 "undercover:create_app()"
|
||||||
else
|
else
|
||||||
echo "Starting local dev server..."
|
echo "Starting local dev server..."
|
||||||
export FLASK_APP=undercover
|
export FLASK_APP=app
|
||||||
flask --debug run --host=0.0.0.0
|
flask --debug run --host=0.0.0.0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue