Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nich_pardines_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
Nicholo Patrick C. Pardines
nich_pardines_music
Commits
5e2c928b
Commit
5e2c928b
authored
Feb 13, 2023
by
Nicholo Pardines
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added urls.py code for about django app
parent
ca9a362a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
urls.py
nich_pardines_music/about/urls.py
+12
-0
views.py
nich_pardines_music/about/views.py
+1
-1
No files found.
nich_pardines_music/about/urls.py
View file @
5e2c928b
from
django.urls
import
path
from
.views
import
aboutGreeting
# .views as in ./views and then we import the index function
# which we just created
urlpatterns
=
[
path
(
''
,
aboutGreeting
,
name
=
'aboutGreet'
),
]
# built in function
app_name
=
"about"
\ No newline at end of file
nich_pardines_music/about/views.py
View file @
5e2c928b
...
...
@@ -2,7 +2,7 @@ from django.shortcuts import render
from
django.http
import
HttpResponse
# Create your views here.
def
g
reeting
(
request
):
def
aboutG
reeting
(
request
):
return
HttpResponse
(
"Hi I'm Nick!
\n
"
+
"My favorite genres are punk and indie-folk"
)
...
...
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