Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 23
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
Bianca Aguilar
widget_group 23
Commits
9ad8834a
Commit
9ad8834a
authored
Mar 08, 2022
by
Bianca Aguilar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configuring settings and URLs
parent
5cc8355a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
urls.py
widget_group_23/homepage/urls.py
+3
-5
settings.py
widget_group_23/settings.py
+5
-2
No files found.
widget_group_23/homepage/urls.py
View file @
9ad8834a
from
django.contrib
import
admin
from
django.urls
import
include
,
path
from
django.urls
import
path
from
.
views
import
index
from
.
import
views
urlpatterns
=
[
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
"homepage"
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
''
,
views
.
index
,
name
=
'index'
),
]
\ No newline at end of file
widget_group_23/settings.py
View file @
9ad8834a
...
...
@@ -11,6 +11,9 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
"""
from
pathlib
import
Path
from
dotenv
import
load_dotenv
load_dotenv
()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
...
...
@@ -20,12 +23,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'django-insecure-*(qier^-o5=az!3k
%
zs$y+!c1k6on)oi3
%
)_jiy(
%
h=34u=*1@'
SECRET_KEY
=
os
.
getenv
(
'django-insecure-*(qier^-o5=az!3k
%
zs$y+!c1k6on)oi3
%
)_jiy(
%
h=34u=*1@'
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[]
ALLOWED_HOSTS
=
[
'*'
]
# Application definition
...
...
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