Django

513 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
 
 

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

128
129
10
Django LiveView (django-liveview.andros.dev)
submitted 1 year ago by [email protected] to c/[email protected]
 
 

Framework for creating Realtime SPAs using HTML over the Wire technology

130
 
 

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

131
 
 

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

132
133
134
7
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Most approaches to using webpack with Django work until the JavaScript app is tiny. What happens when the bundle grows?

135
136
137
4
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

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

138
139
140
141
142
143
5
SQLALchemy vs Django ORM (st4lk.github.io)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
144
145
146
147
 
 

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
148
 
 

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

149
150
2
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

Async Python can be useful in the right situation, but one of the tricky things about it is that it requires a bit more effort to run than normal synchronous Python, because you need an async event loop that can run and manage all your async functions.

view more: ‹ prev next ›