Shared dependencies across the files include:
-
Data Models: The Django models
CrewMember
,Cert
,Qualification
,Ship
,Positions
,Assignment
, andShipCrewAllowance
are shared across the models.py, views.py, and admin.py files. They are also used in the templates for rendering data. -
Function Names: The function
assignCrewToShips
is a core feature of the application and will be used in views.py and potentially in scripts.js for AJAX calls. -
URL Names: URL names defined in urls.py are used in views.py for redirecting and in templates for creating links.
-
Message Names: The message names "CREW_FETCH_SUCCESS", "SHIP_FETCH_SUCCESS", "ASSIGNMENT_SUCCESS", and "ASSIGNMENT_FAILURE" are used in views.py to display messages and in templates to render these messages.
-
DOM Element IDs: The templates will contain various DOM elements with unique IDs that JavaScript functions in scripts.js will use for interactivity. These IDs are shared between the HTML templates and the JavaScript file.
-
CSS Classes: CSS classes defined in styles.css are used in the HTML templates for styling.
-
Settings: The settings defined in settings.py are used across the application, including in manage.py, wsgi.py, and asgi.py.
-
Requirements: The requirements defined in requirements.txt are used for setting up the environment for the Django application.
-
Instructions: The instructions defined in instructions.txt are used for deploying the app.
-
Tests: The tests defined in tests.py are used for testing the models, views, and other functionalities of the app.