Celestino Rey 1 year ago
parent
commit
cbec0916c1
5 changed files with 29 additions and 3 deletions
  1. +1
    -1
      Padel/.env.prod
  2. BIN
      Padel/servicios/padel/static/devesapark.jpeg
  3. +2
    -2
      Padel/servicios/padel/templates/_navegacion.html
  4. +2
    -0
      Padel/servicios/padel/templates/base.html
  5. +24
    -0
      Repostajes/app.py

+ 1
- 1
Padel/.env.prod View File

@ -1,4 +1,4 @@
ENVIRONMENT="Development"
ENVIRONMENT="Production"
FLASK_SECRET_KEY=29d3e20c7048a9d5df4f632fce4c0969fdac4e7f5334afff3ec869789a73a5d5 FLASK_SECRET_KEY=29d3e20c7048a9d5df4f632fce4c0969fdac4e7f5334afff3ec869789a73a5d5
FLASK_DATABASE=instance/padel.sqlite FLASK_DATABASE=instance/padel.sqlite


BIN
Padel/servicios/padel/static/devesapark.jpeg View File

Before After
Width: 4032  |  Height: 3024  |  Size: 4.6 MiB

+ 2
- 2
Padel/servicios/padel/templates/_navegacion.html View File

@ -1,8 +1,8 @@
<nav class="navbar is-dark" role="navigation" aria-label="main navigation"> <nav class="navbar is-dark" role="navigation" aria-label="main navigation">
<div class="navbar-brand"> <div class="navbar-brand">
<img src="./static/devesapark.jpeg" class="image is-48x48"/>
<a class="navbar-item" href="/">Devesa Park Padel</a> <a class="navbar-item" href="/">Devesa Park Padel</a>
<div class="navbar-burger" role="button" data-target="navMenu">
<div class="navbar-burger" role="button" data-target="navMenu">
<span></span> <span></span>
{% if current_user.is_authenticated %} {% if current_user.is_authenticated %}


+ 2
- 0
Padel/servicios/padel/templates/base.html View File

@ -16,6 +16,7 @@
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css" />--> <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css" />-->
</head> </head>
<body> <body>
{% include("_navegacion.html") %} {% include("_navegacion.html") %}
<section class="hero is-fullheight"> <section class="hero is-fullheight">
@ -23,6 +24,7 @@
{% block header %}{% endblock header %} {% block header %}{% endblock header %}
</header> </header>
<div class="container has-text-centered mt-5"> <div class="container has-text-centered mt-5">
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</div> </div>


+ 24
- 0
Repostajes/app.py View File

@ -0,0 +1,24 @@
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///todo.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db=SQLAlchemy(app)
class Todo(db.Model):
sno=db.Column(db.Integer,primary_key=True)
title=db.Column(db.String(200),nullable=False)
description = db.Column(db.String(200), nullable=False)
def __repr__(self) :
return "{} is the title and {} is the description".format(self.title,self.description)
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello world from flask</p>"
if __name__ == "__main__":
app.run(debug=True)

Loading…
Cancel
Save