Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Francoconuts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Chester Tan
widget_Francoconuts
Commits
d2a5099c
Commit
d2a5099c
authored
Mar 09, 2022
by
AllenSkyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added homepage app and url routes
parent
a1bf7429
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
0 deletions
+31
-0
__init__.py
widget_Francoconuts/homepage/__init__.py
+0
-0
admin.py
widget_Francoconuts/homepage/admin.py
+3
-0
apps.py
widget_Francoconuts/homepage/apps.py
+6
-0
__init__.py
widget_Francoconuts/homepage/migrations/__init__.py
+0
-0
models.py
widget_Francoconuts/homepage/models.py
+3
-0
tests.py
widget_Francoconuts/homepage/tests.py
+3
-0
urls.py
widget_Francoconuts/homepage/urls.py
+9
-0
views.py
widget_Francoconuts/homepage/views.py
+5
-0
__init__.cpython-38.pyc
...s/widget_Francoconuts/__pycache__/__init__.cpython-38.pyc
+0
-0
settings.cpython-38.pyc
...s/widget_Francoconuts/__pycache__/settings.cpython-38.pyc
+0
-0
settings.py
widget_Francoconuts/widget_Francoconuts/settings.py
+1
-0
urls.py
widget_Francoconuts/widget_Francoconuts/urls.py
+1
-0
No files found.
widget_Francoconuts/homepage/__init__.py
0 → 100644
View file @
d2a5099c
widget_Francoconuts/homepage/admin.py
0 → 100644
View file @
d2a5099c
from
django.contrib
import
admin
# Register your models here.
widget_Francoconuts/homepage/apps.py
0 → 100644
View file @
d2a5099c
from
django.apps
import
AppConfig
class
HomepageConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'homepage'
widget_Francoconuts/homepage/migrations/__init__.py
0 → 100644
View file @
d2a5099c
widget_Francoconuts/homepage/models.py
0 → 100644
View file @
d2a5099c
from
django.db
import
models
# Create your models here.
widget_Francoconuts/homepage/tests.py
0 → 100644
View file @
d2a5099c
from
django.test
import
TestCase
# Create your tests here.
widget_Francoconuts/homepage/urls.py
0 → 100644
View file @
d2a5099c
from
django.urls
import
path
from
.views
import
index
urlpatterns
=
[
path
(
''
,
homepage
,
name
=
'homepage'
),
]
app_name
=
'homepage'
\ No newline at end of file
widget_Francoconuts/homepage/views.py
0 → 100644
View file @
d2a5099c
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
def
homepage
(
request
):
return
HttResponse
(
'Welcome to Widget!'
)
widget_Francoconuts/widget_Francoconuts/__pycache__/__init__.cpython-38.pyc
View file @
d2a5099c
No preview for this file type
widget_Francoconuts/widget_Francoconuts/__pycache__/settings.cpython-38.pyc
View file @
d2a5099c
No preview for this file type
widget_Francoconuts/widget_Francoconuts/settings.py
View file @
d2a5099c
...
...
@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles'
,
'assignments'
,
'announcements'
,
'homepage'
,
]
MIDDLEWARE
=
[
...
...
widget_Francoconuts/widget_Francoconuts/urls.py
View file @
d2a5099c
...
...
@@ -20,4 +20,5 @@ urlpatterns = [
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'assignments/'
,
include
(
'assignments.urls'
)),
path
(
'announcements/'
,
include
(
'announcements.urls'
))
path
(
'homepage/'
,
include
(
'homepage.urls'
))
]
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