Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kurs_alx_pcz
Overview
Overview
Details
Activity
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
Patryk Czarnik
kurs_alx_pcz
Commits
bc7c778b
Commit
bc7c778b
authored
Dec 12, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Django - hello world
parent
ed4460e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
views.py
mojprojekt/aplikacja/views.py
+3
-0
settings.py
mojprojekt/mojprojekt/settings.py
+1
-0
urls.py
mojprojekt/mojprojekt/urls.py
+2
-0
No files found.
mojprojekt/aplikacja/views.py
View file @
bc7c778b
from
django.http
import
HttpResponse
from
django.shortcuts
import
render
from
django.shortcuts
import
render
# Create your views here.
# Create your views here.
def
hello
(
request
):
return
HttpResponse
(
'Hello <strong style="color:red">Django</strong>!'
)
mojprojekt/mojprojekt/settings.py
View file @
bc7c778b
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
"django.contrib.sessions"
,
"django.contrib.sessions"
,
"django.contrib.messages"
,
"django.contrib.messages"
,
"django.contrib.staticfiles"
,
"django.contrib.staticfiles"
,
"aplikacja"
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
mojprojekt/mojprojekt/urls.py
View file @
bc7c778b
...
@@ -16,7 +16,9 @@ Including another URLconf
...
@@ -16,7 +16,9 @@ Including another URLconf
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
path
from
aplikacja.views
import
hello
urlpatterns
=
[
urlpatterns
=
[
path
(
"admin/"
,
admin
.
site
.
urls
),
path
(
"admin/"
,
admin
.
site
.
urls
),
path
(
"hello"
,
hello
),
]
]
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