From 6c7ddedd342553b53dd98c8de9cbe9e8e2e8cd7c Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Sun, 27 Nov 2022 13:09:46 -0500 Subject: Post editing --- takahe/settings.py | 5 +++++ takahe/urls.py | 1 + 2 files changed, 6 insertions(+) (limited to 'takahe') diff --git a/takahe/settings.py b/takahe/settings.py index cec4f2d..0c6c2c5 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -30,6 +30,11 @@ TAKAHE_ENV_FILE = os.environ.get( ) +TAKAHE_ENV_FILE = os.environ.get( + "TAKAHE_ENV_FILE", "test.env" if "pytest" in sys.modules else ".env" +) + + class Settings(BaseSettings): """ Pydantic-powered settings, to provide consistent error messages, strong diff --git a/takahe/urls.py b/takahe/urls.py index 98e1050..6f5ac79 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -106,6 +106,7 @@ urlpatterns = [ path("@/posts//boost/", posts.Boost.as_view()), path("@/posts//unboost/", posts.Boost.as_view(undo=True)), path("@/posts//delete/", posts.Delete.as_view()), + path("@/posts//edit/", posts.Compose.as_view()), # Authentication path("auth/login/", auth.Login.as_view(), name="login"), path("auth/logout/", auth.Logout.as_view(), name="logout"), -- cgit v1.2.3