Suggestions for update

2021-06-08 Thread Williams Andy Inc
Hi and thanks to everyone, I have a few opinions and suggestions I would like to talk about which if possible I would also be part of contributors. We are all Django users, there are many professionals here and also there are beginners and learners too, like myself a learner too. I am on a dis

Re: Django request.session persist between logins of different users.

2021-06-08 Thread Williams Andy Inc
Did you have your own logout function view or class view? On Tue, Jun 8, 2021 at 9:17 AM Mateusz Wasielewski < mateusz.wasielewsk...@gmail.com> wrote: > Hello, > I want to implement two factor authetication in my django app. The steps > are as follows: > 1. User need to register > 2. User need t

Re: Django request.session persist between logins of different users.

2021-06-08 Thread Mateusz Wasielewski
Hello, Sorry that was postman problem, the old session_id was stored and when I logged by different user the old session id was still there. My mistake. Thanks for help. > On 8 Jun 2021, at 09:55, Williams Andy Inc wrote: > > Did you have your own logout function view or class view? > >

Re: how to input list [] dynamic in python

2021-06-08 Thread paidjoo indo
btw thanks you very much, Mr Derek and all yes that is exercise basic in python, i'm newbie in python and i hope learn djanggo, before i have try code looping lst = [] # number of elemetns as input n = int(input("Enter number of elements : ")) # iterating till the range for i in range(0, n):

Re: Makemigrations/migrate in existing database

2021-06-08 Thread Omkar D
``` python manage.py makemigrations python manage.py migrate --fake ``` On Friday, June 4, 2021 at 7:21:03 PM UTC+5:30 Mahendra Yadav wrote: > I think surely run makemigrations and migrate > > Mahendra Yadav > > On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote: > >> Hello Team >> Hope all are doin

Re: Help

2021-06-08 Thread Inside Believer
Sir, I'm from Pakistan. In which time you can teach me. On Mon, Jun 7, 2021 at 9:54 AM Software, Web Developer < mondajoas...@gmail.com> wrote: > I can help you brother > > On Mon, Jun 7, 2021, 19:21 Inside Believer wrote: > >> Sir I'm internee i know python my company has assigned me bugs to re

Re: Help

2021-06-08 Thread Inside Believer
Sir, I'm from Pakistan at which time you can teach me. On Mon, Jun 7, 2021 at 11:05 PM Franck Tchouanga wrote: > ftchoua...@gmail.com text me inbox, 656774424 WhatsApp. > > On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga > wrote: > >> I can help you >> >> On Tue, Jun 8, 2021, 6:30 AM Software, We

Re: Help

2021-06-08 Thread Inside Believer
Sir, I'm from Pakistan at which time you can teach me. On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa wrote: > try me bro i'll help debug and again teach you how to do it > > On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga > wrote: > >> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp. >> >> On

Re: Makemigrations/migrate in existing database

2021-06-08 Thread Gabriel Araya Garcia
No. Only take sure That model structure about your tables should be the same fields in your database El vie., 4 jun. 2021 8:58, Ankita Sharma escribió: > Hello Team > Hope all are doing great > > I have a database in microsoft sql server. I created tables and views in > it. > > I ran py manage.p

Send login email notification

2021-06-08 Thread Eugene TUYIZERE
Team, I need to include email notification every time user logs in in django app! Help to achieve please. Regards, T.E -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

ValueError

2021-06-08 Thread Lloyd Mawira
I am getting this error after running python manage.py collectstatic. Someone help please. ValueError: The file 'css/webfonts/fa-brands-400.eot' could not be found with . -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

My first django project works in mylaptop, locally, but not when deployed

2021-06-08 Thread Douglas Lopez
Maybe some body can help on this. I have a very simple apps ("Hello work"). See mysite.zip attached. Then I follow the procedures established in the host, see: https://www.a2hosting.com/kb/cpanel/cpanel-software/using-the-python-selector Including the creation of environment, see consola.png attac

Re: Send login email notification

2021-06-08 Thread ramadhan ngallen
Create a function to send email to user then on your login view you can use threading module to send email by calling your send email function. Share ur login view and send email function I can show you how. On 8 Jun 2021, 21:41 +0300, Eugene TUYIZERE , wrote: > Team, I need to include email noti

Defining apps.py name while upgrading from Django 2.X to 3.X

2021-06-08 Thread Omkar D
In my Django 2.X project, I had the following structure generated by default: *project_name* * ---> animal_app* * ---> apps.py* * name = "animal"* * ---> zebra* * ---> apps.py* *

Re: My first django project works in mylaptop, locally, but not when deployed

2021-06-08 Thread Sebastian Jung
Hello Venezuela, please open url http://127.0.0.1:8000/hola... this is think works... Regards Am Di., 8. Juni 2021 um 22:24 Uhr schrieb Douglas Lopez < douglaslopez2...@gmail.com>: > Maybe some body can help on this. > > I have a very simple apps ("Hello work"). See mysite.zip attached. > Then

Re: Defining apps.py name while upgrading from Django 2.X to 3.X

2021-06-08 Thread Omkar D
Also want to know if this change is backward compatible? As far as I have implemented and tested, this AppConfig name changed worked fine with both 2.2 and 3.2, please mention this too while answering. On Wednesday, June 9, 2021 at 2:23:10 AM UTC+5:30 Omkar D wrote: > > In my Django 2.X project

Re: My first django project works in mylaptop, locally, but not when deployed

2021-06-08 Thread AliHassanRaza Khan
You have to install Django first pip install django On Wed, 9 Jun 2021, 1:24 am Douglas Lopez, wrote: > Maybe some body can help on this. > > I have a very simple apps ("Hello work"). See mysite.zip attached. > Then I follow the procedures established in the host, see: > > https://www.a2hosting.

Is async class-based view available?

2021-06-08 Thread kazuki
I'm already using a web application that takes advantage of class-based views. And I want to take advantage of the async class-based view. However, I can't find any information when I look it up. Is there a class such as async_view? I want to use TemplateView and ListView asynchronously. -- You

[WARNING - NOT Solved] SVG widget for the Admin

2021-06-08 Thread Mike Dewhirst
Do not use this solution. The Svg_AdminTextareaWidget code below deletes data on saving. I think the reason might be that on saving it tries to save the image instead of the image source code. I'm now digging deeper and will report back. Mike On 7/06/2021 6:00 pm, Mike Dewhirst wrote: Than

Re: Is async class-based view available?

2021-06-08 Thread Lalit Suthar
https://docs.djangoproject.com/en/3.2/topics/async/ On Wed, 9 Jun 2021 at 08:11, kazuki wrote: > I'm already using a web application that takes advantage of class-based > views. And I want to take advantage of the async class-based view. > However, I can't find any information when I look it up.

Re: ValueError

2021-06-08 Thread Lalit Suthar
https://stackoverflow.com/questions/26829435/collectstatic-command-fails-when-whitenoise-is-enabled On Wed, 9 Jun 2021 at 01:55, Lloyd Mawira wrote: > I am getting this error after running python manage.py collectstatic. > Someone help please. > > ValueError: The file 'css/webfonts/fa-brands-400

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-06-08 Thread Andre Foote
Because this is all coming from when I enabled sessions and the server admin tried to implement the application on multiple nodes. On Wednesday, April 28, 2021 at 6:41:24 PM UTC+7 Ryan Nowakowski wrote: > What makes you think this has anything to do with Django sessions? > > > On April 27, 2021