Skip to content

It is a Crime data Analysis Project utilizing raw data to analyze and show crime statistics within the town.

Notifications You must be signed in to change notification settings

prath0m/Crime-Data-Analysis-and-Visualization

Repository files navigation

Crime-Data-Analysis-and-Visualization

Installation

  1. Clone the Repository:

    git clone https://github.com/your-username/your-django-project.git

    Replace your-username with your GitHub username and your-django-project with the name of your Django project repository.

  2. Navigate to Project Directory:

    cd your-django-project
  3. Install Python: Make sure you have Python installed on your system. You can download it from here.

  4. Create Virtual Environment (optional but recommended):

    python -m venv env
  5. Activate Virtual Environment (if created):

    • On Windows:
      .\env\Scripts\activate
    • On macOS and Linux:
      source env/bin/activate
  6. Install Requirements:

    pip install -r requirements.txt

Configuration

  1. Database Configuration:

    • Open settings.py in your project directory.
    • Update the DATABASES setting according to your database configuration.
  2. Static Files Configuration (Optional):

    • If you are serving static files (CSS, JavaScript, images) in production, make sure to configure the STATIC_URL and STATIC_ROOT settings in settings.py.

Running the Project

  1. Migrate Database:

    python manage.py migrate
  2. Create Superuser (Optional):

    • If you need an admin user, you can create one using the following command:
      python manage.py createsuperuser
  3. Run Development Server:

    python manage.py runserver
  4. Access the Project:

  5. Access Admin Interface:

Additional Notes

  • Make sure to keep your SECRET_KEY secret, especially in production.
  • Refer to the Django documentation for more advanced configurations and features.

Now, you should be all set to start working with the Django project! If you encounter any issues or have questions, feel free to reach out or consult the Django documentation. Happy coding!

About

It is a Crime data Analysis Project utilizing raw data to analyze and show crime statistics within the town.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published