Skip to content

uptrace/django-realworld-example-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django real world app with Uptrace client

This is a fork which demonstrates how to instrument Django application using Uptrace and OpenTelemetry. To run this app:

pip install -r requirements.txt
UPTRACE_DSN="https://<token>@api.uptrace.dev/<project_id>" ./run.sh

Example Django DRF codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.

This repo is functionality complete — PR's and issues welcome!

Installation

  1. Clone this repository: git clone [email protected]:gothinkster/productionready-django-api.git.
  2. cd into conduit-django: cd productionready-django-api.
  3. Install pyenv.
  4. Install pyenv-virtualenv.
  5. Install Python 3.5.2: pyenv install 3.5.2.
  6. Create a new virtualenv called productionready: pyenv virtualenv 3.5.2 productionready.
  7. Set the local virtualenv to productionready: pyenv local productionready.
  8. Reload the pyenv environment: pyenv rehash.

If all went well then your command line prompt should now start with (productionready).

If your command line prompt does not start with (productionready) at this point, try running pyenv activate productionready or cd ../productionready-django-api.

If pyenv is still not working, visit us in the Thinkster Slack channel so we can help you out.

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%