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
7b981e54
Commit
7b981e54
authored
Mar 08, 2022
by
Bryan Carlo Guanlao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Announcement Board app and its url routes
parent
1d2116a6
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
32 additions
and
1 deletion
+32
-1
__init__.py
widget_Francoconuts/announcements/__init__.py
+0
-0
admin.py
widget_Francoconuts/announcements/admin.py
+3
-0
apps.py
widget_Francoconuts/announcements/apps.py
+6
-0
__init__.py
widget_Francoconuts/announcements/migrations/__init__.py
+0
-0
models.py
widget_Francoconuts/announcements/models.py
+3
-0
tests.py
widget_Francoconuts/announcements/tests.py
+3
-0
urls.py
widget_Francoconuts/announcements/urls.py
+8
-0
views.py
widget_Francoconuts/announcements/views.py
+6
-0
settings.py
widget_Francoconuts/widget_Francoconuts/settings.py
+1
-0
urls.py
widget_Francoconuts/widget_Francoconuts/urls.py
+2
-1
No files found.
widget_Francoconuts/announcements/__init__.py
0 → 100644
View file @
7b981e54
widget_Francoconuts/announcements/admin.py
0 → 100644
View file @
7b981e54
from
django.contrib
import
admin
# Register your models here.
widget_Francoconuts/announcements/apps.py
0 → 100644
View file @
7b981e54
from
django.apps
import
AppConfig
class
AnnouncementsConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'announcements'
widget_Francoconuts/announcements/migrations/__init__.py
0 → 100644
View file @
7b981e54
widget_Francoconuts/announcements/models.py
0 → 100644
View file @
7b981e54
from
django.db
import
models
# Create your models here.
widget_Francoconuts/announcements/tests.py
0 → 100644
View file @
7b981e54
from
django.test
import
TestCase
# Create your tests here.
widget_Francoconuts/announcements/urls.py
0 → 100644
View file @
7b981e54
from
django.urls
import
path
from
.views
import
announcements
urlpatterns
=
[
path
(
''
,
announcements
,
name
=
'announcements'
),
]
app_name
=
'announcements'
widget_Francoconuts/announcements/views.py
0 → 100644
View file @
7b981e54
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
def
announcements
(
request
):
return
HttpResponse
(
"This is the Announcement Board!"
)
widget_Francoconuts/widget_Francoconuts/settings.py
View file @
7b981e54
...
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
...
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.staticfiles'
,
'assignments'
,
'assignments'
,
'announcements'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
widget_Francoconuts/widget_Francoconuts/urls.py
View file @
7b981e54
...
@@ -18,5 +18,6 @@ from django.urls import path, include
...
@@ -18,5 +18,6 @@ from django.urls import path, include
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'assignments/'
,
include
(
'assignments.urls'
))
path
(
'assignments/'
,
include
(
'assignments.urls'
)),
path
(
'announcements/'
,
include
(
'announcements.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