-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #525 from DevCom-IITB/Events
Events
- Loading branch information
Showing
39 changed files
with
2,138 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
exclude = .git,__pycache__,backend/settings*,*/migrations/*,venv,.venv | ||
ignore = E302,E731,W503 | ||
max-complexity = 15 | ||
max-line-length = 120 | ||
max-complexity = 25 | ||
max-line-length = 150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,8 @@ | |
# SSO Config | ||
SSO_TOKEN_URL = "https://gymkhana.iitb.ac.in/sso/oauth/token/" | ||
SSO_PROFILE_URL = "https://gymkhana.iitb.ac.in/sso/user/api/user/?fields=first_name,last_name,type,profile_picture,sex,username,email,program,contacts,insti_address,secondary_emails,mobile,roll_number" | ||
SSO_CLIENT_ID = "HeKlfCluQLxa5cG5c4yHYiAEFZynroiKwylpiwNV" | ||
SSO_CLIENT_ID_SECRET_BASE64 = "SGVLbGZDbHVRTHhhNWNHNWM0eUhZaUFFRlp5bnJvaUt3eWxwaXdOVjpYbDg4OHNaOWFhbVVmV1FMR0Y3SjI1MU5taUFYeHRtdzRtM3pHejJLUVQ1d3M0b3hTRGNCTnhSNWw4SXpYbHNDTVVWVHh3MUE0VXRnRU5YZ1FpWlFDZ1RUcERoVHFXeUZmckhLdDhadU5SQk9SY2Q3Z2ZmWjNXUzQ5bGxCMXNBUg==" | ||
SSO_CLIENT_ID = "0vptOdXpmB8MIGhV6ZeADQxNQ7xuaa3ntITZwqPX" | ||
SSO_CLIENT_ID_SECRET_BASE64 = "MHZwdE9kWHBtQjhNSUdoVjZaZUFEUXhOUTd4dWFhM250SVRad3FQWDpsanRQbVN2WGZVTnlXZEVRTWQ1aElaYUNXRXZyVFRXTllTU0p3cExwbUhTZ1pTRXI5WUdZWm40SHFOczZlWHBhQjBlSXhzV3p2UlJSSTRoM3FreDJlbmFrSzczUXhPRldiVFh6RkRuUFk4aVdNeERuZndXdU8yOEg0eVloSlpWZw==" | ||
|
||
# Password Login | ||
SSO_DEFAULT_REDIR = "https://insti.app/login" | ||
|
@@ -72,4 +72,10 @@ | |
EMAIL_HOST = "smtp.gmail.com" | ||
EMAIL_PORT = "587" | ||
EMAIL_HOST_USER = "" | ||
EMAIL_HOST_PASSWORD = "" | ||
EMAIL_EVENT_HOST_USER = "" | ||
EMAIL_USE_TLS = True | ||
RECIPIENT_LIST = ['[email protected]', '[email protected]'] | ||
CORS_ORIGIN_ALLOW_ALL = True | ||
CORS_ALLOW_CREDENTIALS = True | ||
AUTH_USER = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 3.2.16 on 2023-12-11 17:46 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0031_alter_event_event_interest"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="event", | ||
name="email_body", | ||
field=models.TextField(default=""), | ||
), | ||
migrations.AddField( | ||
model_name="event", | ||
name="email_verified", | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
events/migrations/0033_rename_email_body_event_longdescription.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2.16 on 2023-12-12 10:01 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0032_auto_20231211_2316"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="event", | ||
old_name="email_body", | ||
new_name="longdescription", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 3.2.16 on 2023-12-13 13:01 | ||
|
||
from django.db import migrations | ||
import multiselectfield.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0033_rename_email_body_event_longdescription"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="event", | ||
name="verification_body", | ||
field=multiselectfield.db.fields.MultiSelectField( | ||
choices=[ | ||
( | ||
"91199c20-7488-41c5-9f6b-6f6c7c5b897d", | ||
"Institute Cultural Council", | ||
), | ||
( | ||
"81e05a1a-7fd1-45b5-84f6-074e52c0f085", | ||
"Institute Technical Council", | ||
), | ||
( | ||
"a9f81e69-fcc9-4fe3-b261-9e5e7a13f898", | ||
"Institute Sports Council", | ||
), | ||
("f3ae5230-4441-4586-81a8-bf75a2e47318", "Hostel Affairs"), | ||
], | ||
default="91199c20-7488-41c5-9f6b-6f6c7c5b897d", | ||
max_length=147, | ||
), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.16 on 2023-12-14 04:48 | ||
|
||
from django.db import migrations | ||
import multiselectfield.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0034_event_verification_body"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="event", | ||
name="verification_body", | ||
field=multiselectfield.db.fields.MultiSelectField( | ||
choices=[ | ||
( | ||
"d920d898-0998-4ed9-8fb8-f270310b2bec", | ||
"Institute Cultural Council", | ||
), | ||
( | ||
"ae084ebb-6009-4095-a774-44ad0f107bc0", | ||
"Institute Technical Council", | ||
), | ||
( | ||
"0aa10bcc-f08f-44c6-bf50-1ce9b5c2f0f0", | ||
"Institute Sports Council", | ||
), | ||
("6c43632e-de1f-4088-8e77-60af60139e91", "Hostel Affairs"), | ||
], | ||
max_length=147, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.16 on 2023-12-14 07:32 | ||
|
||
from django.db import migrations | ||
import multiselectfield.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0035_alter_event_verification_body"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="event", | ||
name="verification_body", | ||
field=multiselectfield.db.fields.MultiSelectField( | ||
choices=[ | ||
( | ||
"Institute Cultural Council", | ||
"d920d898-0998-4ed9-8fb8-f270310b2bec", | ||
), | ||
( | ||
"ae084ebb-6009-4095-a774-44ad0f107bc0", | ||
"Institute Technical Council", | ||
), | ||
( | ||
"0aa10bcc-f08f-44c6-bf50-1ce9b5c2f0f0", | ||
"Institute Sports Council", | ||
), | ||
("6c43632e-de1f-4088-8e77-60af60139e91", "Hostel Affairs"), | ||
], | ||
max_length=137, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.16 on 2023-12-14 07:34 | ||
|
||
from django.db import migrations | ||
import multiselectfield.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0036_alter_event_verification_body"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="event", | ||
name="verification_body", | ||
field=multiselectfield.db.fields.MultiSelectField( | ||
choices=[ | ||
( | ||
"d920d898-0998-4ed9-8fb8-f270310b2bec", | ||
"Institute Cultural Council", | ||
), | ||
( | ||
"ae084ebb-6009-4095-a774-44ad0f107bc0", | ||
"Institute Technical Council", | ||
), | ||
( | ||
"0aa10bcc-f08f-44c6-bf50-1ce9b5c2f0f0", | ||
"Institute Sports Council", | ||
), | ||
("6c43632e-de1f-4088-8e77-60af60139e91", "Hostel Affairs"), | ||
], | ||
max_length=147, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.16 on 2023-12-14 10:06 | ||
|
||
from django.db import migrations | ||
import multiselectfield.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("events", "0037_alter_event_verification_body"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="event", | ||
name="verification_body", | ||
field=multiselectfield.db.fields.MultiSelectField( | ||
choices=[ | ||
( | ||
"91199c20-7488-41c5-9f6b-6f6c7c5b897d", | ||
"Institute Cultural Council", | ||
), | ||
( | ||
"81e05a1a-7fd1-45b5-84f6-074e52c0f085", | ||
"Institute Technical Council", | ||
), | ||
( | ||
"a9f81e69-fcc9-4fe3-b261-9e5e7a13f898", | ||
"Institute Sports Council", | ||
), | ||
("f3ae5230-4441-4586-81a8-bf75a2e47318", "Hostel Affairs"), | ||
], | ||
max_length=147, | ||
), | ||
), | ||
] |
Oops, something went wrong.