Skip to content

Commit

Permalink
Merge pull request #93 from stuartmaxwell/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell authored Sep 26, 2024
2 parents 0b12f4f + cc76355 commit d704eae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
9 changes: 2 additions & 7 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@
WSGI_APPLICATION = "config.wsgi.application"

# Database
if "sqlite" in env("DB_ENGINE"):
DB_NAME = BASE_DIR / f"{env('DB_NAME')}.sqlite3"
else:
DB_NAME = env("DB_NAME")
DB_NAME = BASE_DIR / f"{env('DB_NAME')}.sqlite3" if "sqlite" in env("DB_ENGINE") else env("DB_NAME")

DATABASES = {
"default": {
Expand All @@ -150,9 +147,7 @@

AUTH_PASSWORD_VALIDATORS = [
{
"NAME": (
"django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
),
"NAME": ("django.contrib.auth.password_validation.UserAttributeSimilarityValidator"),
},
{
"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
Expand Down
1 change: 1 addition & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
path(f"{settings.ADMIN_URL}/", admin.site.urls),
path("utils/timezones/", view=include("timezone_converter.urls")),
path("utils/markdown-editor/", view=include("markdown_editor.urls")),
path("robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain")),
path("", include("djpress.urls")),
]
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ignore = [
"TD002", # Missing author in TODO
"S308", # suspicious-mark-safe-usage
]
line-length = 120

target-version = "py312"

Expand Down
5 changes: 5 additions & 0 deletions templates/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
User-Agent: *
Disallow: /private/

User-agent: GPTBot
Disallow: /

0 comments on commit d704eae

Please sign in to comment.