Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to query database and pass it to theplotly_app #498

Open
@jsulopzs

Description

@jsulopzs

Goal

I am trying to render a Dash app through a template that takes input from the view after calling the URL (that's how Django works).

The main problem I face is how to pass data through this logic.

Context

  • The database is a Redshift instance whose schema is mapped to a Django model
  • The user will access theirid_project dashboard when visitinghttps://website.com/dashapp/<id_project>

Implementation

I am considering two strategies:

  1. Query the database from the view through the model and cache it
  2. Get thedata.csv from an s3 paths3://domain.com/projects/<id_project>

With option 1, I am stuck on the concept of passing the data. All I have found online concerns the state, but I don't want to use the state because the full dataset of the id_project (~20MB) should be available during the session.

With option 2, I am stuck on passing the id_project from the view to the template captured within the Dash app.

Beyond solving these doubts, any new approaches are welcomed

Thanks in advance for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp