Git Product home page Git Product logo

Comments (6)

samanyougarg avatar samanyougarg commented on August 24, 2024 1

Hi @redraushan,

Thank you for letting me know.

Please add the following to your config.env file -
SECRET_KEY=Your_Secret_Key
FLASK_ENV=development

This will run the server in dev mode.

from bhagavadgita.

samanyougarg avatar samanyougarg commented on August 24, 2024 1

You can use any string as your secret key.

from bhagavadgita.

samanyougarg avatar samanyougarg commented on August 24, 2024

Hi @redraushan,

I really appreciate your enthusiasm to the project and am sorry for the delay. Please find the updated instructions below.

  1. Fork this repository and clone the forked repository.
  2. Create and activate a Python 3 virtualenv.
  3. Use pip install -r requirements.txt to install the requirements.
  4. python manage.py runserver to start the server.
  5. Create an environment file config.env. Please email [email protected] for the credentials of the file.
  6. API can be accessed at http://127.0.0.1:5000/api/v1 and frontend can be accessed at http://127.0.0.1:5000.

Please let me know if you face any problems.

from bhagavadgita.

redraushan avatar redraushan commented on August 24, 2024

Hi @samanyougarg,

Thanks for the help :), I am able to start the project, however the command python manage.py runserver is running the project in production mode, do we have any way to start the server in development mode?

Please find the logs below:

C:\code\BhagavadGita>python manage.py runserver
Importing environment from .env file
SECRET KEY ENV VAR NOT SET! SHOULD NOT SEE IN PRODUCTION
THIS APP IS IN DEBUG MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.
RadhaKrishnaHanuman
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Restarting with stat

from bhagavadgita.

redraushan avatar redraushan commented on August 24, 2024

Hi @redraushan,

Thank you for letting me know.

Please add the following to your config.env file -
SECRET_KEY=Your_Secret_Key
FLASK_ENV=development

This will run the server in dev mode.

Which SECRET_KEY we would need to use for development environment?

from bhagavadgita.

redraushan avatar redraushan commented on August 24, 2024

Thanks @samanyougarg for your support, I believe we can close the issue now.

from bhagavadgita.

Related Issues (18)

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.