How leonardo-1721/proyecto-programacion works
This Django application supports an animal-adoption service: visitors browse available pets and submit adoption requests; administrators authenticate, maintain the pet inventory, and decide requests. Views handle those workflows and call flat-file storage, which keeps pet and request records in text files and synchronizes related statuses. The URL configuration establishes routing, while templates provide the presentation layer. The README is empty, and several view and storage excerpts are incomplete, so the graph omits unverified links and capabilities beyond those visible in the routes and sampled code.
Main entry points: views.py Request views · storage.py File storage · urls.py URL routes · templates Page templates
Components 13
Web entry and presentation
- URL routes
myapp/urls.py - Request views
myapp/views.py - Page templates
templates
Public adoption
- Pet discovery
myapp/views.py - Adoption request
myapp/views.py
Administration
- Admin login
myapp/views.py - Pet management
myapp/views.py - Request decisions
myapp/views.py
Flat-file records
- File storage
myapp/storage.py - Pet records
data/mascotas.txt - Adoption records
data/solicitudes.txt
Other components
- Visitor
- Administrator
Connections 12
- Visitor → URL routes: opens pages
myapp/urls.py - Administrator → URL routes: opens admin
myapp/urls.py - URL routes → Request views: routes requests
myapp/urls.py - Request views → Pet discovery: handles browsing
myapp/views.py - Request views → Adoption request: handles submissions
myapp/views.py - Request views → Admin login: handles login
myapp/views.py - Request views → Pet management: handles inventory
myapp/urls.py - Request views → Request decisions: handles decisions
myapp/urls.py - Request views → File storage: calls storage
myapp/views.py - File storage → Pet records: reads and writes
myapp/storage.py - File storage → Adoption records: reads and writes
myapp/storage.py - Request views → Page templates: renders detail
myapp/views.py