Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_casanatics
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
John Aidan Vincent M. Ng
midterm_casanatics
Commits
60f64385
Commit
60f64385
authored
Feb 28, 2023
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created base apps, modified settings.py to include new apps and time zone
parent
5b97fc0d
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
131 additions
and
36 deletions
+131
-36
__init__.py
widget_casanatics/announcement_board/__init__.py
+0
-0
admin.py
widget_casanatics/announcement_board/admin.py
+3
-0
apps.py
widget_casanatics/announcement_board/apps.py
+6
-0
__init__.py
widget_casanatics/announcement_board/migrations/__init__.py
+0
-0
models.py
widget_casanatics/announcement_board/models.py
+3
-0
tests.py
widget_casanatics/announcement_board/tests.py
+3
-0
views.py
widget_casanatics/announcement_board/views.py
+3
-0
__init__.py
widget_casanatics/assignments/__init__.py
+0
-0
admin.py
widget_casanatics/assignments/admin.py
+3
-0
apps.py
widget_casanatics/assignments/apps.py
+6
-0
__init__.py
widget_casanatics/assignments/migrations/__init__.py
+0
-0
models.py
widget_casanatics/assignments/models.py
+3
-0
tests.py
widget_casanatics/assignments/tests.py
+3
-0
views.py
widget_casanatics/assignments/views.py
+3
-0
__init__.py
widget_casanatics/calendar_app/__init__.py
+0
-0
admin.py
widget_casanatics/calendar_app/admin.py
+3
-0
apps.py
widget_casanatics/calendar_app/apps.py
+6
-0
__init__.py
widget_casanatics/calendar_app/migrations/__init__.py
+0
-0
models.py
widget_casanatics/calendar_app/models.py
+3
-0
tests.py
widget_casanatics/calendar_app/tests.py
+3
-0
views.py
widget_casanatics/calendar_app/views.py
+3
-0
__init__.py
widget_casanatics/dashboard/__init__.py
+0
-0
admin.py
widget_casanatics/dashboard/admin.py
+3
-0
apps.py
widget_casanatics/dashboard/apps.py
+6
-0
__init__.py
widget_casanatics/dashboard/migrations/__init__.py
+0
-0
models.py
widget_casanatics/dashboard/models.py
+3
-0
tests.py
widget_casanatics/dashboard/tests.py
+3
-0
views.py
widget_casanatics/dashboard/views.py
+3
-0
__init__.py
widget_casanatics/forum/__init__.py
+0
-0
admin.py
widget_casanatics/forum/admin.py
+3
-0
apps.py
widget_casanatics/forum/apps.py
+6
-0
__init__.py
widget_casanatics/forum/migrations/__init__.py
+0
-0
models.py
widget_casanatics/forum/models.py
+3
-0
tests.py
widget_casanatics/forum/tests.py
+3
-0
views.py
widget_casanatics/forum/views.py
+3
-0
__init__.cpython-310.pyc
...cs/widget_casanatics/__pycache__/__init__.cpython-310.pyc
+0
-0
settings.cpython-310.pyc
...cs/widget_casanatics/__pycache__/settings.cpython-310.pyc
+0
-0
settings.py
widget_casanatics/widget_casanatics/settings.py
+41
-36
No files found.
widget_casanatics/announcement_board/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/announcement_board/admin.py
0 → 100644
View file @
60f64385
from
django.contrib
import
admin
# Register your models here.
widget_casanatics/announcement_board/apps.py
0 → 100644
View file @
60f64385
from
django.apps
import
AppConfig
class
AnnouncementBoardConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'announcement_board'
widget_casanatics/announcement_board/migrations/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/announcement_board/models.py
0 → 100644
View file @
60f64385
from
django.db
import
models
# Create your models here.
widget_casanatics/announcement_board/tests.py
0 → 100644
View file @
60f64385
from
django.test
import
TestCase
# Create your tests here.
widget_casanatics/announcement_board/views.py
0 → 100644
View file @
60f64385
from
django.shortcuts
import
render
# Create your views here.
widget_casanatics/assignments/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/assignments/admin.py
0 → 100644
View file @
60f64385
from
django.contrib
import
admin
# Register your models here.
widget_casanatics/assignments/apps.py
0 → 100644
View file @
60f64385
from
django.apps
import
AppConfig
class
AssignmentsConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'assignments'
widget_casanatics/assignments/migrations/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/assignments/models.py
0 → 100644
View file @
60f64385
from
django.db
import
models
# Create your models here.
widget_casanatics/assignments/tests.py
0 → 100644
View file @
60f64385
from
django.test
import
TestCase
# Create your tests here.
widget_casanatics/assignments/views.py
0 → 100644
View file @
60f64385
from
django.shortcuts
import
render
# Create your views here.
widget_casanatics/calendar_app/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/calendar_app/admin.py
0 → 100644
View file @
60f64385
from
django.contrib
import
admin
# Register your models here.
widget_casanatics/calendar_app/apps.py
0 → 100644
View file @
60f64385
from
django.apps
import
AppConfig
class
CalendarAppConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'calendar_app'
widget_casanatics/calendar_app/migrations/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/calendar_app/models.py
0 → 100644
View file @
60f64385
from
django.db
import
models
# Create your models here.
widget_casanatics/calendar_app/tests.py
0 → 100644
View file @
60f64385
from
django.test
import
TestCase
# Create your tests here.
widget_casanatics/calendar_app/views.py
0 → 100644
View file @
60f64385
from
django.shortcuts
import
render
# Create your views here.
widget_casanatics/dashboard/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/dashboard/admin.py
0 → 100644
View file @
60f64385
from
django.contrib
import
admin
# Register your models here.
widget_casanatics/dashboard/apps.py
0 → 100644
View file @
60f64385
from
django.apps
import
AppConfig
class
DashboardConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'dashboard'
widget_casanatics/dashboard/migrations/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/dashboard/models.py
0 → 100644
View file @
60f64385
from
django.db
import
models
# Create your models here.
widget_casanatics/dashboard/tests.py
0 → 100644
View file @
60f64385
from
django.test
import
TestCase
# Create your tests here.
widget_casanatics/dashboard/views.py
0 → 100644
View file @
60f64385
from
django.shortcuts
import
render
# Create your views here.
widget_casanatics/forum/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/forum/admin.py
0 → 100644
View file @
60f64385
from
django.contrib
import
admin
# Register your models here.
widget_casanatics/forum/apps.py
0 → 100644
View file @
60f64385
from
django.apps
import
AppConfig
class
ForumConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'forum'
widget_casanatics/forum/migrations/__init__.py
0 → 100644
View file @
60f64385
widget_casanatics/forum/models.py
0 → 100644
View file @
60f64385
from
django.db
import
models
# Create your models here.
widget_casanatics/forum/tests.py
0 → 100644
View file @
60f64385
from
django.test
import
TestCase
# Create your tests here.
widget_casanatics/forum/views.py
0 → 100644
View file @
60f64385
from
django.shortcuts
import
render
# Create your views here.
widget_casanatics/widget_casanatics/__pycache__/__init__.cpython-310.pyc
0 → 100644
View file @
60f64385
File added
widget_casanatics/widget_casanatics/__pycache__/settings.cpython-310.pyc
0 → 100644
View file @
60f64385
File added
widget_casanatics/widget_casanatics/settings.py
View file @
60f64385
...
...
@@ -20,7 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'django-insecure--$nv0-^#oz&dv@pol1*#8
%
w(7raixvc54g=!&11ws=rb((9ta*'
SECRET_KEY
=
"django-insecure--$nv0-^#oz&dv@pol1*#8
%
w(7raixvc54g=!&11ws=rb((9ta*"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
...
...
@@ -31,52 +31,57 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS
=
[
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
"announcement_board"
,
"assignments"
,
"calendar_app"
,
"dashboard"
,
"forum"
,
"django.contrib.admin"
,
"django.contrib.auth"
,
"django.contrib.contenttypes"
,
"django.contrib.sessions"
,
"django.contrib.messages"
,
"django.contrib.staticfiles"
,
]
MIDDLEWARE
=
[
'django.middleware.security.SecurityMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
"django.middleware.security.SecurityMiddleware"
,
"django.contrib.sessions.middleware.SessionMiddleware"
,
"django.middleware.common.CommonMiddleware"
,
"django.middleware.csrf.CsrfViewMiddleware"
,
"django.contrib.auth.middleware.AuthenticationMiddleware"
,
"django.contrib.messages.middleware.MessageMiddleware"
,
"django.middleware.clickjacking.XFrameOptionsMiddleware"
,
]
ROOT_URLCONF
=
'widget_casanatics.urls'
ROOT_URLCONF
=
"widget_casanatics.urls"
TEMPLATES
=
[
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'context_processors'
:
[
'django.template.context_processors.debug'
,
'django.template.context_processors.request'
,
'django.contrib.auth.context_processors.auth'
,
'django.contrib.messages.context_processors.messages'
,
"BACKEND"
:
"django.template.backends.django.DjangoTemplates"
,
"DIRS"
:
[],
"APP_DIRS"
:
True
,
"OPTIONS"
:
{
"context_processors"
:
[
"django.template.context_processors.debug"
,
"django.template.context_processors.request"
,
"django.contrib.auth.context_processors.auth"
,
"django.contrib.messages.context_processors.messages"
,
],
},
},
]
WSGI_APPLICATION
=
'widget_casanatics.wsgi.application'
WSGI_APPLICATION
=
"widget_casanatics.wsgi.application"
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
BASE_DIR
/
'db.sqlite3'
,
"default"
:
{
"ENGINE"
:
"django.db.backends.sqlite3"
,
"NAME"
:
BASE_DIR
/
"db.sqlite3"
,
}
}
...
...
@@ -86,16 +91,16 @@ DATABASES = {
AUTH_PASSWORD_VALIDATORS
=
[
{
'NAME'
:
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
,
"NAME"
:
"django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
,
},
{
'NAME'
:
'django.contrib.auth.password_validation.MinimumLengthValidator'
,
"NAME"
:
"django.contrib.auth.password_validation.MinimumLengthValidator"
,
},
{
'NAME'
:
'django.contrib.auth.password_validation.CommonPasswordValidator'
,
"NAME"
:
"django.contrib.auth.password_validation.CommonPasswordValidator"
,
},
{
'NAME'
:
'django.contrib.auth.password_validation.NumericPasswordValidator'
,
"NAME"
:
"django.contrib.auth.password_validation.NumericPasswordValidator"
,
},
]
...
...
@@ -103,9 +108,9 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE
=
'en-us'
LANGUAGE_CODE
=
"en-us"
TIME_ZONE
=
'UTC'
TIME_ZONE
=
"Asia/Manila"
USE_I18N
=
True
...
...
@@ -117,9 +122,9 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL
=
'/static/'
STATIC_URL
=
"/static/"
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD
=
'django.db.models.BigAutoField'
DEFAULT_AUTO_FIELD
=
"django.db.models.BigAutoField"
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