Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
brendanfausto_music
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
Brendan Fausto
brendanfausto_music
Commits
e46bcd0c
Commit
e46bcd0c
authored
Feb 16, 2023
by
Brendan Fausto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contact finished & integrated to the project
parent
434f1e29
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
settings.py
brendanfausto_music/brendanfausto_music/settings.py
+2
-1
urls.py
brendanfausto_music/brendanfausto_music/urls.py
+2
-1
urls.py
brendanfausto_music/contact/urls.py
+11
-0
views.py
brendanfausto_music/contact/views.py
+5
-1
No files found.
brendanfausto_music/brendanfausto_music/settings.py
View file @
e46bcd0c
...
...
@@ -43,7 +43,8 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'homepage'
'homepage'
,
'contact'
]
MIDDLEWARE
=
[
...
...
brendanfausto_music/brendanfausto_music/urls.py
View file @
e46bcd0c
...
...
@@ -18,5 +18,6 @@ from django.urls import path
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
"homepage"
))
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
"homepage"
)),
path
(
'contact/'
,
include
(
'contact.urls'
,
namespace
=
"contact"
))
]
brendanfausto_music/contact/urls.py
0 → 100644
View file @
e46bcd0c
# contact/urls.py
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
)
]
app_name
=
'contact'
\ No newline at end of file
brendanfausto_music/contact/views.py
View file @
e46bcd0c
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
# Create your views here.
# appname/views.py
def
index
(
request
):
return
HttpResponse
(
'Contact me thru email at blabla@random.com, or thru my phone number 09xx-xxx-xxxx'
)
\ No newline at end of file
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