hamzaavvan / library-management-system

A simple library management system built on python web framework flask
137 stars 133 forks source link

how can i change your project to debug mode? #1

Open sjlee3573 opened 2 years ago

sjlee3573 commented 2 years ago

how can i change your project to debug mode?

hamzaavvan commented 2 years ago

You can enable debugging through the command line within the project directory using environment variables.

Bash:


$ export FLASK_ENV=development

$ export FLASK_DEBUG = True

Cmd:


> set FLASK_ENV=development

> set FLASK_DEBUG = True

Powershell:


> $env:FLASK_ENV = "development"

> $env:FLASK_DEBUG = True

On Sun, Mar 20, 2022, 6:51 AM sjlee3573 @.***> wrote:

how can i change your project to debug mode?

— Reply to this email directly, view it on GitHub https://github.com/hamzaavvan/library-management-system/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNY3ROTBQQP6T3Y624VMEDVA2ADLANCNFSM5REZRFXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

sjlee3573 commented 2 years ago

Thank you for your answer :) problem solved Thanks again !!:)

hamzaavvan commented 10 months ago

Please close this issue if it's solved. I've no longer access to this account.

On Sun, Mar 20, 2022 at 2:18 PM sjlee3573 @.***> wrote:

Thank you for your answer :) I have tried your soloution however not working :( i'm running your source core using Mac OS and VSCODE python virtual environment ########################################### (venv) library-management-system-master % set FLASK_APP=app.py (venv) library-management-system-master % set FLASk_ENV=development (venv) library-management-system-master % set FLASK_DEBUG = True (venv) library-management-system-master % flask run

  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) ###################################################

— Reply to this email directly, view it on GitHub https://github.com/hamzaavvan/library-management-system/issues/1#issuecomment-1073207809, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNY3RMJZUA236FADFWEMBDVA3UMVANCNFSM5REZRFXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>