MCPcopy Index your code
hub / github.com/codingforentrepreneurs/Try-Django-3.2

github.com/codingforentrepreneurs/Try-Django-3.2 @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
497 symbols 1,430 edges 92 files 3 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Try Django 3.2 Logo

Try Django 3.2

Learn the fundamentals behind one of the most popular web frameworks in the world by building a real project.

Learn the fundamentals behind one of the most popular web frameworks in the world by building a real project. Django has so many features that just work out of the box: user authentication, database management, html template rending, URL routing, form data validation, and so much more.

Django is a web-framework written in Python and runs the backend for many of the internet's most popular websites such as Instagram and Pinterest.

Reference code

Recommended Experience

Need help? Found a bug? Use discussions!

Deployment

Using doctl

  1. Reference Post - https://kirr.co/usaoez

  2. Sign up for DigitalOcean - https://do.co/cfe-youtube

  3. Install doctl - https://kirr.co/dxcc48

  4. Get API Token - https://kirr.co/7x8r90

  5. Install the new token with:

doctl auth init --context main

--context main is intensional here (it's used later).

  1. Clone Repo
git clone https://github.com/codingforentrepreneurs/Try-Django-3.2
  1. Change to your remote
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
  1. In .do/app.yaml update each instance of
git:
    branch: production-3
    repo_clone_url: https://github.com/codingforentrepreneurs/Try-Django-3.2.git

to

github:
    branch: production-3
    deploy_on_push: true
    repo: USERNAME/REPOSITORY
  1. Update ENV Secrets In .do/app.yaml, you'll see the envs that includes values with the type: SECRET. You must use a plain-text value when you create this app.

So change:

- key: DJANGO_SECRET_KEY
  scope: RUN_AND_BUILD_TIME
  type: SECRET
  value: EV[1:w8aaS/4qnhOJoLOQW4JnsmcjMQWF9Xfv:ZC08ZkUwFhkEzqXYlgtlwh260FWLbe6Zy+c0dqH4nyaqPFDKNF03wFs4D/51604nC0/xkOfDlHf+ldmkzyEsL68S]

To


- key: DJANGO_SECRET_KEY
  scope: RUN_AND_BUILD_TIME
  type: SECRET
  value: wmu@re-x%d-kql&kzs(wo7@t%icu6d@140e0w!!oh^3q_yaw)w
  • Create one-off secret keys with this guide

  • Create app with doctl New to doctl?

doctl apps create --spec .do/app.yaml --context main --format "ID"

This will give you an app ID as a response. Something like 78457d4e6-53c2-43e4-afd1-97e701e1ab81

After it's is complete, we need to replace .do/app.yaml to include the encypted keys reference:

  1. Get App Spec with doctl
doctl apps spec get 78457d4e6-53c2-43e4-afd1-97e701e1ab81 > .do/app.yaml  

The 78457d4e6-53c2-43e4-afd1-97e701e1ab81 is the id from the app created in step 10. Need to find the id? Use doctl apps list --format "Spec.Name, ID"

  1. Commit & Push your code It's very important that you do step 11 prior to commiting any app.yaml code. (It is not important if you do not have keys you'd like to hide)
git add .do/app.yaml
git commit -m "Updated app.yaml SECRET keys"
git push origin main

Core symbols most depended-on inside this repo

pending
called by 8
meals/models.py
save
called by 8
recipes/models.py
by_user_id
called by 7
meals/models.py
save
called by 6
articles/models.py
get_queryset
called by 4
meals/models.py
search
called by 4
articles/models.py
toggle_in_queue
called by 3
meals/models.py
number_str_to_float
called by 3
recipes/utils.py

Shape

Method 283
Function 116
Class 98

Languages

TypeScript67%
Python33%

Modules by API surface

static/js/bootstrap.bundle.min.js331 symbols
recipes/models.py23 symbols
meals/models.py17 symbols
recipes/tests.py16 symbols
articles/models.py11 symbols
recipes/views.py9 symbols
articles/tests.py9 symbols
recipes/forms.py7 symbols
meals/tests.py6 symbols
articles/forms.py5 symbols
recipes/utils.py3 symbols
recipes/extract_example.py3 symbols

For agents

$ claude mcp add Try-Django-3.2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page