Coder Social home page Coder Social logo

Flask Secret key about groceri.es HOT 4 CLOSED

juriansluiman avatar juriansluiman commented on June 13, 2024
Flask Secret key

from groceri.es.

Comments (4)

nickcj931 avatar nickcj931 commented on June 13, 2024 1

Im clearly being stupid then haha thanks for putting me straight @Igor-Felipy !!

from groceri.es.

Igor-Felipy avatar Igor-Felipy commented on June 13, 2024

You can define the secret key using:
app.config['SECRET_KEY'] = 'Your Secret Key'
or if you are using a config.py you just need put this line in the file:
SECRET_KEY = 'Your Secret Key'

from groceri.es.

nickcj931 avatar nickcj931 commented on June 13, 2024

@Igor-Felipy thanks for the response. I am still rather confused, and it might be me being thick!

I dont understand where you get the 'Your Secret Key' from. How do you generate this?

from groceri.es.

Igor-Felipy avatar Igor-Felipy commented on June 13, 2024

You can replace "Your Secret Key" for any word or phrase that you want, here: https://randomkeygen.com/ you can generate random keys for you application.
I made this application https://github.com/Igor-Felipy/Billy_Social-Network/blob/master/config.py and you can see how I implemented the secret_key.

from groceri.es.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.