Jump to content

Shro

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Shro

  1. Hi all, need some coding help

    In my python file I have set the secret_key but whenever I tried to login into my website, it still gives the error of key not being set. I have tested the code locally and it works, not sure why it gives the error when I move the code to the live website.

    from flask import (
        Flask,
        request,
        jsonify,
        render_template,
        session,
        redirect,
        url_for,
        send_file,
    )
    import Account
    import os
    from flask_session import Session
    import secrets
    
    app = Flask(__name__)
    app.config['SECRET_KEY'] = secrets.token_hex(16)
    app.config["UPLOAD_FOLDER"] = "users/uploads"
    
    # Session configuration
    session_dir = os.path.join(os.getcwd(), "flask_session")
    app.config["SESSION_FILE_DIR"] = session_dir
    
    Session(app)

     

    Screenshot2024-02-10024933.thumb.png.44824caa3b1b6b8fef04e1bec5d6b19d.png 

  2. Hello!

    I have successfully donated $6 donation via BTC, please send me an invitation for the account creation. Thank you!

    Here are the details as follows:

    Currency used: BTC

    Transaction hash/ID: 056167f33d36adf5af145d5d63299bee6538596e2e747b972a557f0c6fab73ee

    Time of transaction: Nov 10, 2023 - 08:36:02 (UTC +8)

×
×
  • Create New...