Earlier quoted context omitted.
You have to install software for software to run on your computer?!?
You have to install extra software that should’ve been part of std, big difference.
What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
51–60 of 63 posts
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#52Earlier quoted context omitted.
> This is one of the core criticisms of Django and python web backends. No it's not. Please cite reputable sources.
One does not need to cite a source of criticism, it is in itself the criticism.
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#53Earlier quoted context omitted.
> This is one of the core criticisms of Django and python web backends. No it's not. Please cite reputable sources.
One does not need to cite a source of criticism, it is in itself the criticism.
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#54What I love about Django is that you can create a Django project with just one file. You can turn a fresh Debian machine into a running Django web app by just doing: apt install -y python3-django apache2 libapache2-mod-wsgi-py3 And then creating the one file Django needs: /var/www/mysite/mysite/wsgi.py: import os import django from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MO…
Blown away this is possible. When I was starting to learn to code and was overwhelmed when learning all the bits and pieces of rails, I wondered if everything necessary to run a very small app could be placed in a single file. I guess this is the answer, but in python/django instead of ruby/rails. It would be a fun exercise in ruby/rails too (not totally sure if it's possible, but suspect it may be, albeit probably r…
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#55Earlier quoted context omitted.
Not mandatory, you could remove that
Cool. What would be the steps from a fresh Debian to get it running and see it in action?
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#56Earlier quoted context omitted.
I suspect that people come to the conclusion that Django has performance issues by looking at synthetic benchmark rankings between frameworks. In that sense it may or may not be relatively slow, but it is probably fast-enough for almost all web services in-practice. And if you measure with all of the speediest HTTP interfaces and find out it isn't fast-enough, then frankly Python is probably not the right choice at a…
I've never heard of anybody complaining about Django per se having performance issues. When people say Django is "heavy weight," I tend to think of how it bundles a lot of stuff for you, which can make it easy to build an app; while, at the same time, if you end up deciding you want to step slightly off the garden path and do things juussssst a little differently than Django wants you to, you're probably gonna have a…
Yep! I am using Flask + SQLAlchemy so I can have an orchestration layer that handles all the business logic, and just takes in my Flask app, Celery app, and database sessions as dependencies. I don't know if there's an equivalent way to do that in Django. If there is, it seems like it would be more trouble than it is worth.
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#57Earlier quoted context omitted.
One does not need to cite a source of criticism, it is in itself the criticism.
The burden of proof is on the person making the empirically unfalsifiable claims.
Many share my opinion, and I don't have to prove that. Nor should I, and neither do you for any position you have. Address the argument.
Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#58Earlier quoted context omitted.
Cool. What would be the steps from a fresh Debian to get it running and see it in action?
Not sure debian has (a modern) ruby installed by default, but I think you only need to have a working ruby installation and running the script. On a sidenote, this came out recently and could interest you https://dashbit.co/blog/announcing-phoenix-playground
1: apt install ruby
2: Put your code in test.rb
3: ruby test.rb
I then I got: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
\e[0m
current directory: /var/lib/gems/3.1.0/gems/stringio-3.1.1/ext/stringio
/usr/bin/ruby3.1 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20240626-4044-iylnuy.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
So I tried: 4: apt install ruby-dev
5: ruby test.rb
Then I got: [4147, #, #Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#59What I love about Django is that you can create a Django project with just one file. You can turn a fresh Debian machine into a running Django web app by just doing: apt install -y python3-django apache2 libapache2-mod-wsgi-py3 And then creating the one file Django needs: /var/www/mysite/mysite/wsgi.py: import os import django from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MO…
Yes but how do you go about defining an ORM model without an app init class?
from django.db import models
from django.db import connection
class MyModel(models.Model):
name = models.CharField(max_length=255)
class Meta:
app_label = 'myapp'
with connection.schema_editor() as schema_editor:
schema_editor.create_model(MyModel)
# from django.core.management import call_command
# call_command('makemigrations', 'myapp')
# call_command('migrate', 'myapp')Re: What's up Python? Django get background tasks, a new REPL, bye bye gunicorn
#60Earlier quoted context omitted.
The burden of proof is on the person making the empirically unfalsifiable claims.
You're playing with words to deflect from the argument. No one has to have proof that they have a criticism. They have to have proof that the criticism is as stated. The evidence is self evident given the OP post. Many share my opinion, and I don't have to prove that. Nor should I, and neither do you for any position you have. Address the argument.