SebastianM6L, to jenkins
@SebastianM6L@mastodon.social avatar

Anyone had an issue with from django.test import Client causing a high memory usage in a docker container?

I run the tests in a pipeline using a agent in .

When this test runs:

def test_login_user(self):  
 c = Client()  
 response = c.post('/user/login/', {'email': 'test1@test.de', 'password': 'test123'})  
self.assertEqual(response.status_code, 302)  

The memory usage goes thru the roof. Literally using up all memory until it crashes.

jack, to django
@jack@social.jacklinke.com avatar

I finally got around to upgrading my main project from Django 4.2 to Django 5.

I allocated several hours this evening for the arduous process of making sure I got everything right, and before I got started I figured I'd give django-upgrade (by @adamchainz) a try this time around.

No more than 15 minutes later my project was running on Django 5, tested good, and pushed to production.

Wait, what?!?! 😲

Super impressed with how easy django-upgrade made it ❤️

https://pypi.org/project/django-upgrade/

dlesieur, to python
@dlesieur@fosstodon.org avatar

Hello! I'm David, an experienced builder of web applications and information systems primarily for the scientific research sector.

I enjoy the challenge of complex problems, which I strive to solve with simple and elegant solutions, placing the end user at the core of my analyses.

I have many interests in life, but on Mastodon I will primarily focus on topics related to my work, such as , , , , , , , .

erinc, to python
@erinc@mastodon.social avatar

After an 8-year break from web development, I evaluated modern tech stacks to build my personal projects in 2024. This post chronicles my journey in selecting the perfect combination of backend, frontend, database, and hosting.

https://erinc.ca/tech-stack-2024

jack, to django
@jack@social.jacklinke.com avatar

I have a custom django model field in an installable standalone app.

This app has a migration file that creates a new composite type in a postgres db (if it doesn't already exist). Users installing the app shouldn't have to manually run this migration.

Anyone know how I tell django's migrations autodetector that if another app's model uses my custom model field and we generate migrations model, it needs to add a dependency to the migration associated with the custom field? 🤔

SebastianM6L, to django
@SebastianM6L@mastodon.social avatar

Why isn't

Model.objects.get_or_none()

a thing in ?

That would save some boilerplate code or am I wrong?

Because if there is a chance that there is no entry for the query get()will raise a DoesNotExist exception that you have to catch.

get_or_none()would be cleaner in my opinion.

chipx86, to Discord
@chipx86@mastodon.online avatar

Hey, developers: The @reviewboard team's starting a new for devs to hang out, chat, and share what you're building.

https://discord.gg/saMCqHEZ

We have channels for , , / , , , and more.

You don't need to use or contribute to Review Board to hang out. (But you can follow development there, if you want.)

We hope to see people come in and hang out. The aim is a friendly, diverse community of devs.

Feel free to pass along the invite!

webology, to django
@webology@mastodon.social avatar

Hey + friends, @vossisboss and I are running a Django open space today from 2 pm to 3 pm in Room 309. Come see us.

ThePSF, to python
@ThePSF@fosstodon.org avatar

Enormous news! the Python Software Foundation now has a 5 year commitment with Fastly to deliver @pypi, us.pycon.org, and much more. We appreciate you and your continued investment in the #python community, Fastly! #PyConUS

markush,
@markush@chaos.social avatar

I'm taking the time to also thank @devs for their continued support of the @django project! #Fastly #Django

adamchainz, to django
@adamchainz@fosstodon.org avatar

I’m helping a client upgrade to django-import-export v4, and I gotta say I’m enjoying the clarity of the release notes. Every breaking change spelled out, with PR links. Thank you Matt :)

https://django-import-export.readthedocs.io/en/stable/release_notes.html

SebastianM6L, to django
@SebastianM6L@mastodon.social avatar

what is the preferred way of creating data ingestion pipelines in ?

I have a few systems where I need to invest the data from an curious what ways are preferred or considered as good vs mine 🤣

mahryekuh, to python
@mahryekuh@fosstodon.org avatar

PyGrunn, the Python and Friends conference is back tomorrow! After forgetting to RFP last year, I am happy to be back on the stage tomorrow.

The title of my talk is: "My path to becoming a Django contributor" (also suited for those who do not use Django).

Fun fact: I will be presenting at 10:15 in Camera 1, the same time and place as two years ago.

Who will I see there?

https://schedule.pygrunn.org/

mahryekuh, to django
@mahryekuh@fosstodon.org avatar

As promised by last Tuesday (woops), here is my latest article:

"What people wish they knew before becoming involved in OSS"

https://marijkeluttekes.dev/blog/articles/2024/05/16/what-people-wish-they-knew-before-becoming-involved-in-oss/

Inspired by research for my presentation for tomorrow.

Edit: I removed the follow-up source toots because they mucked up the timeline, and they're also boosted or linked in the article.

mblayman, to django
@mblayman@mastodon.social avatar

🌎 A vital aspect of web applications are the URLs that users visit. From this article, you'll come to understand how #Django handles URLs when building a web app. https://www.mattlayman.com/understand-django/urls-lead-way/

badrihippo, to webdev
@badrihippo@fosstodon.org avatar

Using other frameworks is when I realise that (and ) actually had a really powerful and advanced form validation system

mblayman, to django
@mblayman@mastodon.social avatar

📋 Users send data to a website with HTML forms. Come learn how #Django makes your life easier with its built-in forms tools! https://djangoriffs.com/episodes/how-to-use-forms

danjac, to django
@danjac@masto.ai avatar

I keep writing "quertyset" instead of "queryset" when writing , like I'm just hitting the first 5 keys of my laptop each time

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

📣 Common Django Project structures - Part 3
📄 A very simple setup, useful for demos or very simple prototypes
🔗 https://softwarecrafts.co.uk/100-words/day-91
,,

wagtail, to django
@wagtail@fosstodon.org avatar

Coming to US? We're going to be there! Core team members @vossisboss and Scott Cranfill will be teaching a workshop on May 15 about making websites more accessible. There will be a poster from @vincesalvino and @thibaudcolas too. Come check it out!

We're working on organizing a Wagtail Open Space as well, so stay tuned here for the location and time! We'll let you know as soon as we sign up for a space.

circumeo, to django
@circumeo@mastodon.social avatar

Trying to upload a directory and use webkitRelativePath to preserve the local path in a app, and it seems like that might not be so easy.

I've tried a custom upload handler, but even there, Django seems to have already stripped the path.

oliverandrich, to django
@oliverandrich@fosstodon.org avatar
oliver, to django German
@oliver@2pxnl.de avatar
leonid, to python German
@leonid@norden.social avatar

djangoproject.com is down :omya_python:

SebastianM6L, to django
@SebastianM6L@mastodon.social avatar

Any cracks here who can explain me why when I run my tests with the django built in manage.py test (runs unittest) I have 51 tests run.

When I run them with pytest It will only run 38 tests.

hamub, to fediverse
@hamub@fosstodon.org avatar

Hey friends on the !
It's been 6 years since our last, beloved PyCon Zimbabwe took place. brought us together. It was a time for connecting, sharing, & learning. Now, after years of silence, it's coming back!
We're a community-driven event, & like before we need your help to make it a success. We're calling on all of you to join us in this endeavor. Whether you can offer your time, resources, or just a share on your networks, every bit counts!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • Leos
  • osvaldo12
  • cisconetworking
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • provamag3
  • normalnudes
  • tester
  • JUstTest
  • All magazines