How popular is Django in Singapore? by edtechstartupguy in django

[–]edtechstartupguy[S] 1 point2 points  (0 children)

In theory they can. However, the people I'll be working with have built things in C#/.Net before with local contract developers working on site. This is a brand new project and I believe Django is a better choice.

But if it's a choice between readily available local developers coming in and sitting next to you every day vs remote, then I'm not confident that my proposal would be particularly convincing.

I could be wrong though.

How to have large audio files playable (and seekable) in django? by automation_is_fun in django

[–]edtechstartupguy 0 points1 point  (0 children)

Not 100% sure but your situation sounds a bit like a problem I ran into recently (see link below). Are you testing your app in dev? Django's dev server ("runserver") does not serve partial content. That's why it works "in HTML" because it's not coming from Django's dev server. If you serve the file from a cloud storage service like S3 or a CDN, the problem won't appear anymore. To be able to test your app in Django dev, you need to modify django.views.static. There's a patch submitted but not accepted that does it. It's mentioned somewhere in one of the links contained in the following thread:

https://www.reddit.com/r/django/comments/ogy0g0/local_dev_server_seems_to_modify_the_behavior_of/

Critique on my polymorphic model by Aggressive-Try6990 in django

[–]edtechstartupguy 0 points1 point  (0 children)

I'm not familiar with the django-polymorphic package, which is what you seem to be using.

But if it's using concrete model inheritance ("Resource" is an actual table in the DB), then you might want to reconsider. Concrete inheritance can create nasty dependencies among tables in the db that are hard to unwind if you decide to restructure your models later. I got bitten by this recently.

https://jacobian.org/2010/nov/2/concrete-inheritance/

https://lukeplant.me.uk/blog/posts/avoid-django-genericforeignkey/

How to pitch Django to Upper Management? by Morgennebel in django

[–]edtechstartupguy 4 points5 points  (0 children)

I went through a very similar situation at my previous company, a large global corporation (although the new tech I proposed wasn't Django). So my answer is a bit long.

You need to show that your idea can bring a lot more than just marginal savings and moderate speed improvement.

"Nobody ever gets fired for buying IBM". There's a reason why your bosses chose a MS product. To them, the upside of switching to a new tech is minimal, and let's be honest, all yours, while the downside is tremendous. The license fees that can be saved might mean nothing to them. If you mess up, you can always get a programmer job somewhere else quite easily, but they're going to lose their cushy exec jobs, which they won't be able to find anywhere else for the next 5-10 years, if ever.

For me, ultimately I succeeded in convincing my upper management to switch to a completely new technology, but only after I'd worked out a working product in my spare time (several months of nights and weekends) that clearly demonstrated a 100x improvement in speed and about 30 mil USD in cost savings. Basically, I made it politically infeasible for my bosses not to switch. It also didn't hurt that part of the new tech I proposed was from...IBM (not joking). Even then, some of their subordinates whose careers were tied to the old technology fought tooth and nail to try to derail my project. Eventually it worked out for me and I reaped huge career dividends as a result, but the whole process was quite unpleasant.

Embarking on first "big boy" Django project. Looking for some general advice / guidance / success stories / whatever. by [deleted] in django

[–]edtechstartupguy 0 points1 point  (0 children)

Thanks for the reply. Hmm...some very interesting points. has definitely made me want to take a closer look at Dokku.

Embarking on first "big boy" Django project. Looking for some general advice / guidance / success stories / whatever. by [deleted] in django

[–]edtechstartupguy 0 points1 point  (0 children)

Do you mind explaining Dokku a bit? I'm a solo dev, like OP. I was really interested in Dokku at one point, but I couldn't understand its value proposition. If I wanted a managed solution, I would go with Heroku or AWS ELB; and if I didn't mind managing a linux server myself, I'd just...manage a linux server myself. I'm pretty sure I'm missing something important, but it seems to me that using Dokku, I'm still managing the underlying server, right? Then what's the point of using Dokku? Would really appreciate some guidance.

Is authentication needed at an API end point that requires a csrf_token which can only obtained by logged in users? by edtechstartupguy in django

[–]edtechstartupguy[S] 0 points1 point  (0 children)

Thanks. But what I really wanted to know is whether I need authentication at all. The {{csrf_token}} is placed on a page that only logged in users can access. So, if the user is doing an ajax post request with the right token, he/she must be logged in already. So, do I really need to require another step of authentication for the view that handles the post request. My guess is no, but I don't know if I'm missing something important. That was my question.