Re: resource acquire

2023-03-01 Thread Emmanuel Ledoux Fonkou Tala
There's many Django cheat sheet online. Just type on Google: Django cheat
sheet

Le mer. 1 mars 2023 à 17:18, Jeman Kumar  a écrit :

> There is none
>
> On Wed, 1 Mar, 2023, 9:29 pm Ephrem,  wrote:
>
>>
>> anyone can you send me a django cheat sheat
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/8dce50e4-1867-4746-a631-1e6571faa1fen%40googlegroups.com
>> 
>> .
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALmE1Tu5josPWD37r5E5eeEPMA1C4PWR5BPx5%3Deyih%2B4oNQ0XA%40mail.gmail.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHhF9YOycuL9QvVmXsei66dd6yHn%3DpEtmCsZBXdj%3Daa_cKjNJg%40mail.gmail.com.


Re: resource acquire

2023-03-01 Thread Jeman Kumar
There is none

On Wed, 1 Mar, 2023, 9:29 pm Ephrem,  wrote:

>
> anyone can you send me a django cheat sheat
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8dce50e4-1867-4746-a631-1e6571faa1fen%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALmE1Tu5josPWD37r5E5eeEPMA1C4PWR5BPx5%3Deyih%2B4oNQ0XA%40mail.gmail.com.


Re: django

2023-03-01 Thread Folarin Ogungbemi
To make this possible the user must have a profile such that if they signed in 
to the page they only can see informations attached to that user.

There are different ways to achieve this
But first there should be an authentication in place. 
The settings can then be done either from the template or from the views.py so 
that when the user is logged in this information will be visible to their ‘id’.

> On 1. Mar 2023, at 13:45, Ikrombek  wrote:
> 
> How to make a user's post visible only to that user using Django
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/4e825c08-b0d6-4104-8d4c-3b1e09fe851cn%40googlegroups.com.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9E5A8C65-D512-487D-B0F9-7A759BFE56AF%40gmail.com.


invalit format for join_date when I ran a migration

2023-03-01 Thread 'Alejandro Hernández Noguera' via Django users
Hi, I'm trying to run the command *'python manage.py migrate auth' *but im 
getting this error '*django.db.utils.OperationalError: (1067, "Invalid 
default value for 'date_joined'")*'.

I'm using Django *3.2.9* and MySQL *8.0.32-0ubuntu0.22.04.2*. I changed the 
sql config altering the sql_mode variable but I'm getting the same error.

The declaration of the field *date_joined *is the default of django 
instalation

date_joined = models.DateTimeField(_('date joined'), default=timezone.now)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/19fa95b0-0e82-49d2-9007-b36bae8f770en%40googlegroups.com.


Re: django

2023-03-01 Thread Hamza Shahid
Override get_queryset method or use models.objects.filter(user=request.user)

On Wed, Mar 1, 2023, 5:45 PM Ikrombek  wrote:

> How to make a user's post visible only to that user using Django
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4e825c08-b0d6-4104-8d4c-3b1e09fe851cn%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE38QZST98%2Bq%2BFmhCXbEhKC9xQjVY3nX-d%2BJgZ0a4UP37jt5SQ%40mail.gmail.com.


"Django road map and resources"

2023-03-01 Thread yaqiinso
Hello dear django developers i was learning django since december i 
understood all the basics like how create apps,models,views,url,some 
authentication like adding user,login and logout but still i can not make 
the projects of my dreams like building school management system software , 
E_commerce web, and so ,  where to go can  any one please give road map 
that takes me to my dream ..

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a4ad7453-5b4b-46a8-8517-05d2b614869cn%40googlegroups.com.


resource acquire

2023-03-01 Thread Ephrem

anyone can you send me a django cheat sheat 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8dce50e4-1867-4746-a631-1e6571faa1fen%40googlegroups.com.


Re: django

2023-03-01 Thread Dev Femi Badmus
To make a user post visible only to that user i.e only to that same user
that post it you do

1.   {% if post.author == user %}
 My html post code

2.   {% if post.author == user.id %}
My html post code


if ur post class use many to many field for author use no 1 else if u put
in user.id for author use no 2 else just show ur post class model

On Wed, Mar 1, 2023, 13:48 ALBERT ASHABA AHEEBWA <
ashabaaheebwaalb...@gmail.com> wrote:

> If user.is_authenticated
>
>
>
>
>
> On Wed, 1 Mar 2023, 15:45 Ikrombek,  wrote:
>
>> How to make a user's post visible only to that user using Django
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4e825c08-b0d6-4104-8d4c-3b1e09fe851cn%40googlegroups.com
>> 
>> .
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAQecPcrb75rS_A%3DMZTqZBAUqTtVLnAxTxpAo%3DGLihPmfEhKiw%40mail.gmail.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD9bWYy8xxci_7ZK_%3DdZHe3kDq2AdCtDM4KLZUPB6xRsPYpp1g%40mail.gmail.com.


Re: django

2023-03-01 Thread ALBERT ASHABA AHEEBWA
If user.is_authenticated





On Wed, 1 Mar 2023, 15:45 Ikrombek,  wrote:

> How to make a user's post visible only to that user using Django
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4e825c08-b0d6-4104-8d4c-3b1e09fe851cn%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAQecPcrb75rS_A%3DMZTqZBAUqTtVLnAxTxpAo%3DGLihPmfEhKiw%40mail.gmail.com.


django

2023-03-01 Thread Ikrombek
How to make a user's post visible only to that user using Django

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4e825c08-b0d6-4104-8d4c-3b1e09fe851cn%40googlegroups.com.