Skip to content

Commit 6d49351

Browse files
authored
Merge branch 'staging' into ac-2
2 parents 927d7ee + 9cdae29 commit 6d49351

File tree

215 files changed

+15042
-8506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+15042
-8506
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ node_modules/
7373
FusionIIIT/static/
7474
package-lock.json
7575

76+
7677
docker-entrypoint.sh
7778

7879

@@ -83,3 +84,6 @@ postgres_data
8384
# sample files from media/Adminstrator
8485
!media/Administrator/academic_procedures/sample_courses_allotment.xls
8586
!media/Administrator/academic_procedures/sample_student_profile.xlsx
87+
88+
migrations/
89+

FusionIIIT/Fusion/settings/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
'django.contrib.staticfiles',
105105
'django.contrib.sites',
106106
'django.contrib.humanize',
107-
107+
'django_crontab',
108108
'corsheaders',
109109

110110
'applications.eis',
@@ -279,5 +279,6 @@
279279
YOUTUBE_DATA_API_KEY = 'api_key'
280280

281281

282+
282283
CORS_ORIGIN_ALLOW_ALL = True
283284
ALLOW_PASS_RESET = True

FusionIIIT/Fusion/settings/development.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from Fusion.settings.common import *
22

33
DEBUG = True
4-
4+
TEMPLATE_DEBUG = True
55
SECRET_KEY = '=&w9due426k@l^ju1=s1)fj1rnpf0ok8xvjwx+62_nc-f12-8('
66

77
ALLOWED_HOSTS = ['*']
@@ -19,6 +19,7 @@
1919
REST_FRAMEWORK = {
2020
'DEFAULT_AUTHENTICATION_CLASSES': (
2121
'rest_framework.authentication.TokenAuthentication',
22+
'rest_framework.authentication.SessionAuthentication',
2223
),
2324
'DEFAULT_PERMISSION_CLASSES': (
2425
'rest_framework.permissions.IsAuthenticated',
@@ -53,3 +54,16 @@
5354
DEBUG_TOOLBAR_CONFIG = {
5455
'INTERCEPT_REDIRECTS': False,
5556
}
57+
58+
CRONJOBS = [
59+
# the below job will update the bill at every minute can be used for testing
60+
# ('* * * * *', 'applications.central_mess.tasks.generate_bill'),
61+
62+
#the below job which we need to add in production server, to update the mess bill of student everyday at 10 pm in night
63+
('0 22 * * *', 'applications.central_mess.tasks.generate_bill'),
64+
]
65+
66+
CRONTAB_DJANGO_MANAGE_PATH = '/home/owlman/Desktop/Fuse/Fusion/FusionIIIT/manage.py'
67+
68+
MEDIA_URL = "/media/"
69+
MEDIA_ROOT=os.path.join(BASE_DIR,"media/")

FusionIIIT/applications/academic_information/migrations/0001_initial.py

Lines changed: 0 additions & 182 deletions
This file was deleted.

FusionIIIT/applications/academic_information/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)