Django

519 readers
1 users here now

Django Project

Django Community

Django Ecosystem

Jobs
Learning/Docs
Podcasts:
Related Fediverse communities
Feeds

founded 2 years ago
MODERATORS
126
127
128
 
 

Hi all,

Very new to django, after building a few sites with flask.

I haven't chosen my frontend, but am considering a classic bulma, bootstrap or similar front end using classic templates.

My question is, is there a standard/ preferred way to implement a shortcut key to search input box workflow?

For example, user presses / key, and cursor goes to search input, so they can start searching.

Thanks so much

129
130
10
Django LiveView (django-liveview.andros.dev)
 
 

Framework for creating Realtime SPAs using HTML over the Wire technology

131
 
 

FWIW, I'm also adding the newer Built With Django (as mentioned in the article) to the sidebar.

132
 
 

Only tangentially related to Django, but still an interesting article about tooling.

133
134
135
136
137
138
2
submitted 2 years ago* (last edited 2 years ago) by jsalvador@programming.dev to c/django@programming.dev
 
 

Thinking about replacing the current logo of the community by one which fits more into Lemmy's profile picture size. Purposing this image.

UPDATE

Polished version

139
140
141
142
143
144
3
SQLALchemy vs Django ORM (st4lk.github.io)
submitted 2 years ago* (last edited 2 years ago) by norambna@programming.dev to c/django@programming.dev
145
146
147
148
 
 

Summary

  • The number of workers for Gunicorn, Uvicorn and Hypercorn should be CPU * 2 + 1
  • The number of threads for WSGI apps should be WORKERS * 2 as a minimum unless you don’t have a lot of memory. If you have more memory you can increase this number
  • The number of threads for ASGI apps is irrelevant because it uses coroutines to dispatch requests
  • ASGI can be faster and scale better than WSGI but only if you’ve written your application as async from the framework to the backend
  • Test your setup using Locust or a similar tool to verify these assumptions
  • Don’t forget about modelling static content in your load tests
149
 
 

I gave this talk at PyCascades 2021 and decided to turn it into a series of blog posts so it's available to folks who didn't attend the conference or don't like to watch videos. Here are the slides and the video if you want to see them.

Part 2: Customizing built-in methods https://www.laceyhenschel.com/blog/2021/2/23/what-you-should-know-about-drf-part-2-customizing-built-in-methods
Part 3: Adding custom endpoints https://www.laceyhenschel.com/blog/2021/2/23/what-you-should-know-about-django-rest-framework-part-3-adding-custom-endpoints

via https://botsin.space/@pyladies_bot/111651150685335427

150
view more: ‹ prev next ›