Re: help

2021-10-25 Thread Lakshyaraj Dash X-D 25
First do one thing that try uninstalling django. If it doesn't work, then
run python -m pip install django

On Tue, Oct 26, 2021, 01:29 Planet X  wrote:

> hey there i can not figure out while django is installed to but its
> showing django-admin is not recongnized as an internal or external command
> please help
>
> --
> 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/0261503c-4384-46a1-aa30-b37e53713abfn%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/CAF7qQgDZZ-Xgg0fK5kfk7B0mxUa7BxcSZyoNSjv8dscw%3Dpx2ZA%40mail.gmail.com.


Re: help

2021-10-25 Thread Aashish Kumar
Yes Django is not installed

On Tue, 26 Oct 2021 at 1:29 AM, Planet X  wrote:

> hey there i can not figure out while django is installed to but its
> showing django-admin is not recongnized as an internal or external command
> please help
>
> --
> 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/0261503c-4384-46a1-aa30-b37e53713abfn%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/CACTAcryHVi4KhpwLRg0nwb-pOg-Z8hbjMkAVidGqi9--HnuQeA%40mail.gmail.com.


help

2021-10-25 Thread Planet X
hey there i can not figure out while django is installed to but its showing 
django-admin is not recongnized as an internal or external command please 
help

-- 
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/0261503c-4384-46a1-aa30-b37e53713abfn%40googlegroups.com.


Re: Send PDF as an email's attachment ( Working with xhtml2pdf library)

2021-10-25 Thread Luis Zárate
Hi,

Here is solved:
https://github.com/luisza/async_notifications/blob/master/async_notifications/tasks.py

El vie, 8 oct 2021 a las 7:45, MR INDIA ()
escribió:

> Answer to this query on stack overflow
> 
> Raw link:
> https://stackoverflow.com/questions/33218629/attaching-pdfs-to-emails-in-django
> Hope this helps,
> A fellow django developer
> On Friday, 8 October 2021 at 00:19:36 UTC+5:30 sreebas...@gmail.com wrote:
>
>> Did you solve it? I need a similar solution.
>>
>> On Saturday, May 1, 2021 at 5:13:21 AM UTC+6 wwran...@gmail.com wrote:
>>
>>> Hi Dudes, Im working with pisa from xhtml2pdf LIB in order to get a pdf.
>>> That works OK, but i cant figure out how to attach the generated pdf to  an
>>> email  in order to send it . Anyone dealt with this? I would appreciate any
>>> help on this!
>>>
>>> *View*:
>>>
>>>   def get(self,request,*args,**kwargs):
>>> try:
>>>
>>> mailServer = 
>>> smtplib.SMTP(settings.EMAIL_HOST,settings.EMAIL_PORT)
>>> print(mailServer.ehlo())
>>> mailServer.starttls()
>>> print(mailServer.ehlo())
>>>
>>> 
>>> mailServer.login(settings.EMAIL_HOST_USER,settings.EMAIL_HOST_PASSWORD)
>>> print("conectando...")
>>> email_to=[]
>>> email_to.append("emailto...@gmail.com")
>>> subject="ADICRA - Comprobrante de Pago"
>>> template= get_template('pagos/invoice.html')
>>> context={
>>> 'sale': PagosHead.objects.get(pk=self.kwargs['pk']),
>>>
>>> 'comp': {'name':'ADICRA','ruc':'Av. Directorio Adicra 
>>> 101','address':'C.A.B.A.'},
>>>
>>> 'icon': 
>>> '{}{}'.format(settings.STATIC_URL,'core/img/adicrareng.jpg'),
>>>
>>> 
>>> 'equis':'{}{}'.format(settings.STATIC_URL,'pagos/img/x.jpg'),
>>> }
>>> html=template.render(context)
>>> response= HttpResponse(content_type='application/pdf')
>>>
>>> #response['Content-Disposition']='attachment; 
>>> filename="pago.pdf"' #Para Descargar
>>>
>>> pisaStatus=pisa.CreatePDF(html, 
>>> dest=response,link_callback=self.link_callback)
>>>
>>> mensaje = EmailMessage(subject, body=pdf, 
>>> from_email=settings.EMAIL_HOST_USER, to=email_to)
>>> print("Acá antes del attach")
>>> mensaje.attach('pago.pdf', pisaStatus,'application/pdf')
>>> mensaje.content_subtype = "pdf"
>>> mensaje.encoding = 'us-ascii'
>>> mensaje.send()
>>> #mailServer.sendmail(settings.EMAIL_HOST_USER,
>>>  #   email_to,
>>>   #  mensaje.as_string())
>>> print("Correo enviado correcamente")
>>> return response
>>> except Exception as e:
>>> print(e)
>>> return HttpResponse(reverse_lazy('pagos:list'))
>>>
>> --
> 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/7366b7b6-ae23-44cd-bceb-b7b340ecbefcn%40googlegroups.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOY8%2BLdOL40ZHCy_ikhC3_e8cLQbmUYZth8kJEPp6VNuQ%40mail.gmail.com.


how to solve that type of error

2021-10-25 Thread Ashutosh Gayakwad


Using the URLconf defined in shop.urls, Django tried these URL patterns, in 
this order

   
   

-- 
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/4fd8a821-27b9-42dc-aef4-03531801b8f9n%40googlegroups.com.


Re: How can I change the way of defining/binding namespaces for string array in zeep library?

2021-10-25 Thread Kasper Laudrup

On 25/10/2021 13.46, Sencer Hamarat wrote:


How can I force the zeep to generate string array XML like the format above?



Maybe you should ask in some kind of forum or similar related to zeep 
(whatever that is).


This mailing list is for Django users and I fail to see how this is 
related to that at all, unless I'm missing something?


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/ec2f6d57-47d9-1f03-3208-db4237846836%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


How can I change the way of defining/binding namespaces for string array in zeep library?

2021-10-25 Thread Sencer Hamarat
Zeep library is generating string arrays with each child tag has it's own
namespace definition:


http://schemas.microsoft.com/2003/10/Serialization/Arrays;>
https://www.example.com/variant_image.png

http://schemas.microsoft.com/2003/10/Serialization/Arrays;>
https://www.example.com/variant_image2.png

http://schemas.microsoft.com/2003/10/Serialization/Arrays;>
https://www.example.com/variant_image3.png



But, the API I'm dealing with is strictly want the namespace of the array
must be defined on parent tag and, same namespace must be used on each
child tag. Eg.

http://schemas.microsoft.com/2003/10/Serialization/Arrays;>
https://www.siteniz.com/variant_image.png
https://www.siteniz.com/variant_image2.png

https://www.siteniz.com/variant_image3.png

How can I force the zeep to generate string array XML like the format above?

Regards,
Sencer HAMARAT

-- 
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/CACp8TZioP-NM%2B8Nv9sVw6rYCzM%2Bj9tWFeRkutSu7r3ZCM6-cVw%40mail.gmail.com.


Django 4.0 beta 1 released

2021-10-25 Thread Mariusz Felisiak

Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2021/oct/25/django-40-beta-1-released/

--
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/f6385d97-f397-55b7-5b4f-d909aadbf79f%40gmail.com.