Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-09 Thread Jason
with your settings usage, are you defining a property in settings and trying to use it anywhere? furthermore, are you using settings via from traveldata.traveldata import settings (example) or via from django.conf import settings The latter is the recommended means because settings are lazy

Re: Why does sqlmigrate need a connection to an existing database?

2021-12-09 Thread Jason
It uses db connection in two places: building the migration graph in order to load previous applied migrations and transaction begin/end wrapping

Deploy to production django + channels

2021-12-09 Thread Gustavo Bazan
Hi, I have a django project that has the following services django, celery, celery beats, channels, nginx (everything works with docker) My question is the following, when deploying in production, is it necessary to set up two different servers for django and channels? or can it be done only wi

AttributeError: 'Values' object has no attribute 'link_base' in building sphinx documentation.

2021-12-09 Thread Sencer Hamarat
Hello everyone, If 'sphinx.ext.autodoc' extension enabled in conf.py of sphinx, when I try to run 'make html' I'm ending up with AttributeError exception: Exception occurred: File /env/lib/python3.6/site-packages/django/contrib/admindocs/utils.py", line 121, in _role inliner.document.settin

Re: AttributeError: 'Values' object has no attribute 'link_base' in building sphinx documentation.

2021-12-09 Thread Jason
you could raise a bug report on the django tracker at https://code.djangoproject.com/query but I'm doubtful that this will gain any traction Those versions of django you specified are very out of date. 1.10 was EOL in 2017, 1.11 EOL'd April 2020 and 2.0 EOLd Aug 2018 If you don't have any iss

Database "InterfaceError connection already closed" with asgi.

2021-12-09 Thread peter.wagemans via Django users
Database "InterfaceError connection already closed" with asgi. This often seems to happen when an exception was triggered, e.g., even a simple Http404 due to incorrect URL. A suspicion is discussed below. Ideas about this suspicion, how to validate it and how to avoid the problem will be apprec

Re: Declarative mechanism for Django model rows

2021-12-09 Thread Ryan Nowakowski
Check out fixtures: https://docs.djangoproject.com/en/3.2/howto/initial-data/ On December 8, 2021 1:25:45 PM CST, Alex Dehnert wrote: >With some frequency, I end up with models who contents are approximately >constant. Are there good ways of handling this? > >For example, I might have a set of

Re: django-oscar customisation

2021-12-09 Thread Ryan Nowakowski
Try running the sandbox application: https://django-oscar.readthedocs.io/en/stable/internals/sandbox.html Then you can poke around that sandbox code and see how they did things. On November 22, 2021 2:23:28 AM CST, "Hervé Edorh" wrote: >Hi, >I am new to django-oscar and i try to understand t

Re: django-oscar customisation

2021-12-09 Thread Julio Cojom
You need to fork the app and create a similar protect structure inside your forked app, then you can start customizing. Django Oscar isn't an easy way to start with Django El jue., 9 de diciembre de 2021 8:46 p. m., Ryan Nowakowski < r...@fattuba.com> escribió: > Try running the sandbox applic

How to import UGETTEXT_LAZY ON DJANGO 4.0

2021-12-09 Thread ngallen4
It seems Django has removed 'ugettext_lazy`(from django.utils.translation import ugettext_lazy as _) from Django version 4.0.x How can I handle translation on Django version 4.0.x? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: How to import UGETTEXT_LAZY ON DJANGO 4.0

2021-12-09 Thread David Nugent
Simply change it to gettext_lazy. You don't need the deprecated functions, they were for python 2. Regards, David On Fri, Dec 10, 2021 at 3:43 PM wrote: > It seems Django has removed ‘ugettext_lazy`(from django.utils.translation > import ugettext_lazy as _) from Django version 4.0.x > > How can

RE: How to import UGETTEXT_LAZY ON DJANGO 4.0

2021-12-09 Thread ngallen4
Thanks hopefully the same to ugettext Kind Regards Ngallen Ramadhan T: +255 765 889 960 | Emial: ngall...@gmail.com | Skype: ngallen2 From: django-users@googlegroups.com On Behalf Of David Nugent Sent: 10 December 2021 07:50 To: django-users@googlegroups

Re: Declarative mechanism for Django model rows

2021-12-09 Thread Carsten Fuchs
Hello, Am 08.12.21 um 20:25 schrieb Alex Dehnert: > With some frequency, I end up with models who contents are approximately > constant. Are there good ways of handling this? If I understand your question correctly, you have a model that you always query like: plans = Plan.objects.all(