How vansh16-code/inkpersona works
InkPersona is a Django app for writers to create fictional-character profiles and interview them for story inspiration. The main workflow routes a browser request to a view, which validates profile or question input, loads or saves character data, and renders the relevant page; interview answers are generated by an external LLaMA-compatible API. The README also describes responsive UI and writer assistance. The view, form, model, URL, settings, and AI relationships are shown in sampled source; template behavior is inferred from view render calls, and unsampled page details are not expanded.
Main entry points: views.py Request handlers · models.py Character profile · InkPersona/urls.py Project routes · interview/urls.py Interview routes
Components 11
Web entry
- Project routes
InkPersona/urls.py - Interview routes
interview/urls.py
Character workflow
- Request handlers
interview/views.py - Profile form
interview/forms.py - Question form
interview/forms.py - Character profile
interview/models.py
AI responses
- Response generator
interview/llama.py - Together API
Presentation and state
- Web pages
interview/templates - SQLite database
Other components
- Writer
Connections 11
- Writer → Project routes: uses app
README.md - Project routes → Interview routes: includes routes
InkPersona/urls.py - Interview routes → Request handlers: routes requests
interview/urls.py - Request handlers → Profile form: validates profiles
interview/views.py - Request handlers → Question form: validates questions
interview/views.py - Profile form → Character profile: saves profile
interview/forms.py - Request handlers → Character profile: loads profiles
interview/views.py - Request handlers → Response generator: requests answer
interview/views.py - Response generator → Together API: calls completions
interview/llama.py - Request handlers → Web pages: renders pages
interview/views.py - Character profile → SQLite database: persists through ORM