Skip to content
Snippets Groups Projects
Verified Commit 48ce515d authored by Sachin Kamath's avatar Sachin Kamath
Browse files

Tweaked project names and set proper names

parent bb86f5f3
Branches
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@
__version__ = '0.1'
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
app = Flask('project')
app = Flask('hodor')
app.config['SECRET_KEY'] = 'random'
app.debug = True
toolbar = DebugToolbarExtension(app)
from project.controllers import *
from hodor.controllers import *
No preview for this file type
No preview for this file type
# -*- coding: utf-8 -*-
from project import app
from hodor import app
from flask import render_template, request
from flask_wtf import FlaskForm
from wtforms import StringField
......@@ -19,7 +19,7 @@ def start():
def printer():
form = CreateForm(request.form)
if request.method == 'POST' and form.validate():
from project.models.Printer import Printer
from hodor.models.Printer import Printer
printer = Printer()
printer.show_string(form.text.data)
return render_template('printer/index.html')
......
No preview for this file type
......@@ -5,7 +5,6 @@
</head>
<body>
<a style="text-align:center" href="{{ url_for('start') }}">Home</a>
<a style="text-align:center" href="http://salimane.com">About</a>
<div class="page">
<h1>Flask MVC Boilerplate</h1>
{% for message in get_flashed_messages() %}
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from project import app
from hodor import app
if __name__ == '__main__':
port = int(os.environ.get("PORT", 8080))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment