Skip to content

Commit

Permalink
example imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
lxaw committed Aug 14, 2022
1 parent b9121db commit 555441f
Show file tree
Hide file tree
Showing 159 changed files with 12 additions and 2 deletions.
Binary file added communities/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added communities/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added communities/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added communities/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added communities/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added communities/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added communities/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 8 additions & 1 deletion communities/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
from .forms import PostForm, CommentForm
from newsfeed.forms import HelpRequestForm

# note! (08/14/22)
# rqeuest.is_ajax has recently be depreciated.
# since this is an archive, here is a new function to replace it.
def is_ajax(request):
return request.META.get('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest'


@login_required
def viewIndex(request,page=1):
###################################
Expand Down Expand Up @@ -74,7 +81,7 @@ def viewIndex(request,page=1):
}
# NOTE!
# request.is_ajax() is depreciated in newer versions of django
if request.is_ajax():
if is_ajax(request):
posts_html = render_to_string(
"communities/t/posts.html",
{'qsPosts':qsPosts}
Expand Down
Binary file added core/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/base_functions.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added core/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified db.sqlite3
Binary file not shown.
Binary file added example_imgs/comments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example_imgs/direct_message.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example_imgs/help_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example_imgs/home_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example_imgs/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fitness/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added fitness/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added fitness/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added fitness/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added fitness/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added fitness/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added food/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added food/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added food/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added food/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added food/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added food/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added food/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added food/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added newsfeed/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added newsfeed/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added newsfeed/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added newsfeed/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added newsfeed/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added newsfeed/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added newsfeed/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 4 additions & 1 deletion newsfeed/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
############################
from newsfeed.common_functions import CommonFunctions

def is_ajax(request):
return request.META.get('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest'

@login_required
def viewIndex(request,page=1):
###################################
Expand Down Expand Up @@ -95,7 +98,7 @@ def viewIndex(request,page=1):
"page":page,
}

if request.is_ajax():
if is_ajax(request):
help_requests_html = render_to_string(
"newsfeed/t/index_help_requests.html",
{"qsUnfilledHelpRequests":qsUnfilledHelpRequests}
Expand Down
Binary file added podcasts/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added podcasts/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added podcasts/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added podcasts/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added podcasts/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added podcasts/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added socialPOD_project/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added users/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 555441f

Please sign in to comment.