yashwanth-javvaji / intrusion-detection-system

This project is a network intrusion detector that uses machine learning algorithms to distinguish between bad (intrusions/attacks) and good (normal) connections. The UI is built using Flask framework and the KDD Cup 1999 dataset is used for training. Python, Flask, and Scikit-learn are the main technologies used in this project.
2 stars 2 forks source link

Can please help me out with the db connection. Thank in advance. #2

Closed IMMORTALCHIRU closed 4 months ago

IMMORTALCHIRU commented 4 months ago
File "app.py", line 8, in <module>
    app = create_app()
  File "C:\Users\chiru\OneDrive\Desktop\Intrusion-Detection-main\website\__init__.py", line 9, in create_app
    app.config.from_object("config.DevelopmentConfig")
  File "C:\Users\chiru\OneDrive\Desktop\Intrusion-Detection-main\.venv\lib\site-packages\flask\config.py", line 161, in from_object
    obj = import_string(obj)
  File "C:\Users\chiru\OneDrive\Desktop\Intrusion-Detection-main\.venv\lib\site-packages\werkzeug\utils.py", line 865, in import_string
    __import__(import_name)
  File "C:\Users\chiru\OneDrive\Desktop\Intrusion-Detection-main\config.py", line 3, in <module>
    class Config(object):
  File "C:\Users\chiru\OneDrive\Desktop\Intrusion-Detection-main\config.py", line 8, in Config
    raise ValueError("No DATABASE_URL set for SQLAlchemy database")
ValueError: No DATABASE_URL set for SQLAlchemy database

Please help me with the database connectivity, even after setting the env I'm not able to connect it. Please help me!!