Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_placeholdername
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
Rajo Christian Cadorna
widget_placeholdername
Commits
ab1148b2
Commit
ab1148b2
authored
Mar 23, 2022
by
Rupert Joseph D. Gonzales
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update announcements/models.py, announcements/admin.py, widget_placeholdername/settings.py files
parent
07dd17ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
admin.py
announcements/admin.py
+3
-0
models.py
announcements/models.py
+4
-0
settings.py
widget_placeholdername/settings.py
+1
-0
No files found.
announcements/admin.py
View file @
ab1148b2
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Announcement
admin
.
site
.
register
(
Announcement
)
\ No newline at end of file
announcements/models.py
View file @
ab1148b2
from
django.db
import
models
# Create your models here.
class
Announcement
(
models
.
Model
):
announcement_title
=
models
.
CharField
(
max_length
=
50
)
announcement_body
=
models
.
CharField
(
max_length
=
500
)
pub_date
=
models
.
DateTimeField
(
"date published"
)
widget_placeholdername/settings.py
View file @
ab1148b2
...
...
@@ -35,6 +35,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS
=
[
'homepage.apps.HomepageConfig'
,
'announcements.apps.AnnouncementsConfig'
,
'Forum.apps.ForumConfig'
,
'assignments.apps.AssignmentsConfig'
,
'django.contrib.admin'
,
...
...
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