Troubleshooting - ao994/FireFlightProject GitHub Wiki

Issues and Fixes:

Permission is denied to run remotely signed scripts (Windows Users Only)

  • Run the following command to be able to properly install the packages for project set-up: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser. This will make it so that the execution policy for scripts executed on your machine allows remotely signed scripts to be executed (which is not allowed by default). For more information on Windows execution policies, read here.

Map taking too long to load (longer than 2 minutes):

  • Currently, there is a known problem when sometimes generating a map containing Steller's Jay data (and possibly other bird species). This results in the page waiting forever to load the map, even when it has already been generated.
  • Fix: Go to the console window where you are running the website, and press any key. The map page should then finish loading.

Database Errors:

Is your SQL server running?

  • Does the Django user have the appropriate permissions to access it?

Did you do:

python manage.py makemigrations map_app

python manage.py migrate

After making changes to the database or models in Django?

Do you have your database registered in the DATABASES section of settings.py?

Populate Errors

Did you follow the proper syntax?

python manage.py populate <insert name of csv file>

Are the headers and data of the CSV in the proper format?

  • Note: If the official format has changed, the conditions populate checks for must be updated.

Map Generation Command Errors:

Does the data you are trying to use exist in the database?

Map Not Generating on Website:

Is the page still loading?

  • If it has been less than a minute or two, wait longer for it to load.

Are you connected to the internet?

  • This is necessary for loading in the basemap.

Library Not Being Recognized by Python:

Have you activated your virtual environment(venv)?

Did you run:

pip install -r requirements.txt

After getting the latest version of the code?

  • This is necessary to update your Python dependencies to the latest version.

Filtering Not Shown in Exported CSV:

Did you press the update button below the map before exporting the data?

settings.py Not Being Found:

Make sure there is copy of settings.py within the mysite folder.

⚠️ **GitHub.com Fallback** ⚠️