Re: Facing FileNotFound Error

2022-12-26 Thread 'Kasper Laudrup' via Django users

On 26/12/2022 09.11, MaheshKumar wrote:

Hi,

I just facing an FileNotFound Error while runserver through the poetry 
shell with settings config.


Please help to resolve this



This will guide you in the right direction:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,
Kasper Laudrup

--
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/43ffeb0f-15d0-1801-16aa-48ae7132a170%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


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

2022-12-26 Thread Raj Mandaviya
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/61331ab5-d9a7-46a8-b770-649cffb8a6c0n%40googlegroups.com.


can any one help

2022-12-26 Thread 'Gaurav Mishra' via Django users
i have a list of items .and user can generate pdf of that item but one 
condition is there when user genrate pdf after that when new item added in 
list and after adding if your generate pdf then he show only newly added 
item.

i need help?

-- 
This e-mail and any files transmitted with it may contain confidential and 
privileged information are for the sole use of the intended recipient(s). 
If you are not the intended recipient, please apprise the sender by reply 
e-mail and destroy all copies and the original message. Any unauthorised 
disclosure, dissemination, forwarding, printing or copying of this email or 
any action taken on this e-mail is strictly prohibited and may be unlawful. 
The recipient acknowledges that Jellyfish Technologies or its subsidiaries 
and associated companies, are unable to exercise control or ensure or 
guarantee the integrity of the contents of the information contained in 
e-mail transmissions and further acknowledges that any views expressed in 
this message are those of the individual senders and no binding nature of 
the message shall be implied or assumed unless the sender does so expressly 
with due authority of Jellyfish Technologies. Since Jellyfish Technologies 
cannot make a warranty that this email is free of virus/errors, kindly scan 
the email with antivirus software before opening the attachments/links.

-- 
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/18098e97-f808-48c3-93db-a1b9b3d5dbb9n%40googlegroups.com.


Re: Need help Scraping a couple of websites

2022-12-26 Thread Raj Mandaviya
Thank you for the info. Does this mean I can make a repo for the Scrapper I 
created with Flask on GitHub and not be affected?

On Friday, December 23, 2022 at 11:41:27 PM UTC+5:30 
bscho...@schollnick.net wrote:

> > I can scrap for you. I just created an IMDB scrapper(which is illegal, 
> so not going to post the code anywhere but mailed IMDb about it) in the 
> flask.
> > Also, have experience in Django and web scrapping using bs4.
>
> illegal? Against Copyright, and maybe not permitted by End-User License. 
>
> But illegal? You’re not going to go to jail if you scrape IMDB, as an 
> individual user. If you do it as part of a company, that company will 
> probably be issued a cease and desist… And if they don’t comply they’ll get 
> IP blocked, and possibly sued. But once again, I suspect that would be 
> civil, and maybe not criminal? I’m not sure… 
>
> But IMDB can’t do anything to prevent someone from scraping the web site, 
> as a individual, as long as you don’t draw attention to yourself.
>
> - Benjamin
>
>

-- 
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/d033cab5-a552-4ea4-b5d6-ef8aa9b8440dn%40googlegroups.com.


Re: can any one help

2022-12-26 Thread 'Kasper Laudrup' via Django users

On 25/12/2022 21.18, 'Gaurav Mishra' via Django users wrote:
i have a list of items .and user can generate pdf of that item but one 
condition is there when user genrate pdf after that when new item added 
in list and after adding if your generate pdf then he show only newly 
added item.


i need help?



I think you need help in writing a question. It is impossible to 
understand what you are trying to do, so no one will be able to help you.


Maybe share the code you have so far and take some time to write a 
question in proper English?


Kind regards,
Kasper Laudrup

--
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/2a82314a-c8b5-9d4c-22aa-87887377a454%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need help Scraping a couple of websites

2022-12-26 Thread John McClain
I’m not needing to scrape anything illegal

I need product details and associated images from collections on furniture
mfg websites

I have permission to do so no issues with data being collected

I need data scraped to be cleansed and delivered in csv

I do not need the scraping routine designed fir future use, this one time
scrape. However, if data collected is not sufficient you may need to repeat
the process

On Mon 26 Dec 2022 at 14:39, Raj Mandaviya  wrote:

> Thank you for the info. Does this mean I can make a repo for the Scrapper
> I created with Flask on GitHub and not be affected?
>
> On Friday, December 23, 2022 at 11:41:27 PM UTC+5:30
> bscho...@schollnick.net wrote:
>
>> > I can scrap for you. I just created an IMDB scrapper(which is illegal,
>> so not going to post the code anywhere but mailed IMDb about it) in the
>> flask.
>> > Also, have experience in Django and web scrapping using bs4.
>>
>> illegal? Against Copyright, and maybe not permitted by End-User License.
>>
>> But illegal? You’re not going to go to jail if you scrape IMDB, as an
>> individual user. If you do it as part of a company, that company will
>> probably be issued a cease and desist… And if they don’t comply they’ll get
>> IP blocked, and possibly sued. But once again, I suspect that would be
>> civil, and maybe not criminal? I’m not sure…
>>
>> But IMDB can’t do anything to prevent someone from scraping the web site,
>> as a individual, as long as you don’t draw attention to yourself.
>>
>> - Benjamin
>>
>> --
> 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/d033cab5-a552-4ea4-b5d6-ef8aa9b8440dn%40googlegroups.com
> 
> .
>
-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_r8YPe%2BzDZZBjTrtxw8EOn3hbmcMyVbf_7WaYQt828LYQ%40mail.gmail.com.


Re: can any one help

2022-12-26 Thread Eng Thanoon
Don't understand questions perfect.
But if your question is
you have list and make pdf
Then try to generate new pdf from items
You want the new pdf have only new items ( not include old items in new pdf
) ?

You can add( is_add_to_pdf ) bool field to your items and make it true when
added to pdf
Then when generate other pdf exclude those items


في الاثنين، 26 ديسمبر 2022 5:47 م 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> كتب:

> On 25/12/2022 21.18, 'Gaurav Mishra' via Django users wrote:
> > i have a list of items .and user can generate pdf of that item but one
> > condition is there when user genrate pdf after that when new item added
> > in list and after adding if your generate pdf then he show only newly
> > added item.
> >
> > i need help?
> >
>
> I think you need help in writing a question. It is impossible to
> understand what you are trying to do, so no one will be able to help you.
>
> Maybe share the code you have so far and take some time to write a
> question in proper English?
>
> Kind regards,
> Kasper Laudrup
>
> --
> 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/2a82314a-c8b5-9d4c-22aa-87887377a454%40stacktrace.dk
> .
>

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


Re: Permission for admin to add patient

2022-12-26 Thread Karel Curtis
Thank you for helping.

Le dim. 18 déc. 2022 à 00:58, sere kaba  a écrit :

> from .model import Patient
> admin.site.register(Patient)
> or
> @admin.register(Patient)
>
> Le mardi 13 décembre 2022 à 13:02:28 UTC, abdur.r...@gmail.com a écrit :
>
>> Are you want to register your model on admin?
>>
>> On Tuesday, December 13, 2022 at 1:01:17 PM UTC+6 manjushak...@gmail.com
>> 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/770a82eb-9354-4c9f-9d35-4805f2e32e8an%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/CALxYoRJ01J0eo-XbnvS4roa-XCmUmM3NWEkQch1rQhgQ5LKEAA%40mail.gmail.com.