Re: Best approach for audit logging in Django.

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
Based on my experience, this is the easiest one to start with: https://django-auditlog.readthedocs.io/ On Mon, 6 Jun 2022 at 12:58, Mukul Verma wrote: > i also have the question regarding this, is that i have to create auditing > log file for all the activities performing in the project

Re: How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts?

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
You can add the following lines in your script: ` import django sys.path.append('') os.environ.setdefault('DJANGO_SETTINGS_MODULE', '') django.setup() ` On Tue, 7 Jun 2022 at 04:17, Jason wrote: > Why? what's the purpose behind this? > > On Monday, June 6, 2022 at 12:27:58 PM UTC-4

Re: Session in Python for Login and Logout

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
I think what he meant is 'session' in django. Probably can take a look at this: https://docs.djangoproject.com/en/4.0/ref/request-response/ For example, django app wants to know who is the current user, can use something like: `request.user` On Mon, 6 Jun 2022 at 22:45, 'Kasper Laudrup' via

Re: How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts?

2022-06-06 Thread Jason
Why? what's the purpose behind this? On Monday, June 6, 2022 at 12:27:58 PM UTC-4 cseb...@gmail.com wrote: > How replace "./manage.py < some_code.py" with "./some_code.py" for website > scripts? > > There seem to be a number of imports needed to make the 2nd version work. > > cs > -- You

How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts?

2022-06-06 Thread cseb...@gmail.com
How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts? There seem to be a number of imports needed to make the 2nd version work. cs -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Session in Python for Login and Logout

2022-06-06 Thread 'Kasper Laudrup' via Django users
On 06/06/2022 11.16, Mukul Verma wrote: Hii, Help me out in this stuff please, some steps for solve this out Python is a programming language so there's no such thing as a "session for login and logout". If you want someone to help you, you should try to clarify what you actually need

Re: uvicorn and ASGI

2022-06-06 Thread Alexander Neilson
Hi Dan. Your question interested me so I went looking. The page you link to further links to the uvicorn documentation which seems to indicate their suggestion for production deployments is to use gunicorn and the uvicorn worker. Their rationale seems to be that uvicorn is great at running

Session in Python for Login and Logout

2022-06-06 Thread Mukul Verma
Hii, Help me out in this stuff please, some steps for solve this out -- 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 email to django-users+unsubscr...@googlegroups.com.