mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-14 16:31:49 +02:00
Compare commits
No commits in common. "65290aa95cf9f54857d494cc5dbb6f1fa789839b" and "c59e8de354f3a22e62b2bc737697e9b1daf19d28" have entirely different histories.
65290aa95c
...
c59e8de354
7 changed files with 5 additions and 24 deletions
|
@ -173,14 +173,6 @@ URL you want.
|
||||||
- **Default value:** `""` (empty string)
|
- **Default value:** `""` (empty string)
|
||||||
- **Production value:** The URL of your chosing.
|
- **Production value:** The URL of your chosing.
|
||||||
|
|
||||||
## SITE_NAME
|
|
||||||
|
|
||||||
It is possible to change the name of the site to something at your liking.
|
|
||||||
|
|
||||||
- **Default value:** `"I Hate Money"` (empty string)
|
|
||||||
- **Production value:** The name of your choosing
|
|
||||||
|
|
||||||
|
|
||||||
## Configuring email sending
|
## Configuring email sending
|
||||||
|
|
||||||
By default, Ihatemoney sends emails using a local SMTP server, but it's
|
By default, Ihatemoney sends emails using a local SMTP server, but it's
|
||||||
|
|
|
@ -3,7 +3,6 @@ DEBUG = SQLACHEMY_ECHO = False
|
||||||
SQLALCHEMY_DATABASE_URI = "sqlite:////tmp/ihatemoney.db"
|
SQLALCHEMY_DATABASE_URI = "sqlite:////tmp/ihatemoney.db"
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
SECRET_KEY = "tralala"
|
SECRET_KEY = "tralala"
|
||||||
SITE_NAME = "I Hate Money"
|
|
||||||
MAIL_DEFAULT_SENDER = "Budget manager <admin@example.com>"
|
MAIL_DEFAULT_SENDER = "Budget manager <admin@example.com>"
|
||||||
SHOW_ADMIN_EMAIL = True
|
SHOW_ADMIN_EMAIL = True
|
||||||
ACTIVATE_DEMO_PROJECT = True
|
ACTIVATE_DEMO_PROJECT = True
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="h-100">
|
<html class="h-100">
|
||||||
<head>
|
<head>
|
||||||
<title>{{ SITE_NAME }} — {{ _("Account manager") }}{% block title %}{% endblock %}</title>
|
<title>{{ _("Account manager") }}{% block title %}{% endblock %}</title>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">
|
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">
|
||||||
|
|
|
@ -238,10 +238,7 @@ class TestBudget(IhatemoneyTestCase):
|
||||||
url, data={"password": "pass", "password_confirmation": "pass"}
|
url, data={"password": "pass", "password_confirmation": "pass"}
|
||||||
)
|
)
|
||||||
resp = self.login("raclette", password="pass")
|
resp = self.login("raclette", password="pass")
|
||||||
assert (
|
assert "<title>Account manager - raclette</title>" in resp.data.decode("utf-8")
|
||||||
"<title>I Hate Money — Account manager - raclette</title>"
|
|
||||||
in resp.data.decode("utf-8")
|
|
||||||
)
|
|
||||||
# Test empty and null tokens
|
# Test empty and null tokens
|
||||||
resp = self.client.get("/reset-password")
|
resp = self.client.get("/reset-password")
|
||||||
assert "No token provided" in resp.data.decode("utf-8")
|
assert "No token provided" in resp.data.decode("utf-8")
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///budget.db'
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///budget.db'
|
||||||
SQLACHEMY_ECHO = DEBUG
|
SQLACHEMY_ECHO = DEBUG
|
||||||
SITE_NAME = "I Hate Money"
|
|
||||||
|
|
||||||
SECRET_KEY = "supersecret"
|
SECRET_KEY = "supersecret"
|
||||||
|
|
||||||
|
|
|
@ -137,11 +137,6 @@ def set_show_admin_dashboard_link(endpoint, values):
|
||||||
g.logout_form = LogoutForm()
|
g.logout_form = LogoutForm()
|
||||||
|
|
||||||
|
|
||||||
@main.context_processor
|
|
||||||
def add_template_variables():
|
|
||||||
return {"SITE_NAME": current_app.config.get("SITE_NAME")}
|
|
||||||
|
|
||||||
|
|
||||||
@main.url_value_preprocessor
|
@main.url_value_preprocessor
|
||||||
def pull_project(endpoint, values):
|
def pull_project(endpoint, values):
|
||||||
"""When a request contains a project_id value, transform it directly
|
"""When a request contains a project_id value, transform it directly
|
||||||
|
|
|
@ -27,7 +27,7 @@ classifiers = [
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"blinker>=1.4,<2",
|
"blinker>=1.4,<2",
|
||||||
"cachetools>=4.1,<6",
|
"cachetools>=4.1,<5",
|
||||||
"debts>=0.5,<1",
|
"debts>=0.5,<1",
|
||||||
"email_validator>=1.0,<3",
|
"email_validator>=1.0,<3",
|
||||||
"Flask>=2,<4",
|
"Flask>=2,<4",
|
||||||
|
@ -43,7 +43,7 @@ dependencies = [
|
||||||
"itsdangerous>=2,<3",
|
"itsdangerous>=2,<3",
|
||||||
"Jinja2>=3,<4",
|
"Jinja2>=3,<4",
|
||||||
"python-dateutil",
|
"python-dateutil",
|
||||||
"qrcode>=7.1,<9",
|
"qrcode>=7.1,<8",
|
||||||
"requests>=2.25,<3",
|
"requests>=2.25,<3",
|
||||||
"SQLAlchemy>=1.3.0,<1.5",
|
"SQLAlchemy>=1.3.0,<1.5",
|
||||||
"SQLAlchemy-Continuum>=1.3.12,<2", # New 1.4 changes API, see #728
|
"SQLAlchemy-Continuum>=1.3.12,<2", # New 1.4 changes API, see #728
|
||||||
|
@ -57,8 +57,7 @@ database = [
|
||||||
"PyMySQL>=0.9,<1.2",
|
"PyMySQL>=0.9,<1.2",
|
||||||
]
|
]
|
||||||
dev = [
|
dev = [
|
||||||
"ruff==0.8.4",
|
"ruff==0.6.8",
|
||||||
"flake8==5.0.4",
|
|
||||||
"isort==5.11.5",
|
"isort==5.11.5",
|
||||||
"vermin==1.6.0",
|
"vermin==1.6.0",
|
||||||
"pytest>=6.2.5",
|
"pytest>=6.2.5",
|
||||||
|
|
Loading…
Reference in a new issue