Category : django

I try to build a blog and this blog consist of posts and these posts have comments, When I add comment to the first post it adds succussfuly but when I try to add comment the second or third this error raise ValueError: The view videos.views.add_comment_post didn’t return an HttpResponse object. It returned None instead. ..

Read more

I am trying link my Django App (coupled with React-Js App) with my s3 bucket but despite the everything I have tried, something is still not working right. First, below is my settings.py; import os from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get("APP_SECRET_KEY") # SECURITY WARNING: don’t run with debug turned on in ..

Read more

i m working on django where i need to show more than one video in one page . can anyone help me how to stop autostart my videos in iframe. thank you and here is my code. <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" width="1280" height="720" src="/static/assets/img/examples/vi.mp4?&autoPlay=0" frameborder="0" &autoPlay="false"></iframe> </div> Source: Ask Javascript..

Read more