Re: Help in designing excel like sheet in Django/python

2020-04-13 Thread suman patel
Hey, Thanks all for your suggestions. I am exploring Jexcel and its very good. Thx Guerrero. Regards Patel On Sat, Apr 11, 2020 at 1:43 AM Gerardo Palazuelos Guerrero < gerardo.palazue...@gmail.com> wrote: > Hi, > I used in the past the following library: > https://bossanova.uk/jexcel/v3/ >

Re: Using external libraries for analytics

2020-04-13 Thread Roger Gammans
On Mon, 2020-04-13 at 13:59 -0700, 'MH' via Django users wrote: > d to create some kind of dashboard for myself. So I googled some > applications of django for analytical dashboards and they proposed > things like highcharts. From what I read I got the impression that I > would use external

Using external libraries for analytics

2020-04-13 Thread 'MH' via Django users
Hi I wanted to create some kind of dashboard for myself. So I googled some applications of django for analytical dashboards and they proposed things like highcharts. From what I read I got the impression that I would use external sources and as if I would transmit data to other sites (e.g.

Re: Integrate a third pary app in Django and Gunicorn

2020-04-13 Thread 'MH' via Django users
Friendly push :) On Wednesday, April 8, 2020 at 6:09:21 PM UTC+2, MH wrote: > > Hi everyone > > I created two first, very small apps with Django and serve them on my NAS > with gunicorn and nginx as reverse proxy. That took me quite a while as I > am not an experienced coder or administrator.

Scanning Uploaded Files

2020-04-13 Thread 'Aaron Wilson' via Django users
What is the recommended method to scan uploaded files for viruses? I see a lot of information about pyclamd which appears to be unmaintained. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
@soham will keep in mind next time You forgot one step after enabling ufw. You have to execute sudo ufw allow ssh. @Aldian will try n update the same On Mon, Apr 13, 2020 at 10:30 PM Jagtar Singh Lakhyan < jagtar.lakhe...@gmail.com> wrote: > sudo journalctl -u gunicorn > > -- Logs begin at Fri

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
sudo journalctl -u gunicorn -- Logs begin at Fri 2020-04-10 23:00:11 IST, end at Mon 2020-04-13 21:54:16 IST. -- Apr 13 19:49:35 wms systemd[1]: Started gunicorn daemon. Apr 13 19:49:36 wms gunicorn[2515]: [2020-04-13 19:49:36 +0530] [2515] [INFO] Starting gunicorn 20.0.4 Apr 13 19:49:36 wms

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
Now im following this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04 its working till domain/ip:8000 as i already said but curl --unix-socket /run/gunicorn.sock localhost curl: (7) Couldn't connect to server and

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Aldian Fazrihady
If you turned off gunicorn, will you still get the 502 error? If yes, the orginal error it means your nginx cannot connect to your gunicorn. Have you tested your app on dev server, i.e: `python manage.py runserver` ? On Sat, Apr 11, 2020 at 11:53 PM Jagtar Singh Lakhyan <

Re: i want to change database sqllite to mysql but show error

2020-04-13 Thread myproblemsolution38
Just go to the settings.py file and make the following changes in Database section: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'your_DatabaseName', 'USER':'your_username', 'PASSWORD':'your_password', 'HOST':'localhost',

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Soham Navadiya
You forgot one step after enabling ufw. You have to execute sudo ufw allow ssh. Currently you can't login via ssh bcoz ufw not allowing you. On Mon, Apr 13, 2020, 18:39 Jagtar Singh Lakhyan wrote: > Im working from terminal but on enabling ufw, server wasn't logging in > from terminal and i

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
Im working from terminal but on enabling ufw, server wasn't logging in from terminal and i had to go to server console to disable ufw to access again from terminal On Mon, Apr 13, 2020 at 6:24 PM Rok Klancar wrote: > Jagtar, did you wanted to say before that enabling ufw disabled you to >

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Rok Klancar
Jagtar, did you wanted to say before that enabling ufw disabled you to access your server via ssh? V V pon., 13. apr. 2020 ob 13:37 je oseba Jagtar Singh Lakhyan < jagtar.lakhe...@gmail.com> napisala: > You mean to say > > >

Re: django doughts

2020-04-13 Thread Chucky Mada Madamombe
Hi, In your mysite.urls, you must include the polls app urls as well. The error is basically telling you that there is no url you are trying to request. Regards Chuck G. Madamombe NAM: +264 81 842 1284 RSA: +27 78 208 7034 Twitter: @chuckygari Skype: chuckygari Facebook: Chucky Mada Madamombe

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Jagtar Singh Lakhyan
You mean to say https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 I followed these around 15 days back and i

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Sunday Iyanu Ajayi
My bad. I meant sudo systemctl daemon-reload Use this as a guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx- *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Sun, Apr 12, 2020 at 2:57 PM Jagtar Singh Lakhyan <

Re: Django user model. 1 admin account, 1 customer account with the same email and different password

2020-04-13 Thread Bill Freeman
Many e-mail systems allow you to add a suffix to the username portion of the address, separated by something like a "-", or, last time I checked for gmail, by a "+", and it will still be delivered to the same mailbox. For example, I expect mail sent to ks.kennysoh+ad...@gmail.com will still

Re: Django - PrePopulate the Foreign Key on the web page, and use that id to save the model.

2020-04-13 Thread Antje Kazimiers
you're welcome, Mayank! Adding initial to your ModelChoiceField definition should give you the preselection. self.fields['project'] = forms.ModelChoiceField( initial=projectid, queryset=Project.objects.filter(id=projectid) ) On Sun, Apr 12, 2020 at

Re: Django user model. 1 admin account, 1 customer account with the same email and different password

2020-04-13 Thread Carsten Fuchs
Hello, Am 13.04.20 um 02:59 schrieb Kenny Soh: > * An admin account must not share the same password as the customer account. Your entire problem would become much easier if you just dropped that requirement. Whatever you want to achieve with forcing a single user to keep two passwords, I'm