-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asynchronous Notification #2388
Open
HanilJain
wants to merge
34
commits into
OWASP-BLT:main
Choose a base branch
from
HanilJain:async_project
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
b923859
commit 1
HanilJain 4a2a6dc
commit 2
HanilJain d1c914e
commit
HanilJain 3ecfeaf
notification working
HanilJain e725cf1
redis removed
HanilJain 5dfd532
mem channel added
HanilJain cee5e5a
Merge branch 'main' into async_project
HanilJain 589d25c
poetry update
HanilJain d7e3ed6
shifted to website app
HanilJain fa53157
pre-commit
HanilJain be388dd
Merge branch 'main' into async_project
DonnieBLT df73ca7
Apply suggestions from code review
HanilJain 4920eff
Merge branch 'main' into async_project
HanilJain 0dbfb52
Merge branch 'main' into async_project
HanilJain 585b69f
comments revoked
HanilJain dbf2162
Merge branch 'async_project' of https://github.com/HanilJain/BLT into…
HanilJain da192ae
Merge branch 'main' into async_project
HanilJain 74065bd
Merge branch 'main' into async_project
HanilJain 5f3caab
Merge branch 'main' into async_project
HanilJain 10d4857
Merge branch 'main' into async_project
HanilJain 50103d4
Merge branch 'main' into async_project
HanilJain 02161d5
Merge branch 'main' into async_project
HanilJain 51aff8c
upgrade
HanilJain fdd96da
dep removed 1
HanilJain 8463320
pusher integrates
HanilJain 48b5a48
pusher added
HanilJain 3896e16
Merge branch 'main' into async_project
HanilJain 7cdc3c1
pusher removed
HanilJain 210f1fe
Merge branch 'async_project' of https://github.com/HanilJain/BLT into…
HanilJain 74376f4
updating requirements.txt
HanilJain 95008bb
restore .gitignore
HanilJain ea7ed9e
update requirements.txt
HanilJain ef0e6c8
removed vagrant
HanilJain c5adccd
Merge branch 'main' into async_project
HanilJain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,28 @@ | ||
""" | ||
ASGI config for channels_celery_project project. | ||
|
||
It exposes the ASGI callable as a module-level variable named ``application``. | ||
|
||
For more information on this file, see | ||
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ | ||
""" | ||
|
||
import os | ||
|
||
import django | ||
|
||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blt.settings") | ||
django.setup() | ||
|
||
from channels.auth import AuthMiddlewareStack | ||
from channels.routing import ProtocolTypeRouter, URLRouter | ||
from django.core.asgi import get_asgi_application | ||
|
||
from website.routing import websocket_urlpatterns | ||
|
||
application = ProtocolTypeRouter( | ||
{ | ||
"http": get_asgi_application(), | ||
"websocket": AuthMiddlewareStack(URLRouter(websocket_urlpatterns)), | ||
} | ||
) |
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 |
---|---|---|
|
@@ -67,6 +67,7 @@ | |
# Application definition | ||
|
||
INSTALLED_APPS = ( | ||
"daphne", | ||
"django.contrib.admin", | ||
"django.contrib.auth", | ||
"django.contrib.contenttypes", | ||
|
@@ -197,6 +198,15 @@ | |
|
||
WSGI_APPLICATION = "blt.wsgi.application" | ||
|
||
ASGI_APPLICATION = "blt.asgi.application" | ||
|
||
CHANNEL_LAYERS = { | ||
"default": { | ||
"BACKEND": "channels.layers.InMemoryChannelLayer", | ||
}, | ||
} | ||
|
||
|
||
# Database | ||
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases | ||
|
||
|
@@ -317,6 +327,7 @@ | |
"0.0.0.0", | ||
"blt.owasp.org", | ||
"." + DOMAIN_NAME_PREVIOUS, | ||
"blt.onrender.com", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need this |
||
] | ||
|
||
# Static files (CSS, JavaScript, Images) | ||
|
@@ -511,11 +522,17 @@ | |
|
||
|
||
BEARER_TOKEN = os.environ.get("BEARER_TOKEN") | ||
APP_KEY = os.environ.get("APP_KEY") | ||
APP_KEY_SECRET = os.environ.get("APP_KEY_SECRET") | ||
ACCESS_TOKEN = os.environ.get("ACCESS_TOKEN") | ||
ACCESS_TOKEN_SECRET = os.environ.get("ACCESS_TOKEN_SECRET") | ||
# BEARER_TOKEN = os.environ.get("BEARER_TOKEN") | ||
# APP_KEY = os.environ.get("APP_KEY") | ||
# APP_KEY_SECRET = os.environ.get("APP_KEY_SECRET") | ||
# ACCESS_TOKEN = os.environ.get("ACCESS_TOKEN") | ||
# ACCESS_TOKEN_SECRET = os.environ.get("ACCESS_TOKEN_SECRET") | ||
HanilJain marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
BEARER_TOKEN = "AAAAAAAAAAAAAAAAAAAAACY4swEAAAAACCwbesyUMRhqJcZ5IQKJ%2FeAWpYY%3DWhxvFboQKFlJtKIJ1WWlL2fWYzKSfF383NMBsgRFTg9h8Y5jBF" | ||
APP_KEY = "hBSe9kWzsWvrZTjbm5326j9TE" | ||
APP_KEY_SECRET = "mbHK5fNCkIppsO8ErswLzGDXMdRS74XltkHmnFF2WXtxB60AIE" | ||
ACCESS_TOKEN = "1562852714412793857-CHEfVrO4shDhoWJOsBNCN7Z0d0d3Kw" | ||
ACCESS_TOKEN_SECRET = "jKfqv8FaIuYcyYdy6jdGprh2WHJtonR4ziHgETkC81hYq" | ||
HanilJain marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# USPTO | ||
|
||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this