ANN: django-yamlconf v1.2.1 is available

2020-02-24 Thread Michael Rohan
Hi Folks, Have release v1.2.1 for django-yamlconf, a module supporting Django settings via YAML files (searching up the directory hierarchy, e.g., in a K8s environment, adding a "final" set of settings via "/APPLICATION.yaml", see the documentation a

Re: Channels, daphne, and asgiref, oh my!

2020-02-24 Thread Larry Martell
When I was using uwsgi, here was my nginx file: upstream django { # server unix:/run/uwsgi/devAppReporting.sock; } server { listen 8090; server_name foo.bar.com; charset utf-8; location /static { alias

Django Session KeyError

2020-02-24 Thread Guy NANA
I have an angular frontend app which send file to django backend which data is setting in django session. After I send a httprequest to django backend to make ML tratements on that data and get the results. But I've a 500 sever error: keyerror 'ts_dataset_copy': KeyError: 'ts_dataset_copy'

Re: Channels, daphne, and asgiref, oh my!

2020-02-24 Thread Larry Martell
Thanks Andrew. Upgrading to py 3.7 did the trick. Now struggling to get daphne working with nginx and TLS. Can't seem to get a nginx config file that works for me. On Fri, Feb 21, 2020 at 10:50 PM Andrew Godwin wrote: > > Hi Larry, > > Your problem is the Python version - 3.5 is somewhat old

Re: reg: Error:-django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length")

2020-02-24 Thread Integr@te System
Hi Freind, For simplify and minimize your dev time, review first in your err, code base. Thank your sharing and dont forget zen. On Mon, Feb 24, 2020, 21:43 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > Hi, > > I am creating a model, which is taking a description

Re: Django i18n_patterns default language

2020-02-24 Thread Aldian Fazrihady
You can add a middleware to ignore the header: class IgnoreLanguageHeaderLocaleMiddleware(LocaleMiddleware): LANGUAGE_HEADER = 'HTTP_ACCEPT_LANGUAGE' def process_request(self, request): if self.LANGUAGE_HEADER in request.META: del request.META[self.LANGUAGE_HEADER]

reg: Error:-django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length")

2020-02-24 Thread 'Amitesh Sahay' via Django users
Hi,  I am creating a model, which is taking a description as text field. when I migrate I see the below error: django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length") ON further research I came to know that its some limitation

Re: d

2020-02-24 Thread Motaz Hejaze
Ok i got it Mohammed , Kindly checkout PyInstaller Django is a web framework used to create websites and web services On Mon, Feb 24, 2020 at 3:56 PM Kasper Laudrup wrote: > Hi Muhammed, > > On 24/02/2020 13.22, Muhammad Abdullah Nabeel wrote: > > I

Re: d

2020-02-24 Thread Kasper Laudrup
Hi Muhammed, On 24/02/2020 13.22, Muhammad Abdullah Nabeel wrote: I want to share file as a software that can be installed. not necessarily it should be a website . like it can be given to another person in a USB Drive and other person opens a file that shows "install it" and clicking on that

New to Django need help with m2m database with intermediate table.

2020-02-24 Thread Silas Nicholls
Hello, Sorry for my amateur question. I've been stuck on this issue for a while and I can't work out if there is way I can use my current models to work in this way. Here is a link to my issue:

Django models and multiprocessing: "no results to fetch"

2020-02-24 Thread Rainer Hihn
Hi all, in my project, I'm traversing through a huge directory with millions of files, parse them and write the results into a Postgres database. Unfortunately, I'm facing erros when I'm using multiprocessing.Pool with more than one processes. This is how I'm inserting new values into the

Re: d

2020-02-24 Thread Muhammad Abdullah Nabeel
I want to share file as a software that can be installed. not necessarily it should be a website . like it can be given to another person in a USB Drive and other person opens a file that shows "install it" and clicking on that button the other computer gets installed that software and the other

New to Django, need help using my intermediate table to show the m2m relationship in my templates.

2020-02-24 Thread Silas Nicholls
Hello Sorry I am very new to Django and have come across quite the stumbling block. The details to the issue are in this Stack Overflow post I made a while ago with no answers:

Re: ANN: django-yamlconf v1.2.0 is available

2020-02-24 Thread Gabriel - Iulian Dumbrava
You are suggesting in the demos that the settings.py file should contain de development definition of variables and override them later on with loading the specific settings from yaml. would contain the development oriented definitions, e.g., database > definitions for user and password for a

Re: d

2020-02-24 Thread Motaz Hejaze
You want to make a file sharing website ?? On Mon, 24 Feb 2020, 1:22 pm Muhammad Abdullah Nabeel, < muhammadabdullahnab...@gmail.com> wrote: > I have made few games and data storing and searching softwares using > tkinter turtle numpy pygame math random etc modules but I still can not > made a

d

2020-02-24 Thread Muhammad Abdullah Nabeel
I have made few games and data storing and searching softwares using tkinter turtle numpy pygame math random etc modules but I still can not made a system in which I can make another person give a file and the other person can install my software in his computer. Can I do this using Django

Re: Django Redis error

2020-02-24 Thread Kasper Laudrup
Hi Charles, On 24/02/2020 06.20, Charles wrote: "/home/panda/.local/share/virtualenvs/loans-engine-backend-iaqdRd9l/lib/python3.5/site-packages/django_q/conf.py", line 153     Q_STAT = f"django_q:{PREFIX}:cluster"                                         ^ Python f-strings has only been

Issue with Fixutre loading with multiple test cases on Postgres - duplicate key value violates unique constraint

2020-02-24 Thread Lokesh
class Test1(TestCase): fixtures = ['fixture.json'] @classmethod def tearDownClass(cls): super(TestCase, cls).tearDownClass() def test_demo(self): u = User.objects.get(username='testuser1') #some testing - removed actual tests as we can replicate the

Learning Django

2020-02-24 Thread DamnGeniuses' Squad
I'm learning Django from django documentation tutorial But when i want to clone a template from link that was in web , the repo is empty Can i get another template or link to clone ? Thankyouu Getting a copy of Django’s development version¶

Django Redis error

2020-02-24 Thread Charles
Hi i have encountered an error after installing django 3.0 and i after i reverted it back to my old version it doesn't run here is the traceback error Loading .env environment variables… Loading .env environment variables… Traceback (most recent call last): File "manage.py", line 19, in

Basic Django Website Hangs on Apache 2.4.41 due to Pandas 1.0.1

2020-02-24 Thread Siddharth Agarwal
Hello Everyone, I have build a basic Website using Python 3.7 + Django 3.0.0 + MySQL 8.0.18 + Pandas 1.0.1. This site works very well using py manage.py runserver on my local environment. However, as soon as I deploy it on Apache 2.4.41 configured on Windows 10 Server. The site starts giving

Re: Selecting all and posting

2020-02-24 Thread Integr@te System
Hi Isaac, Plz review and attempt sth like this sample: as we have with any type of fields you like for user input : sth.html Click On const checkbox = document.querySelector('input[type=checkbox]'); const button = document.querySelector('button'); checkbox.onchange = () => { if