Re: Student Club Management Web App: Seeking Collaboration and Advice from Experts

2024-03-06 Thread Manjusha
I am interested to join
Phone number: 91+7083508673

On Wed, 6 Mar 2024, 19:26 Najeeb Mansur Sayaya,  wrote:

> Please add me 07038571709
>
> On Sat, Mar 2, 2024, 4:58 PM SOLTAN NOURELDIEN 
>>
>> Hello, I am currently working on my Django Project for a specific course
>> at my university. I have already finished reading "Django for Beginners" by
>> William S. Vincent. Now, I am eager to start this project, but I am still
>> in the learning and research phase. Therefore, I will provide the
>> requirements for the project and would appreciate feedback or any tips from
>> anyone with experience in such projects.
>>
>> For example, this will be my first time implementing a multi-user system.
>> After doing extensive research, I learned about Django's model group
>> concept managing this approach. Additionally, I discovered Django Channels
>> and signals, which I have never heard of before. I would appreciate any
>> advice or guidance on how to approach such a project.
>>
>> Furthermore, if anyone is interested in joining me on this journey, it
>> would be wonderful. We can learn a lot from this project together. The
>> deadline is less than two months, so please provide your Discord or
>> WhatsApp number, and we can create a group to collaborate on this project.
>>
>> *The requirements for the project are as follows:*
>>
>> An app for student clubs:
>> *SKS Admin:*
>>
>>-
>>   - Create Club Page
>>   - Delete Club Page
>>   - Assign Club Manager
>>   - Activity Form (Approve, Reject)
>>   - Receive notifications (Whenever a change occurs in the club
>>   page) (Approve Change, Reject Change)
>>   - Request for Publishing Activity Post (Approve, Reject)
>>   - Search Club Page
>>   - Announce All Activities (Will be displayed on the main page)
>>
>> *Club Manager:*
>>
>>-
>>   - Fill out the activity form
>>   - Request for publishing Activity Post (Sending it to admin, and
>>   after approval, the activity will appear on the club main page)
>>   - Receive Notification (The response to the Activity Form &
>>   Activity Post publishing request)
>>   - Edit Activity Post (Admin manager will receive a notification)
>>
>> *Student:*
>>
>>-
>>   - Display weekly Activity Table
>>   - Display Clubs Main Page
>>   - Search (by category, by date)
>>
>> I will only focus on the backend development and integrate it into the
>> template. I have other team members who will provide the Static HTML, CSS &
>> JS files. I will incorporate them into the Django templates and work on
>> making them interactive.
>>
>> Additionally, if time allows, I can implement additional features such as:
>>
>>- Manager:
>>   - Submit an application to SKS to assign a club
>>   - Initiate a chat conversation between the manager and the SKS
>>- Student:
>>   - Become a member of a club
>>   - Follow Clubs
>>   - Follow the club pages
>>   - Like and comment on a post
>>
>> If you have any ideas or know of existing projects that could serve as
>> inspiration, please feel free to comment. I would greatly appreciate it.
>>
>> Also, if you would like to collaborate with me for learning purposes and
>> to work as a team, please don't hesitate to provide your contact
>> information, and I will reach out to you. Thank you very much.
>>
>> --
>> 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/19da6a17-4c28-41d5-acb1-171fb052c9a1n%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/CAP_-qZTPbR3%3DALgmR_ORgAqZMjbHrTETVfg56-_SB1%2B7t5jEOw%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/CAGz3pX%2Bt5p%3D8TdCMXNuWh3v_L3Db5n3W3nGsZQPGGww0GV5g_w%40mail.gmail.com.


Re: Need a partner

2023-11-25 Thread Manjusha
I am interested

On Sun, 26 Nov 2023, 02:32 Joshua Olatunji, 
wrote:

> Find many partners  Willing and ready to collaborate here:
> https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9
>
> On Sat, Nov 25, 2023, 9:57 PM Adesewa Lola 
> wrote:
>
>> I am interested.
>>
>> On Fri, Nov 24, 2023 at 3:33 PM Nabin Lama  wrote:
>>
>>> I am interested.
>>>
>>> On Fri, Nov 24, 2023 at 8:11 PM Tannu Shah  wrote:
>>>
 Intrested

 On Fri 24 Nov, 2023, 2:05 AM Dawda Borje Kujabi, 
 wrote:

> Interested
>
>
>  Original message 
> From: Lenox Brown 
> Date: Thu, 23 Nov 2023, 6:20 pm
> To: django-users@googlegroups.com
> Subject: Re: Need a partner
>
> I am interested
>
> On Thu, 23 Nov 2023, 21:06 Mashhoor Ahdal, 
> wrote:
>
> I am searching a like minded people who are interested to develop a 
> *fullstack
> django app*.Anyone interested ping at *mashhoorahd...@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/5a632768-4db0-4b6f-9d7e-de79159341a3n%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/CANqHsZ9b2sRMzEgNLT%3DVn4CQA9V_NiT8kQj5wTwjxEOsDhwjhA%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/capxlg-1q4y9v-5hrrz7-sru8lo1mu8m3-a5le3ia3ddjp-zgv8il6ff2dj-unmtbh-9fwaor-yrmig8-1sq335-4srwkc-abjqs5-i9f5ja-ycf8rg1gd5km-5gtqqi4g9jfz-1zdlz7-5co2mkdlz480ynoawv.1700771725941%40email.android.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/CAMO7jjVt726Cu7RpB5zD8RV_GpW1hc%2B71kP1GnrGFwtSUR43Nw%40mail.gmail.com
 
 .

>>>
>>>
>>> --
>>> *Best Regards*
>>> Lama Nabin Gangtan(Nepal)
>>> Master of Business Administration(MBA)
>>> International University of Japan
>>>
>>> --
>>> 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/CABpPSwrd5McLyO5D9pKcVhQ%2BXGdYOpz1nOKyTKEeMsayssN2cw%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/CA%2BPuKxqAZqi-x%3D3yOMZPFmeAFgaDj%3DAj6aua%3D-h2x6i-MiSH-g%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> 

Re: How to allow user to delete their own profile after login with their default id.

2022-12-27 Thread Manjusha
need to create database for user and need to add id column in database.

On Tuesday, December 27, 2022 at 11:32:11 PM UTC+5:30 Manjusha wrote:

> User object doesn't have attribute id so it will not work, I have checked 
> now and you can refer this documentation 
> <https://docs.djangoproject.com/en/4.1/topics/auth/default/>, so you will 
> get clear idea.
>
> On Monday, December 26, 2022 at 8:10:35 PM UTC+5:30 rajm1...@gmail.com 
> wrote:
>
>> Hey, 
>>
>> Here is what you can do:
>> When User clicks the Delete profile button you use Javascript Confirm 
>> then if they press OK you go to the view.
>>
>> def delete_account(request):
>> user = User.objects.get(id=request.user.id)
>> # You first logout the user then delete the account
>> logout(request)
>> # You can use either of these
>> # To Soft Delete
>> user.active = False
>> user.save()
>> # To Hard Delete
>> user.delete()
>> messages.success("You account has been deleted Successfully!")
>> return redirect('home')
>>
>>
>> Let me know if this doesn't work.
>> -Raj Mandaviya
>>  
>>
>>
>> On Saturday, December 24, 2022 at 7:43:09 PM UTC+5:30 
>> manjushak...@gmail.com wrote:
>>
>>> Hi, I have created authentication system in Django. Anyone just tell me 
>>> how to allow user to delete the created profile with default id of the 
>>> user.[image: 
>>> Screenshot 2022-12-24 193133.png]. I I am using built-in  User 
>>> authentication libraries for this purpose and haven't created database 
>>> model for the user. But the function (the commented function under 
>>> delete_account) that I have created it is not deleting the user.
>>> Now I am trying to delete user profile using generic editing views  of 
>>> Django.
>>> Anyone tell me how to allow user to delete the created profile with 
>>> default id of the user.
>>>
>>

-- 
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/80645ba8-15e1-4856-8c24-8aac09a643bdn%40googlegroups.com.


Re: How to allow user to delete their own profile after login with their default id.

2022-12-27 Thread Manjusha
User object doesn't have attribute id so it will not work, I have checked 
now and you can refer this documentation 
, so you will 
get clear idea.

On Monday, December 26, 2022 at 8:10:35 PM UTC+5:30 rajm1...@gmail.com 
wrote:

> Hey, 
>
> Here is what you can do:
> When User clicks the Delete profile button you use Javascript Confirm then 
> if they press OK you go to the view.
>
> def delete_account(request):
> user = User.objects.get(id=request.user.id)
> # You first logout the user then delete the account
> logout(request)
> # You can use either of these
> # To Soft Delete
> user.active = False
> user.save()
> # To Hard Delete
> user.delete()
> messages.success("You account has been deleted Successfully!")
> return redirect('home')
>
>
> Let me know if this doesn't work.
> -Raj Mandaviya
>  
>
>
> On Saturday, December 24, 2022 at 7:43:09 PM UTC+5:30 
> manjushak...@gmail.com wrote:
>
>> Hi, I have created authentication system in Django. Anyone just tell me 
>> how to allow user to delete the created profile with default id of the 
>> user.[image: 
>> Screenshot 2022-12-24 193133.png]. I I am using built-in  User 
>> authentication libraries for this purpose and haven't created database 
>> model for the user. But the function (the commented function under 
>> delete_account) that I have created it is not deleting the user.
>> Now I am trying to delete user profile using generic editing views  of 
>> Django.
>> Anyone tell me how to allow user to delete the created profile with 
>> default id of the user.
>>
>

-- 
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/7e0cc95d-ff5a-4bba-9d1f-4b3e007fac07n%40googlegroups.com.


Re: How to allow user to delete their own profile after login with their default id.

2022-12-25 Thread Manjusha
Thanks, both techniques are working now i.e 1)Replacing User.delete(u.id) 
with u.delete() and in 2) user is no getting authenticated with email, it 
is authenticated with only username and password with  
authenticate function.  


   But it is 
fine.
On Monday, December 26, 2022 at 12:22:40 AM UTC+5:30 ength...@gmail.com 
wrote:

> from django.contrib.auth import  authenticate
> def delete_account(request):
> if request.method == "POST":
> email = request.POST.get('email')
> password = request.POST.get('pswd1')
>
> u = 
> User.authenticate(request=request,email=email,password=password) #this will 
> check if any user exist with current password and email .
> if u :
> print(u)  
> u.delete()
> messages.success(request,"Account is deleted 
> successfully.")
> 
> return redirect('home')
> message.error(request,'incorrect user input data')
> return redirect('home')
> 
> Reply to all
> Reply to the author
> Forward
>
>
> On Sunday, 25 December 2022 at 10:20:12 UTC+3 manjushak...@gmail.com 
> wrote:
>
>> def delete_account(request):
>> if request.method == "POST":
>> email = request.POST.get('email')
>> password = request.POST.get('pswd1')
>> 
>> u = User.objects.filter(email=email).first()
>> print(u)  
>> User.delete(u.id)
>> messages.success(request,"Account is deleted successfully.")
>> return redirect('home')
>> 
>> return render(request,"account/delete_profile.html")  
>> 
>> 
>>  by 
>> using this function i am trying to delete the user , but it shows me 
>> following error i.e attribute error so how can I find default id of the 
>> user which is already created at the time of registration, I am not using 
>> rest framework of django and also not  created any user model in 
>> model.py file.[image: 
>> error.png]In this way I'am registering the user  
>> 
>>   def register(response):
>> if response.method == "POST" :
>> username = response.POST["username"]
>> email = response.POST["email"]
>> password1 = response.POST["pswd1"]
>> password2 = response.POST["pswd2"]
>>
>> try:
>> myuser = User.objects.create_user(username, email, password1)
>> myuser.password2 = password2
>> 
>> myuser.save()
>> #if myuser.objects.filter :
>> if len(username) >10:
>> messages.error(response,"Username should contain at most 
>> 10 characters.")
>> except IntegrityError:
>> pass
>> messages.success(response,"You have successfully registered.")
>> return redirect('login')
>>   
>> return render(response,'account/registration.html')   
>> 
>> On Sunday, December 25, 2022 at 4:44:06 AM UTC+5:30 ength...@gmail.com 
>> wrote:
>>
>>> ***
>>> views.py
>>> from rest_framework import generics,permissions
>>> class NotifyDestroy(generics.DestroyAPIView):
>>> """delete current user """
>>> permission_classes=[permissions.IsAuthenticated]
>>> serializer_class=user_delete_ser
>>> queryset=User.objects.all()  
>>>
>>> *
>>> serializers.py
>>>
>>> from rest_framework.serializers import ModelSerializer
>>> class user_setting_ser(ModelSerializer):
>>> class Meta:
>>> model=User
>>> fields=['id']
>>>
>>>
>>> 
>>> urls.py
>>>
>>> path('delete_user/',NotifyDestroy.as_view(),name='delete-current-user'),
>>>  
>>>
 *
>>>
>>

-- 
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/0029-29ee-4020-9b3a-b0076594fcb8n%40googlegroups.com.


Re: How to allow user to delete their own profile after login with their default id.

2022-12-24 Thread Manjusha
def delete_account(request):
if request.method == "POST":
email = request.POST.get('email')
password = request.POST.get('pswd1')

u = User.objects.filter(email=email).first()
print(u)  
User.delete(u.id)
messages.success(request,"Account is deleted successfully.")
return redirect('home')

return render(request,"account/delete_profile.html")


   by 
using this function i am trying to delete the user , but it shows me 
following error i.e attribute error so how can I find default id of the 
user which is already created at the time of registration, I am not using 
rest framework of django and also not  created any user model in 
model.py file.[image: error.png]  
  In this way I'am registering the user

def register(response):
if response.method == "POST" :
username = response.POST["username"]
email = response.POST["email"]
password1 = response.POST["pswd1"]
password2 = response.POST["pswd2"]

try:
myuser = User.objects.create_user(username, email, password1)
myuser.password2 = password2

myuser.save()
#if myuser.objects.filter :
if len(username) >10:
messages.error(response,"Username should contain at most 10 
characters.")
except IntegrityError:
pass
messages.success(response,"You have successfully registered.")
return redirect('login')
  
return render(response,'account/registration.html') 
  
On Sunday, December 25, 2022 at 4:44:06 AM UTC+5:30 ength...@gmail.com 
wrote:

> ***
> views.py
> from rest_framework import generics,permissions
> class NotifyDestroy(generics.DestroyAPIView):
> """delete current user """
> permission_classes=[permissions.IsAuthenticated]
> serializer_class=user_delete_ser
> queryset=User.objects.all()  
>
> *
> serializers.py
>
> from rest_framework.serializers import ModelSerializer
> class user_setting_ser(ModelSerializer):
> class Meta:
> model=User
> fields=['id']
>
>
> 
> urls.py
>
> path('delete_user/',NotifyDestroy.as_view(),name='delete-current-user'),
>  
>
>> *
>

-- 
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/c182bde7-8a92-4da3-8fdb-a3f7b3acdaeen%40googlegroups.com.


Re: How to allow user to delete their own profile after login with their default id.

2022-12-24 Thread Manjusha
want to know how to allow user to delete the created profile with default 
id of the user.

On Saturday, December 24, 2022 at 8:52:32 PM UTC+5:30 Manjusha wrote:

> that incorrect picture
>
>
> On Saturday, December 24, 2022 at 8:51:56 PM UTC+5:30 Manjusha wrote:
>
>> actually the code I have written it is for function based view but it not 
>> working that's why I am trying to do with generic editing views sorry for 
>> that 
>>
>> On Saturday, December 24, 2022 at 8:45:05 PM UTC+5:30 Ryan Nowakowski 
>> wrote:
>>
>>> You're using a class-based view here but your code looks like it's 
>>> supposed to be for a function based view. Which style do you want to use?
>>>
>>>
>>> On December 24, 2022 8:13:09 AM CST, Manjusha  
>>> wrote:
>>>>
>>>> Hi, I have created authentication system in Django. Anyone just tell me 
>>>> how to allow user to delete the created profile with default id of the 
>>>> user.[image: 
>>>> Screenshot 2022-12-24 193133.png]. I I am using built-in  User 
>>>> authentication libraries for this purpose and haven't created database 
>>>> model for the user. But the function (the commented function under 
>>>> delete_account) that I have created it is not deleting the user.
>>>> Now I am trying to delete user profile using generic editing views  of 
>>>> Django.
>>>> Anyone tell me how to allow user to delete the created profile with 
>>>> default id of the user.
>>>>
>>>>

-- 
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/45912e33-592c-4ca2-b618-c8fb9a1b6066n%40googlegroups.com.


Re: How to allow user to delete their own profile after login with their default id.

2022-12-24 Thread Manjusha
that incorrect picture


On Saturday, December 24, 2022 at 8:51:56 PM UTC+5:30 Manjusha wrote:

> actually the code I have written it is for function based view but it not 
> working that's why I am trying to do with generic editing views sorry for 
> that 
>
> On Saturday, December 24, 2022 at 8:45:05 PM UTC+5:30 Ryan Nowakowski 
> wrote:
>
>> You're using a class-based view here but your code looks like it's 
>> supposed to be for a function based view. Which style do you want to use?
>>
>>
>> On December 24, 2022 8:13:09 AM CST, Manjusha  
>> wrote:
>>>
>>> Hi, I have created authentication system in Django. Anyone just tell me 
>>> how to allow user to delete the created profile with default id of the 
>>> user.[image: 
>>> Screenshot 2022-12-24 193133.png]. I I am using built-in  User 
>>> authentication libraries for this purpose and haven't created database 
>>> model for the user. But the function (the commented function under 
>>> delete_account) that I have created it is not deleting the user.
>>> Now I am trying to delete user profile using generic editing views  of 
>>> Django.
>>> Anyone tell me how to allow user to delete the created profile with 
>>> default id of the user.
>>>
>>>

-- 
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/a1d277c7-c066-4fbf-a879-cdaf9fb580dbn%40googlegroups.com.


Re: How to allow user to delete their own profile after login with their default id.

2022-12-24 Thread Manjusha
actually the code I have written it is for function based view but it not 
working that's why I am trying to do with generic editing views sorry for 
that 

On Saturday, December 24, 2022 at 8:45:05 PM UTC+5:30 Ryan Nowakowski wrote:

> You're using a class-based view here but your code looks like it's 
> supposed to be for a function based view. Which style do you want to use?
>
>
> On December 24, 2022 8:13:09 AM CST, Manjusha  
> wrote:
>>
>> Hi, I have created authentication system in Django. Anyone just tell me 
>> how to allow user to delete the created profile with default id of the 
>> user.[image: 
>> Screenshot 2022-12-24 193133.png]. I I am using built-in  User 
>> authentication libraries for this purpose and haven't created database 
>> model for the user. But the function (the commented function under 
>> delete_account) that I have created it is not deleting the user.
>> Now I am trying to delete user profile using generic editing views  of 
>> Django.
>> Anyone tell me how to allow user to delete the created profile with 
>> default id of the user.
>>
>>

-- 
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/22f29850-0cae-43d6-aa5d-17d6dde3b289n%40googlegroups.com.


Re: Arrayfield constraint issue in 4.1

2022-12-13 Thread Manjusha
I am not understanding what you are telling.

On Tuesday, December 13, 2022 at 3:58:19 PM UTC+5:30 rahul@gmail.com 
wrote:

> Last time i told u give me excess ur laptop 
>
> On Tue, Dec 13, 2022, 15:02 Manjusha  wrote:
>
>> Hey anyone reply me.
>
>
>>
>> On Monday, December 12, 2022 at 10:51:00 PM UTC+5:30 Manjusha wrote:
>>
>>> Yes,I got it !!
>>> I have a doubt about the following link :
>>> https://github.com/django/django/branches
>>>
>>> I want to ask you about this branches.desktop file.
>>> And I have attached a screenshot.
>>>
>>>
>>> On Mon, Dec 12, 2022 at 8:22 PM James Gillard  
>>> wrote:
>>>
>>>> I agree it looks odd, but the docs I linked say that list is fine, and 
>>>> here's example from a test inside Django itself: 
>>>> https://github.com/django/django/blob/cb791a2540c289390b68a3ea9c6a79476890bab2/tests/postgres_tests/models.py#L51
>>>>
>>>> [image: James from Journee] <https://www.journeetrips.com/ourstory>
>>>> *James Gillard*
>>>> *Technical Co-Founder at Journee*
>>>> Trustpilot 4.9⭑ 
>>>> <https://www.trustpilot.com/review/www.journeetrips.com>
>>>> Instagram <https://to.mysocial.io/s/rI_M3vpIK> | TikTok 
>>>> <https://to.mysocial.io/s/Gs-RQu8n7>
>>>> Journee, London, United Kingdom
>>>> [image: Journee Logo] <https://www.journeetrips.com/>
>>>>
>>>>
>>>> On Mon, 12 Dec 2022 at 14:45, Manjusha  wrote:
>>>>
>>>>> I think default should be assigned like this
>>>>>
>>>>>  default=[ ] or
>>>>> default= list()
>>>>>
>>>>>
>>>>> But I'm junior so may I don't know well
>>>>>
>>>>> On Mon, 12 Dec 2022, 03:13 James Gillard,  
>>>>> wrote:
>>>>>
>>>>>> The callable list is indeed assigned as the default for the 
>>>>>> ArrayField, as documented here: 
>>>>>> https://docs.djangoproject.com/en/4.1/ref/contrib/postgres/fields/#django.contrib.postgres.fields.ArrayField
>>>>>>
>>>>>> The original issue has already had a patch merged, which will be 
>>>>>> released in 4.1.5, see the fix here: 
>>>>>> https://docs.djangoproject.com/en/dev/releases/4.1.5/
>>>>>>
>>>>>> On Sunday, 11 December 2022 at 18:02:24 UTC manjushak...@gmail.com 
>>>>>> wrote:
>>>>>>
>>>>>>> Hello Sir, I need to understand the form.py  file because , what  is 
>>>>>>> the only list you have assigned as default in arrayfield, is it the 
>>>>>>> method 
>>>>>>> list() ?
>>>>>>>  
>>>>>>>
>>>>>>> On Sat, Dec 10, 2022 at 10:00 PM James Gillard <
>>>>>>> ja...@journeetrips.com> wrote:
>>>>>>>
>>>>>>>> Thanks for the feedback. I opened a ticket and it was indeed 
>>>>>>>> confirmed as a bug: https://code.djangoproject.com/ticket/34205
>>>>>>>>
>>>>>>>> On Thursday, 8 December 2022 at 15:04:40 UTC Ryan Nowakowski wrote:
>>>>>>>>
>>>>>>>>> Might be a bug. Check the release notes for the post 4.0.8 
>>>>>>>>> versions to see if anything related changed. File a bug with the 
>>>>>>>>> simplest 
>>>>>>>>> example code that demonstrates the issue.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On December 8, 2022 6:37:52 AM CST, James Gillard <
>>>>>>>>> ja...@journeetrips.com> wrote:
>>>>>>>>>>
>>>>>>>>>> I can't yet work out whether this is a Django bug or how I'm 
>>>>>>>>>> using model constraints... Upgraded from 4.0.8 to 4.1.4 and have hit 
>>>>>>>>>> this 
>>>>>>>>>> issue when saving this model in the admin. I'd read in the release 
>>>>>>>>>> notes 
>>>>>>>>>> that these constraints would be validated on model save, and that's 
>>>>>>>>>> the 
>>>>>>>>>> code that's leading to this exception. If it's not something I've 
>&g

Re: Branches.desktop file with django

2022-12-13 Thread Manjusha
the github link which is have sent what is that?
And how that branches.desktop file is created I don't know.
Will you clarify that?

On Tuesday, December 13, 2022 at 3:52:01 PM UTC+5:30 bhuvn...@gmail.com 
wrote:

> hi Manjusha,
> could you please clarify what is your doubt exactly?
>
> On Tue, Dec 13, 2022 at 3:39 PM Manjusha  wrote:
>
>> I have a doubt about the following link :
>> https://github.com/django/django/branches
>>
>> I want to ask you about this branches.desktop file.
>> And I have attached a screenshot
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/f92a2ea4-0250-49e8-a4c5-35d98814d0a2n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/f92a2ea4-0250-49e8-a4c5-35d98814d0a2n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/5ea939cc-95e1-42bf-afbe-91b3648e0e5cn%40googlegroups.com.


Branches.desktop file with django

2022-12-13 Thread Manjusha
I have a doubt about the following link :
https://github.com/django/django/branches

I want to ask you about this branches.desktop file.
And I have attached a screenshot

-- 
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/f92a2ea4-0250-49e8-a4c5-35d98814d0a2n%40googlegroups.com.


Re: Arrayfield constraint issue in 4.1

2022-12-13 Thread Manjusha
Hey anyone reply me.

On Monday, December 12, 2022 at 10:51:00 PM UTC+5:30 Manjusha wrote:

> Yes,I got it !!
> I have a doubt about the following link :
> https://github.com/django/django/branches
>
> I want to ask you about this branches.desktop file.
> And I have attached a screenshot.
>
>
> On Mon, Dec 12, 2022 at 8:22 PM James Gillard  
> wrote:
>
>> I agree it looks odd, but the docs I linked say that list is fine, and 
>> here's example from a test inside Django itself: 
>> https://github.com/django/django/blob/cb791a2540c289390b68a3ea9c6a79476890bab2/tests/postgres_tests/models.py#L51
>>
>> [image: James from Journee] <https://www.journeetrips.com/ourstory>
>> *James Gillard*
>> *Technical Co-Founder at Journee*
>> Trustpilot 4.9⭑ <https://www.trustpilot.com/review/www.journeetrips.com>
>> Instagram <https://to.mysocial.io/s/rI_M3vpIK> | TikTok 
>> <https://to.mysocial.io/s/Gs-RQu8n7>
>> Journee, London, United Kingdom
>> [image: Journee Logo] <https://www.journeetrips.com/>
>>
>>
>> On Mon, 12 Dec 2022 at 14:45, Manjusha  wrote:
>>
>>> I think default should be assigned like this
>>>
>>>  default=[ ] or
>>> default= list()
>>>
>>>
>>> But I'm junior so may I don't know well
>>>
>>> On Mon, 12 Dec 2022, 03:13 James Gillard,  
>>> wrote:
>>>
>>>> The callable list is indeed assigned as the default for the ArrayField, 
>>>> as documented here: 
>>>> https://docs.djangoproject.com/en/4.1/ref/contrib/postgres/fields/#django.contrib.postgres.fields.ArrayField
>>>>
>>>> The original issue has already had a patch merged, which will be 
>>>> released in 4.1.5, see the fix here: 
>>>> https://docs.djangoproject.com/en/dev/releases/4.1.5/
>>>>
>>>> On Sunday, 11 December 2022 at 18:02:24 UTC manjushak...@gmail.com 
>>>> wrote:
>>>>
>>>>> Hello Sir, I need to understand the form.py  file because , what  is 
>>>>> the only list you have assigned as default in arrayfield, is it the 
>>>>> method 
>>>>> list() ?
>>>>>  
>>>>>
>>>>> On Sat, Dec 10, 2022 at 10:00 PM James Gillard  
>>>>> wrote:
>>>>>
>>>>>> Thanks for the feedback. I opened a ticket and it was indeed 
>>>>>> confirmed as a bug: https://code.djangoproject.com/ticket/34205
>>>>>>
>>>>>> On Thursday, 8 December 2022 at 15:04:40 UTC Ryan Nowakowski wrote:
>>>>>>
>>>>>>> Might be a bug. Check the release notes for the post 4.0.8 versions 
>>>>>>> to see if anything related changed. File a bug with the simplest 
>>>>>>> example 
>>>>>>> code that demonstrates the issue.
>>>>>>>
>>>>>>>
>>>>>>> On December 8, 2022 6:37:52 AM CST, James Gillard <
>>>>>>> ja...@journeetrips.com> wrote:
>>>>>>>>
>>>>>>>> I can't yet work out whether this is a Django bug or how I'm using 
>>>>>>>> model constraints... Upgraded from 4.0.8 to 4.1.4 and have hit this 
>>>>>>>> issue 
>>>>>>>> when saving this model in the admin. I'd read in the release notes 
>>>>>>>> that 
>>>>>>>> these constraints would be validated on model save, and that's the 
>>>>>>>> code 
>>>>>>>> that's leading to this exception. If it's not something I've done, it 
>>>>>>>> seems 
>>>>>>>> ArrayField isn't working with this new validation of my condition. The 
>>>>>>>> same 
>>>>>>>> happens for Q(phone_numbers__len__gte=0), and the error disappears if 
>>>>>>>> I 
>>>>>>>> comment out this condition. It seems the generated code might be 
>>>>>>>> wrong, as 
>>>>>>>> I see 12 "%s" and only 11 elements in params. All it's trying to do is 
>>>>>>>> ensure that an empty list isn't considered unique.
>>>>>>>>
>>>>>>>> Here's the failing model:
>>>>>>>>
>>>>>>>> phone_numbers = ArrayField(models.CharField(max_length=200), 
>>>>>>>> default=list, blank=True)
>&

Re: Permission for admin to add patient

2022-12-12 Thread Manjusha
I'm junior may it will work!!

On Tuesday, December 13, 2022 at 12:31:17 PM UTC+5:30 Manjusha wrote:

> Hi, need to register the model.py file in admin.py file and then make 
> migrations as like mention in following documentation.
> https://docs.djangoproject.com/en/4.1/intro/tutorial02/
>
> On Monday, December 12, 2022 at 4:49:26 AM UTC+5:30 curtis...@gmail.com 
> wrote:
>
>> Hello to all. Please, I would like to know in Django, how to allow an 
>> administrator to add a patient, but not a simple connected user? the 
>> following pics are my models.py, view.py and my template.py.
>>
>

-- 
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/4ce231dd-8fb3-474a-b359-7a549837e07bn%40googlegroups.com.


Re: Permission for admin to add patient

2022-12-12 Thread Manjusha
Hi, need to register the model.py file in admin.py file and then make 
migrations as like mention in following documentation.
https://docs.djangoproject.com/en/4.1/intro/tutorial02/

On Monday, December 12, 2022 at 4:49:26 AM UTC+5:30 curtis...@gmail.com 
wrote:

> Hello to all. Please, I would like to know in Django, how to allow an 
> administrator to add a patient, but not a simple connected user? the 
> following pics are my models.py, view.py and my template.py.
>

-- 
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/00c5b214-27be-432e-a862-d8c8394f8d5cn%40googlegroups.com.


Re: Arrayfield constraint issue in 4.1

2022-12-12 Thread Manjusha
I think default should be assigned like this

 default=[ ] or
default= list()


But I'm junior so may I don't know well

On Mon, 12 Dec 2022, 03:13 James Gillard,  wrote:

> The callable list is indeed assigned as the default for the ArrayField, as
> documented here:
> https://docs.djangoproject.com/en/4.1/ref/contrib/postgres/fields/#django.contrib.postgres.fields.ArrayField
>
> The original issue has already had a patch merged, which will be released
> in 4.1.5, see the fix here:
> https://docs.djangoproject.com/en/dev/releases/4.1.5/
>
> On Sunday, 11 December 2022 at 18:02:24 UTC manjushak...@gmail.com wrote:
>
>> Hello Sir, I need to understand the form.py  file because , what  is the
>> only list you have assigned as default in arrayfield, is it the method
>> list() ?
>>
>>
>> On Sat, Dec 10, 2022 at 10:00 PM James Gillard 
>> wrote:
>>
>>> Thanks for the feedback. I opened a ticket and it was indeed confirmed
>>> as a bug: https://code.djangoproject.com/ticket/34205
>>>
>>> On Thursday, 8 December 2022 at 15:04:40 UTC Ryan Nowakowski wrote:
>>>
 Might be a bug. Check the release notes for the post 4.0.8 versions to
 see if anything related changed. File a bug with the simplest example code
 that demonstrates the issue.


 On December 8, 2022 6:37:52 AM CST, James Gillard <
 ja...@journeetrips.com> wrote:
>
> I can't yet work out whether this is a Django bug or how I'm using
> model constraints... Upgraded from 4.0.8 to 4.1.4 and have hit this issue
> when saving this model in the admin. I'd read in the release notes that
> these constraints would be validated on model save, and that's the code
> that's leading to this exception. If it's not something I've done, it 
> seems
> ArrayField isn't working with this new validation of my condition. The 
> same
> happens for Q(phone_numbers__len__gte=0), and the error disappears if I
> comment out this condition. It seems the generated code might be wrong, as
> I see 12 "%s" and only 11 elements in params. All it's trying to do is
> ensure that an empty list isn't considered unique.
>
> Here's the failing model:
>
> phone_numbers = ArrayField(models.CharField(max_length=200),
> default=list, blank=True)
>
> class Meta:
> constraints = [
> models.UniqueConstraint(
>fields=['phone_numbers'],
>condition=~Q(phone_numbers__len=0),
>name='unique_email_phones',
> ),
> ]
> )
>
> [image: Screenshot 2022-12-08 at 12.30.35.png]
>
> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/4a8a0941-dd65-4c22-bf16-4e11181794a0n%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/29d9d224-3027-4346-9552-8fcadedd21dfn%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/CAGz3pXL8EHtARE_PLX0MM4jnGWBRq%2BAE-Bc9%2B7dsJtxKHYdnrA%40mail.gmail.com.


Re: Arrayfield constraint issue in 4.1

2022-12-11 Thread Manjusha
Hello Sir, I need to understand the form.py  file because , what  is the
only list you have assigned as default in arrayfield, is it the method
list() ?


On Sat, Dec 10, 2022 at 10:00 PM James Gillard 
wrote:

> Thanks for the feedback. I opened a ticket and it was indeed confirmed as
> a bug: https://code.djangoproject.com/ticket/34205
>
> On Thursday, 8 December 2022 at 15:04:40 UTC Ryan Nowakowski wrote:
>
>> Might be a bug. Check the release notes for the post 4.0.8 versions to
>> see if anything related changed. File a bug with the simplest example code
>> that demonstrates the issue.
>>
>>
>> On December 8, 2022 6:37:52 AM CST, James Gillard 
>> wrote:
>>>
>>> I can't yet work out whether this is a Django bug or how I'm using model
>>> constraints... Upgraded from 4.0.8 to 4.1.4 and have hit this issue when
>>> saving this model in the admin. I'd read in the release notes that these
>>> constraints would be validated on model save, and that's the code that's
>>> leading to this exception. If it's not something I've done, it seems
>>> ArrayField isn't working with this new validation of my condition. The same
>>> happens for Q(phone_numbers__len__gte=0), and the error disappears if I
>>> comment out this condition. It seems the generated code might be wrong, as
>>> I see 12 "%s" and only 11 elements in params. All it's trying to do is
>>> ensure that an empty list isn't considered unique.
>>>
>>> Here's the failing model:
>>>
>>> phone_numbers = ArrayField(models.CharField(max_length=200),
>>> default=list, blank=True)
>>>
>>> class Meta:
>>> constraints = [
>>> models.UniqueConstraint(
>>>fields=['phone_numbers'],
>>>condition=~Q(phone_numbers__len=0),
>>>name='unique_email_phones',
>>> ),
>>> ]
>>> )
>>>
>>> [image: Screenshot 2022-12-08 at 12.30.35.png]
>>>
>>> --
> 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/4a8a0941-dd65-4c22-bf16-4e11181794a0n%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/CAGz3pXKTMhbZjuxQh-GkufLhgFuBVpGjNhWLDVe-NDNQDTYZfA%40mail.gmail.com.