Re: chatbot project

2023-05-24 Thread Helly Modi
There is a playlist in django where you will learn to create chatbot.Here 
is the linkhttps://youtu.be/0QdvjF83x7A.check this.It will be great help to 
you.

On Thursday, May 25, 2023 at 6:51:21 AM UTC+5:30 Anish Kumar wrote:

> can some one help me with source code i am a final year student and i 
> resgistered my name for python django chatbot project but i am a fresher so 
> i am have some problem in django chatbot project

-- 
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/61ee59c8-1177-4f26-a117-a742b349485cn%40googlegroups.com.


Re: Tokenized Authentication for subdomains

2023-05-24 Thread Vishesh Mangla
use nginx as reverse proxy

On Thu, 25 May, 2023, 07:35 André Lewis,  wrote:

> Hi,
>
> I'm currently working on a project with subdomains, and I wanted to
> authenticate the user across the site, regardless of the url. I did some
> digging and found some ideas for implementing Oauth/openID connect
> authentication in Django (wasn't much help). Seeing, I don't intend on
> using third-party providers for this one.
>
>  I have an idea of how it should work 'on paper', but it gets fuzzy when I
> start thinking about server-end verification; how the token is generated,
> and how I get access to it for later verification.
>
> Any suggestions, would be really helpful?
> Thanks in advance.
>
> --
> 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/CAJN6x_gEgbE87yg0NpzhS_Rr_BEwWwo7HkWT02JRccfCfWS2Gw%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/CACaE8x6BmDOopm%2BF9fwMHLn3e3FiskdASrvTOMj%2BJEbxjrrC9Q%40mail.gmail.com.


Tokenized Authentication for subdomains

2023-05-24 Thread André Lewis
Hi,

I'm currently working on a project with subdomains, and I wanted to
authenticate the user across the site, regardless of the url. I did some
digging and found some ideas for implementing Oauth/openID connect
authentication in Django (wasn't much help). Seeing, I don't intend on
using third-party providers for this one.

 I have an idea of how it should work 'on paper', but it gets fuzzy when I
start thinking about server-end verification; how the token is generated,
and how I get access to it for later verification.

Any suggestions, would be really helpful?
Thanks in advance.

-- 
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/CAJN6x_gEgbE87yg0NpzhS_Rr_BEwWwo7HkWT02JRccfCfWS2Gw%40mail.gmail.com.


Re: importing ultralytics in Django rest framework

2023-05-24 Thread Muhammad Juwaini Abdul Rahman
Google search on the error message returned this:
https://stackoverflow.com/questions/48428415/importerror-libcublas-so-9-0-cannot-open-shared-object-file

On Thu, 25 May 2023 at 09:20, Mahmoud Aboelsoud <
mahmoudabooelso...@gmail.com> wrote:

> Hello, how are you?
>
> I'm trying to import and use ultralytics library in my Django rest
> framework app and I receive this error *ValueError: libcublas.so.*[0-9]
> not found in the system path *does anybody know how to solve this error?
>
> --
> 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/b124d7a2-4ea5-4537-85f8-1e4d1f1f67a3n%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/CAFKhtoRgFRdT8ERFYUxu2K9xDSDgGWTceF0nLFo1f4S%2BT2Dvuw%40mail.gmail.com.


Re: group by "project"

2023-05-24 Thread Muhammad Juwaini Abdul Rahman
Do you realize what 'Count' do?

On Thu, 25 May 2023 at 09:20, 'Mohamed Yahiya Shajahan' via Django users <
django-users@googlegroups.com> wrote:

> def list(self, request, *args, **kwargs):
> project_id = self.request.query_params.get('project_id')
> if project_id:
> queryset = RegistrationDatesSlots.objects.values('date').
> annotate(project=Count('project')).filter(project=project_id)
> # queryset =
> RegistrationDatesSlots.objects.filter(project=project_id).query.group_by=['project']
> else:
> queryset = RegistrationDatesSlots.objects.all().values(
> 'project', 'date')
>
> serialized_data = []
> for item in queryset:
> serialized_item = {
> 'date': item['date'],
> 'project': item['project']
> }
> serialized_data.append(serialized_item)
> return Response(serialized_data)
>
>
> this is my views i want to group by "project" but shows only one record,
> i know there are multiple records there
>
>
>
>  The content of this email is confidential and intended for the recipient
> specified in message only. It is strictly forbidden to share any part of
> this message with any third party, without a written consent of the sender.
> If you received this message by mistake, please reply to this message and
> follow with its deletion, so that we can ensure such a mistake does not
> occur in the future.
>
> SAVE PAPER | Good for your planet | Good for your Business
>
> --
> 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/016aad73-74fc-49c3-80e7-c8d68ea0a6ddn%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/CAFKhtoRK8pazHODO6z5mVjNBaToJhz8%2BuBSu%3DVph7jwfor5u1g%40mail.gmail.com.


chatbot project

2023-05-24 Thread Anish Kumar
can some one help me with source code i am a final year student and i 
resgistered my name for python django chatbot project but i am a fresher so 
i am have some problem in django chatbot project

-- 
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/efab20ef-ba9c-4831-84de-86b121e45581n%40googlegroups.com.


group by "project"

2023-05-24 Thread 'Mohamed Yahiya Shajahan' via Django users
 def list(self, request, *args, **kwargs):
project_id = self.request.query_params.get('project_id')
if project_id:
queryset = RegistrationDatesSlots.objects.values('date').
annotate(project=Count('project')).filter(project=project_id)
# queryset = 
RegistrationDatesSlots.objects.filter(project=project_id).query.group_by=['project']
else:
queryset = RegistrationDatesSlots.objects.all().values('project', 
'date')

serialized_data = []
for item in queryset:
serialized_item = {
'date': item['date'],
'project': item['project']
}
serialized_data.append(serialized_item)
return Response(serialized_data)


this is my views i want to group by "project" but shows only one record,
i know there are multiple records there 


-- 


 The content of this
email is confidential and intended for the recipient 
specified in message only.
It is strictly forbidden to share any part of 
this message with any third
party, without a written consent of the sender. 
If you received this message by
mistake, please reply to this message and 
follow with its deletion, so that we
can ensure such a mistake does not 
occur in the future.



SAVE PAPER |
Good for your planet | Good for your 
Business

-- 
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/016aad73-74fc-49c3-80e7-c8d68ea0a6ddn%40googlegroups.com.


RE: Please help me solving this error

2023-05-24 Thread prdpchowdhary
My code is import re iine = “My name is Bahtta. I want to learn”print(re.findall('[aeiou]+', line))And is it is running okSent from Mail for Windows From: Ramesh BhattaSent: Wednesday, May 24, 2023 6:41 AMTo: django-users@googlegroups.comSubject: Please help me solving this error Traceback (most recent call last):  File "C:\users\rudra\desktop\python\client2.py", line 1, in     import urllib.request  File "C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 84, in     import base64  File "C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\base64.py", line 9, in     import re  File "C:\users\rudra\desktop\python\re.py", line 23    print(re.findall('[aeiou]+',line))                                      ^ --   -- 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/CAHrGOLFQmheaL1frkawv4obMJF5%3DPfmsPxH2nmRrPPwdoCAHeA%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/8D557F9E-04E5-4E55-857D-A6E7B2008640%40hxcore.ol.


Re: Unable to write to database

2023-05-24 Thread Jun Say
May i have a question related to Django?


On Tuesday, May 23, 2023 at 5:14:57 AM UTC-7 William Nash (Bill) wrote:

>
> The system permission solved the issues.  Thank you.
>
> On Monday, May 22, 2023 at 10:51:13 AM UTC-5 Dev Femi Badmus wrote:
>
>> I have similar error is due to system permission are you running on Linux?
>>
>> chown www-data:www-data /home/username/project-folder
>>
>> chown www-data:www-data /home/username/project-folder/db.sqlite3
>>
>

-- 
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/5399890b-59a8-41a5-9bc0-4e5acf7f1e42n%40googlegroups.com.


importing ultralytics in Django rest framework

2023-05-24 Thread Mahmoud Aboelsoud
Hello, how are you?

I'm trying to import and use ultralytics library in my Django rest 
framework app and I receive this error *ValueError: libcublas.so.*[0-9] not 
found in the system path *does anybody know how to solve this error?

-- 
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/b124d7a2-4ea5-4537-85f8-1e4d1f1f67a3n%40googlegroups.com.


Re: Dynamic Table

2023-05-24 Thread Jason
I hope you can understand the security implications of this and are 
knowledgeable on the places where you need to lock down access.  
On Wednesday, May 24, 2023 at 6:47:14 AM UTC-4 Helly Modi wrote:

> we have to create this project where user can enter all details of table 
> from frontend and table is created in backend so this idea was given where 
> these and have to work on this idea only.see image for better understanding.
>
> On Wed, May 24, 2023 at 4:10 PM Anh Nguyen  wrote:
>
>> So what is your problems and why do we need a dynamic table?
>>
>> On Wed, 24 May 2023 at 14:34 Helly Modi  wrote:
>>
>>> worked on this option only .even tried dynamic django models but didn't 
>>> work because of sustainable.if someone have the options or way to handle 
>>> then please give
>>>
>>>
>>> On Wednesday, May 24, 2023 at 11:06:23 AM UTC+5:30 Anh Nguyen wrote:
>>>
 Even your migrate works fine but you have to reload your runtime to 
 apply new codebase to de-encode data. So go back and find another solution.

 On Wed, 24 May 2023 at 12:22 Helly Modi  wrote:

> I have to create dynamic table at runtime where user enters the 
> details of table name,table column,table fields,constraints.take this 
> input 
> in backend and create table dynamically without creating schemas of 
> tables 
> as tables are created at runtime .first approach is that we will create 
> one 
> table where all the fields are mentioned where primary key,secondary 
> key,unique,not niull and all the constraints are mentioned in horizontal 
> column.now we have to create table 2 where user will select whild field 
> id 
> he want to select .suppose if user wants to create primary key then it 
> will 
> select field 1 in second table so it is refered from main table.and then 
> table is created do you know how this works in django from backend side
>
> -- 
> 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/24b3cec9-f614-4592-a1de-e69f2a71bc3fn%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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/104d78f3-3aa0-4962-a640-d4a59eca717fn%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKaoNbT0DsxHt_N6L%2B%2Bn-YV-KrGY%2BN8onNAymkOq2BxAVGO99Q%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/a0f96f17-8881-4bb4-9540-fe0d38594d63n%40googlegroups.com.


Re: Dynamic Table

2023-05-24 Thread Anh Nguyen
So what is your problems and why do we need a dynamic table?

On Wed, 24 May 2023 at 14:34 Helly Modi  wrote:

> worked on this option only .even tried dynamic django models but didn't
> work because of sustainable.if someone have the options or way to handle
> then please give
>
>
> On Wednesday, May 24, 2023 at 11:06:23 AM UTC+5:30 Anh Nguyen wrote:
>
>> Even your migrate works fine but you have to reload your runtime to apply
>> new codebase to de-encode data. So go back and find another solution.
>>
>> On Wed, 24 May 2023 at 12:22 Helly Modi  wrote:
>>
>>> I have to create dynamic table at runtime where user enters the details
>>> of table name,table column,table fields,constraints.take this input in
>>> backend and create table dynamically without creating schemas of tables as
>>> tables are created at runtime .first approach is that we will create one
>>> table where all the fields are mentioned where primary key,secondary
>>> key,unique,not niull and all the constraints are mentioned in horizontal
>>> column.now we have to create table 2 where user will select whild field id
>>> he want to select .suppose if user wants to create primary key then it will
>>> select field 1 in second table so it is refered from main table.and then
>>> table is created do you know how this works in django from backend side
>>>
>>> --
>>> 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/24b3cec9-f614-4592-a1de-e69f2a71bc3fn%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/104d78f3-3aa0-4962-a640-d4a59eca717fn%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/CAKaoNbT0DsxHt_N6L%2B%2Bn-YV-KrGY%2BN8onNAymkOq2BxAVGO99Q%40mail.gmail.com.


Re: Dynamic Table

2023-05-24 Thread Helly Modi
worked on this option only .even tried dynamic django models but didn't 
work because of sustainable.if someone have the options or way to handle 
then please give


On Wednesday, May 24, 2023 at 11:06:23 AM UTC+5:30 Anh Nguyen wrote:

> Even your migrate works fine but you have to reload your runtime to apply 
> new codebase to de-encode data. So go back and find another solution.
>
> On Wed, 24 May 2023 at 12:22 Helly Modi  wrote:
>
>> I have to create dynamic table at runtime where user enters the details 
>> of table name,table column,table fields,constraints.take this input in 
>> backend and create table dynamically without creating schemas of tables as 
>> tables are created at runtime .first approach is that we will create one 
>> table where all the fields are mentioned where primary key,secondary 
>> key,unique,not niull and all the constraints are mentioned in horizontal 
>> column.now we have to create table 2 where user will select whild field id 
>> he want to select .suppose if user wants to create primary key then it will 
>> select field 1 in second table so it is refered from main table.and then 
>> table is created do you know how this works in django from backend side
>>
>> -- 
>> 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/24b3cec9-f614-4592-a1de-e69f2a71bc3fn%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/104d78f3-3aa0-4962-a640-d4a59eca717fn%40googlegroups.com.