Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lancedamalerio_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrian Lance Damalerio
lancedamalerio_reading
Commits
15d15e30
Commit
15d15e30
authored
Mar 28, 2023
by
Adrian Lance Damalerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed settings configuration such as Templates
parent
870734ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
settings.py
lancedamalerio_reading/lancedamalerio_reading/settings.py
+4
-3
No files found.
lancedamalerio_reading/lancedamalerio_reading/settings.py
View file @
15d15e30
...
@@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
...
@@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
from
pathlib
import
Path
from
pathlib
import
Path
import
os
import
os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
...
@@ -32,13 +33,13 @@ ALLOWED_HOSTS = []
...
@@ -32,13 +33,13 @@ ALLOWED_HOSTS = []
# Application definition
# Application definition
INSTALLED_APPS
=
[
INSTALLED_APPS
=
[
"bookshelf"
,
"django.contrib.admin"
,
"django.contrib.admin"
,
"django.contrib.auth"
,
"django.contrib.auth"
,
"django.contrib.contenttypes"
,
"django.contrib.contenttypes"
,
"django.contrib.sessions"
,
"django.contrib.sessions"
,
"django.contrib.messages"
,
"django.contrib.messages"
,
"django.contrib.staticfiles"
,
"django.contrib.staticfiles"
,
"bookshelf"
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
@@ -56,7 +57,7 @@ ROOT_URLCONF = "lancedamalerio_reading.urls"
...
@@ -56,7 +57,7 @@ ROOT_URLCONF = "lancedamalerio_reading.urls"
TEMPLATES
=
[
TEMPLATES
=
[
{
{
"BACKEND"
:
"django.template.backends.django.DjangoTemplates"
,
"BACKEND"
:
"django.template.backends.django.DjangoTemplates"
,
"DIRS"
:
[],
"DIRS"
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
"APP_DIRS"
:
True
,
"APP_DIRS"
:
True
,
"OPTIONS"
:
{
"OPTIONS"
:
{
"context_processors"
:
[
"context_processors"
:
[
...
@@ -118,7 +119,7 @@ USE_TZ = True
...
@@ -118,7 +119,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.1/howto/static-files/
# https://docs.djangoproject.com/en/4.1/howto/static-files/
STATIC_URL
=
"/static/"
STATIC_URL
=
"/static/"
STATICFILES_DIRS
=
BASE_DIR
,
"static"
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'static'
)]
# Default primary key field type
# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment