Re: Project together

2023-11-23 Thread Jacob Greene
🤣

On Thu, Nov 23, 2023, 5:05 PM Joshua Olatunji 
wrote:

> https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9
>
> On Thu, Nov 23, 2023, 9:34 PM Dawda Borje Kujabi 
> wrote:
>
>> Your link is not working for me
>>
>>
>>  Original message 
>> From: Joshua Olatunji 
>> Date: Thu, 23 Nov 2023, 6:37 pm
>> To: django-users@googlegroups.com
>> Subject: Re: Project together
>>
>> Join Django Africa too: https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9
>>
>> On Thu, Nov 23, 2023, 7:31 PM Space1 Technology 
>> wrote:
>>
>> I had just started Django but have being a developer if you don’t mind am
>> interested. This is my WhatsApp number: +2347081424159
>>
>> On Thu, 23 Nov 2023 at 19:13, Youssef Bachraoui <
>> bachraouiyouss...@gmail.com> wrote:
>>
>> Hi developer i search to make a group on WhatsApp to begin a project
>> together anyone interested about that?
>>
>> --
>> 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/d5244e76-6bd3-4bde-bf31-a72720bee1acn%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/CAPSG2fdV-WNbfUV7Wzti0LRHmwugVG5qrBGmKVmxNaXuffsiJw%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/CAEL9fCE7_%2BjHh_eqoeOJK_SjfbGYeSCXW2F-7UH5EgisoAvFrA%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/-4jjuiu-w8m5p6x2f3te-zhtju6qvqup1-4c432g2bwmwp-3kt1s0hvf9e3fn0jsktqwoqg69rfx6a43rzlnjubbk3y2bxz-b35xz9-efimqc-eqll9a39ek34-mpkx1n9uvty5gqxwk0ero9ww9gdd9q.1700771628071%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/CAEL9fCG%2BFAdqNA-mycsEM1PC9yUY60C62f-fukQoWmJ%3DsY-GFA%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/CAF-Y%3De6iiyzK9QsdHQmNVy3ag9D1ypaO_qv9G%3Dh2xSMAOpNz9w%40mail.gmail.com.


Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
Get bent my guy.

On Sun, Mar 12, 2023, 11:59 PM Jacob Greene 
wrote:

> Lmao wtf is this troll
>
> On Sun, Mar 12, 2023, 5:51 PM Michael Starr  wrote:
>
>> I'll roll over and die then. Thank you for contributing to the Russian
>> cause. My parents would be proud.
>>
>> On Sunday, March 12, 2023 at 3:37:58 PM UTC-7 Sebastian Jung wrote:
>>
>>> Please stop this propaganda... This haven't nothing to do with django
>>>
>>> Michael Starr  schrieb am So., 12. März 2023, 23:20:
>>>
>>>> Russia's influence in America is powerful. How do you fight it?
>>>>
>>>> --
>>>> 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/74de4d4b-230d-470a-a7c0-0c1e875154e4n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/74de4d4b-230d-470a-a7c0-0c1e875154e4n%40googlegroups.com?utm_medium=email&utm_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/90a5fa71-7ffa-4ef8-8046-35f9988f3ac9n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/90a5fa71-7ffa-4ef8-8046-35f9988f3ac9n%40googlegroups.com?utm_medium=email&utm_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/CAF-Y%3De7rAp0NpwTDWbaDD45ZLiwCY2Mn%3DpJJPwtykDEvrDehnw%40mail.gmail.com.


Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
Lmao wtf is this troll

On Sun, Mar 12, 2023, 5:51 PM Michael Starr  wrote:

> I'll roll over and die then. Thank you for contributing to the Russian
> cause. My parents would be proud.
>
> On Sunday, March 12, 2023 at 3:37:58 PM UTC-7 Sebastian Jung wrote:
>
>> Please stop this propaganda... This haven't nothing to do with django
>>
>> Michael Starr  schrieb am So., 12. März 2023, 23:20:
>>
>>> Russia's influence in America is powerful. How do you fight it?
>>>
>>> --
>>> 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/74de4d4b-230d-470a-a7c0-0c1e875154e4n%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/90a5fa71-7ffa-4ef8-8046-35f9988f3ac9n%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/CAF-Y%3De6BdgDfVAhg%2B7MJQ00G%3DX09AtBL-8sAY1JNtfxim-N60A%40mail.gmail.com.


Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
You would need to cache the queryset and pass it to each form instance that
the formset creates. I've done this a few different ways in the past. I've
never understood why there isn't a more straight forward way to do this.
Here's a post with a few legit options depending on your use case:

https://stackoverflow.com/questions/8176200/caching-queryset-choices-for-modelchoicefield-or-modelmultiplechoicefield-in-a-d

Hard to be more specific without knowing anything about your code.

On Fri, Feb 25, 2022, 8:53 PM Steve Smith 
wrote:

> If in fact I am….how do I avoid this?  I have been playing with
> alternatives for a week and I’m starting to lose it…lol
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows
>
>
>
> *From: *Jacob Greene 
> *Sent: *Friday, February 25, 2022 5:58 PM
> *To: *django-users@googlegroups.com
> *Subject: *Re: Slow page load performance with a large number of formsets
> (over 25)
>
>
>
> If you're using model choice fields, it's very likely you are making an
> SQL query for each form set. It should be pretty obvious in the log with
> debug turned on.
>
>
>
> On Fri, Feb 25, 2022, 4:31 PM Ryan Nowakowski  wrote:
>
> Steven, are you using ModelFormSet?  If so, Is it the initial query
> that's slow?  The form rendering?  Or is it the POST back to the server
> that's slow?  You can use django-debug-toolbar[1] to profile your page
> and get these metrics.
>
> Once you figure out what part is slowest, then you can optimize.
>
> Hope this helps!
>
> Ryan N
>
> [1] https://django-debug-toolbar.readthedocs.io/en/latest/
>
> On Mon, Feb 07, 2022 at 09:12:48AM -0800, Steven Smith wrote:
> > Did this issue ever get resolved?  I'm experiencing the same thing.
> Once
> > it hits 100 forms or so it gets pretty slow.
> >
> > On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote:
> >
> > > Yes, if you want speed, using javascript and ajax is probably your
> best
> > > bet. It will probably also reduce merge-conflicts.
> > >
>
> --
> 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/20220225222926.GH11627%40fattuba.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/CAF-Y%3De5Fp7kDtLq47Z3Y4GEjXMne2PcTLYxOJ8St5gkKCkpUpw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF-Y%3De5Fp7kDtLq47Z3Y4GEjXMne2PcTLYxOJ8St5gkKCkpUpw%40mail.gmail.com?utm_medium=email&utm_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/CH0PR18MB42923C9432F56E071FA9716CD23F9%40CH0PR18MB4292.namprd18.prod.outlook.com
> <https://groups.google.com/d/msgid/django-users/CH0PR18MB42923C9432F56E071FA9716CD23F9%40CH0PR18MB4292.namprd18.prod.outlook.com?utm_medium=email&utm_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/CAF-Y%3De4E3zFuzmK_UOf9exaEc5pM5FNun7xJXhn_yVbHyWqiWg%40mail.gmail.com.


Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
If you're using model choice fields, it's very likely you are making an SQL
query for each form set. It should be pretty obvious in the log with debug
turned on.

On Fri, Feb 25, 2022, 4:31 PM Ryan Nowakowski  wrote:

> Steven, are you using ModelFormSet?  If so, Is it the initial query
> that's slow?  The form rendering?  Or is it the POST back to the server
> that's slow?  You can use django-debug-toolbar[1] to profile your page
> and get these metrics.
>
> Once you figure out what part is slowest, then you can optimize.
>
> Hope this helps!
>
> Ryan N
>
> [1] https://django-debug-toolbar.readthedocs.io/en/latest/
>
> On Mon, Feb 07, 2022 at 09:12:48AM -0800, Steven Smith wrote:
> > Did this issue ever get resolved?  I'm experiencing the same thing.
> Once
> > it hits 100 forms or so it gets pretty slow.
> >
> > On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote:
> >
> > > Yes, if you want speed, using javascript and ajax is probably your
> best
> > > bet. It will probably also reduce merge-conflicts.
> > >
>
> --
> 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/20220225222926.GH11627%40fattuba.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/CAF-Y%3De5Fp7kDtLq47Z3Y4GEjXMne2PcTLYxOJ8St5gkKCkpUpw%40mail.gmail.com.


Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Jacob Greene
Hmm that can't be right.

Can you set a breakpoint on the line where the exception is raised:
SuspiciousFileOperation("Detected.

When you set a breakpoint there, inspect the value of dir_name.

The ".parts" method breaks the file path up into a tuple, there shouldn't
be a ".." in the tuple.

On Fri, Feb 4, 2022, 10:49 AM Joalbert Palacios  wrote:

> Hi,
>
> dir_name in the exception is '/home/joalbert/Documents/Remesas
> App/RemesasServer/media/payments/images/filename.jpg'
>
> The setting for media is:
> Settings.py:
> MEDIA_ROOT = "./media/"#os.path.join(BASE_DIR, 'media')
> MEDIA_URL = '/media/'
>
> I try also with
> MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
> where BASE_DIR = Path(__file__).resolve().parent.parent
>
> If you could tell me how could fix it, it would be nice. Since I do not
> have idea how to remove this exception.
>
> Sincerely,
> Joalbert
> On Friday, February 4, 2022 at 12:33:51 AM UTC-5 jacobgr...@gmail.com
> wrote:
>
>> This is obviously some type of security feature to prevent someone from
>> climbing up a directory. You have ".." in your string for the file path
>> somewhere.
>>
>> What is the value of "dir_name" when the exception is raised? It should
>> be in the traceback somewhere. Should help narrow down where it's coming
>> from. Most likely a mistake you made in your settings file concating
>> strings related to where Django should upload files.
>>
>> On Thu, Feb 3, 2022, 2:12 PM Joalbert Palacios  wrote:
>>
>>> Hi group,
>>>
>>> I have been updating my django version so as to cover the last security
>>> patch with django version 3.2  (current version 3.2.12).
>>>
>>> Unfortunately, after this update the following exception occurs during
>>> execution of testing:
>>>
>>> Detected path traversal attempt in '/home/joalbert/Documents/Remesas
>>> App/RemesasServer/media/payments/images/temp_qHaTViL.png'
>>> Bad Request: /webapp/payment
>>>
>>> I have read
>>> https://stackoverflow.com/questions/69745412/django-and-suspiciousfileoperationdetected-path-traversal-attempt
>>> and followed but not works in my case, maybe I misunderstood something, I
>>> would appreciate any help regarding how to fix those exception.
>>>
>>> I read django code and find the errors is in the following section:
>>>
>>> def get_available_name(self, name, max_length=None):
>>>
>>> """
>>>
>>> Return a filename that's free on the target storage system and
>>>
>>> available for new content to be written to.
>>>
>>> """
>>>
>>> name = str(name).replace('\\', '/')
>>>
>>> dir_name, file_name = os.path.split(name)
>>>
>>> if '..' in pathlib.PurePath(dir_name).parts:
>>>
>>> raise SuspiciousFileOperation("Detected path traversal attempt in '%s'"
>>> % dir_name)
>>>
>>> Here it is my code in the sections that code goes by to send response to
>>> client.
>>>
>>> *Model.py:*
>>> class Payment(models.Model):
>>> STATUS = ((0, _("Draft")), (1, _("Aproved")), (2 , _("Rejected")), (3,
>>> _("Released")))
>>> order_number_id = models.OneToOneField(Exchange_Order,
>>> on_delete=models.CASCADE, related_name="order_payment")
>>> user_id =models.ForeignKey(User, verbose_name=_('user'), on_delete=
>>> models.CASCADE, related_name="payment_user_id")
>>> capture = models.FileField(verbose_name=_('image'),
>>> upload_to="payments/images", max_length=1024)
>>> payment_date = models.DateTimeField(verbose_name=_('date'),
>>> default=datetime.now().replace(tzinfo=timezone.utc))
>>> status = models.PositiveSmallIntegerField(verbose_name=_('status'),
>>> default=0, choices=STATUS)
>>> reason = models.ForeignKey(Reasons,verbose_name=_('reason'),
>>> on_delete=models.CASCADE, related_name="payment_reason",
>>> null=True, blank=True)
>>>
>>> def __str__(self) -> str:
>>> return f"{self.order_number_id} {self.user_id.username}
>>> {self.payment_date}"
>>> class Meta: #new
>>> verbose_name = _("Payment from Client to 'Activo Digital'")
>>> verbose_name_plural = _("Payments from Client to 'Activo Digital'")
>>>
>>> *forms.py*
>>> class Payment_All_Form(forms.ModelForm):
>>> class Meta:
>>> model = Payment
>>> fields = "__all__"
>>> views.py (only post method is included for clarity)
>>> class PaymentSessionView(LoginRequiredMixin, CreateView):
>>> queryset = Payment.objects.all()
>>> form_class = Payment_Form
>>> http_method_names = ['get', 'post']
>>> template_name="clienteServidor/webapp/payment.html"
>>>
>>> @method_decorator(User_Detail_Permission_Web)
>>> def post(self, request, *args, **kwargs):
>>> models = Exchange_Order.objects.filter(status=0, user_id=request.user)
>>> # En caso de que no haya ordenes abiertas
>>> if not models.exists():
>>> context =self._add_context_data()
>>> context["existant"] ="No hay orden abierta"
>>> context["form"] = Payment_Form()
>>> return render(request,self.template_name, context)
>>> # Procesar pago para ordenes abiertas
>>> forms = []
>>> data_list = []
>>> order_ids = []
>>> for model in models:
>>> my_data = self._complete_data(request, model.id)
>>> data_list.append(my_data)
>>> order

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Jacob Greene
This is obviously some type of security feature to prevent someone from
climbing up a directory. You have ".." in your string for the file path
somewhere.

What is the value of "dir_name" when the exception is raised? It should be
in the traceback somewhere. Should help narrow down where it's coming from.
Most likely a mistake you made in your settings file concating strings
related to where Django should upload files.

On Thu, Feb 3, 2022, 2:12 PM Joalbert Palacios  wrote:

> Hi group,
>
> I have been updating my django version so as to cover the last security
> patch with django version 3.2  (current version 3.2.12).
>
> Unfortunately, after this update the following exception occurs during
> execution of testing:
>
> Detected path traversal attempt in '/home/joalbert/Documents/Remesas
> App/RemesasServer/media/payments/images/temp_qHaTViL.png'
> Bad Request: /webapp/payment
>
> I have read
> https://stackoverflow.com/questions/69745412/django-and-suspiciousfileoperationdetected-path-traversal-attempt
> and followed but not works in my case, maybe I misunderstood something, I
> would appreciate any help regarding how to fix those exception.
>
> I read django code and find the errors is in the following section:
>
> def get_available_name(self, name, max_length=None):
>
> """
>
> Return a filename that's free on the target storage system and
>
> available for new content to be written to.
>
> """
>
> name = str(name).replace('\\', '/')
>
> dir_name, file_name = os.path.split(name)
>
> if '..' in pathlib.PurePath(dir_name).parts:
>
> raise SuspiciousFileOperation("Detected path traversal attempt in '%s'" %
> dir_name)
>
> Here it is my code in the sections that code goes by to send response to
> client.
>
> *Model.py:*
> class Payment(models.Model):
> STATUS = ((0, _("Draft")), (1, _("Aproved")), (2 , _("Rejected")), (3,
> _("Released")))
> order_number_id = models.OneToOneField(Exchange_Order,
> on_delete=models.CASCADE, related_name="order_payment")
> user_id =models.ForeignKey(User, verbose_name=_('user'), on_delete=
> models.CASCADE, related_name="payment_user_id")
> capture = models.FileField(verbose_name=_('image'),
> upload_to="payments/images", max_length=1024)
> payment_date = models.DateTimeField(verbose_name=_('date'),
> default=datetime.now().replace(tzinfo=timezone.utc))
> status = models.PositiveSmallIntegerField(verbose_name=_('status'),
> default=0, choices=STATUS)
> reason = models.ForeignKey(Reasons,verbose_name=_('reason'),
> on_delete=models.CASCADE, related_name="payment_reason",
> null=True, blank=True)
>
> def __str__(self) -> str:
> return f"{self.order_number_id} {self.user_id.username}
> {self.payment_date}"
> class Meta: #new
> verbose_name = _("Payment from Client to 'Activo Digital'")
> verbose_name_plural = _("Payments from Client to 'Activo Digital'")
>
> *forms.py*
> class Payment_All_Form(forms.ModelForm):
> class Meta:
> model = Payment
> fields = "__all__"
> views.py (only post method is included for clarity)
> class PaymentSessionView(LoginRequiredMixin, CreateView):
> queryset = Payment.objects.all()
> form_class = Payment_Form
> http_method_names = ['get', 'post']
> template_name="clienteServidor/webapp/payment.html"
>
> @method_decorator(User_Detail_Permission_Web)
> def post(self, request, *args, **kwargs):
> models = Exchange_Order.objects.filter(status=0, user_id=request.user)
> # En caso de que no haya ordenes abiertas
> if not models.exists():
> context =self._add_context_data()
> context["existant"] ="No hay orden abierta"
> context["form"] = Payment_Form()
> return render(request,self.template_name, context)
> # Procesar pago para ordenes abiertas
> forms = []
> data_list = []
> order_ids = []
> for model in models:
> my_data = self._complete_data(request, model.id)
> data_list.append(my_data)
> order_ids.append(f"Orden: {model.id}")
> forms.append(Payment_All_Form(my_data,request.FILES))
> # Chequear que todas las formas sean validas
> are_valids = []
> for form in forms:
> are_valids.append(form.is_valid())
> # If any invalid
> if False in are_valids:
> for index, items in enumerate(are_valids):
> if not items:
> form = forms[index]
> context = self._add_context_data()
> context["form"] = form
> return render(request,self.template_name, context)
> for index, model in enumerate(models):
> if index == 0:
> forms[index].save()
> else:
> data_list[index]["order_number_id"]=model
> data_list[index]["user_id"]=request.user
> datum = {k:v for k,v in data_list[index].items() if
> k!="csrfmiddlewaretoken"}
> payment = Payment(**datum)
> payment.save()
> model.status=1
> model.grouped_orders = order_ids
> model.save()
> my_message ="Orden Nro "+ str(model.id) + (" fue procesada exitosamente,
> les estaremos notificando"
> " por correo cuando el pago sea validado y procesado en el destino.")
> messages.add_message(request, messages.INFO, my_message)
> return HttpResponseRedirect(reverse_lazy("transaction_web"))
>
> Settings.py:
> MEDIA_ROOT = "./media/"#os.path.join(BAS

Re: TypeError: 'str' object is not callable

2021-08-30 Thread Jacob Greene
You need to pass the request object as the first argument.

https://docs.djangoproject.com/en/3.2/ref/contrib/messages/

On Mon, Aug 30, 2021, 11:01 PM Thomas Lockhart 
wrote:

> Just guessing that you need to write
>
> messages.success = “Your ad is successfully posted”
>
> But without more information from you that is only a guess.
>
> How is messages.success defined?
>
> - Tom
>
> On Aug 30, 2021, at 8:57 PM, Salima Begum 
> wrote:
>
> Hi all,
> In my project for each functionality I have written code for confirmation
> messages. For example
> ```
> messages.success("Your ad is successfully posted")
> ```
> Every functionality is breaking because of confirmation messages after
> deployment. How to fix it? Can anyone help me?
>
> Thank you
> ~Salima
>
>
> --
> 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/CAMSz6bkOz8AXa7d%2BRFFjm0m8xmCLYOyLQNx6syy7tf-NsPTRhA%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/3831F4E1-0003-4F5A-922D-F6E1534E1B87%40gmail.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/CAF-Y%3De6zk%2BS4V0bCSgyN678hby%2BXAkTT66h5rH80_LKj1e0WXw%40mail.gmail.com.


Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Oh actually, it looks like the table doesn't exist. I misread the SQL.
Something is wrong with your migrations. Are you sure you ran
"makemigrations" after creating the shop model?

On Wed, Jul 7, 2021, 11:03 AM Jacob Greene 
wrote:

> Do you have any other attributes set in the modeladmin? Something is
> telling the ORM to do a query on the "shop" field, and that field doesn't
> exist in the DB and it's not defined in the model. Possibly a filter field
> in the ModelAdmin class? A full back trace might help illuminate where you
> have this set.
>
> On Wed, Jul 7, 2021, 8:13 AM Samin Serge  wrote:
>
>> in admin.py put this code to see.
>> @admin.site.register (shop)
>>
>>
>> Le mer. 7 juil. 2021 à 00:16, Stathis Angelou  a
>> écrit :
>>
>>> Good evening all, i have created a new app and added a model. Added the
>>> app under installed apps, and run python manage.py makemigrations and
>>> migrate and everything worked as expected.
>>>
>>> But i believe there is an issue with the admin.py file
>>>
>>> from django.contrib import admin
>>>
>>> # Register your models here.
>>> from django.contrib.gis.admin import OSMGeoAdmin
>>> from .models import Shop
>>>
>>> @admin.register(Shop)
>>> class ShopAdmin(OSMGeoAdmin):
>>> list_display = ('name', 'location')
>>>
>>> Error message:
>>> "ProgrammingError at /admin/shops/shop/relation "shops_shop" does not
>>> exist LINE 1: SELECT COUNT(*) AS "__count" FROM "shops_shop" "
>>>
>>> Any advice or hint would be really appreciated
>>> Kind Regards
>>>
>>> Stathis
>>>
>>> --
>>> 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/60ca7670-d423-49e1-9d4a-ea978e193dd4n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/60ca7670-d423-49e1-9d4a-ea978e193dd4n%40googlegroups.com?utm_medium=email&utm_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/CAKRM%3DdFUzUj37o%3DxgqfQZU-Dj9FeH7CTZCUbCpRdkZ-nHAM-oQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKRM%3DdFUzUj37o%3DxgqfQZU-Dj9FeH7CTZCUbCpRdkZ-nHAM-oQ%40mail.gmail.com?utm_medium=email&utm_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/CAF-Y%3De6xb3TVU1hNgDdD9of7XkG6P5Csmg4ZhCg4cgQfKT_TSQ%40mail.gmail.com.


Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Do you have any other attributes set in the modeladmin? Something is
telling the ORM to do a query on the "shop" field, and that field doesn't
exist in the DB and it's not defined in the model. Possibly a filter field
in the ModelAdmin class? A full back trace might help illuminate where you
have this set.

On Wed, Jul 7, 2021, 8:13 AM Samin Serge  wrote:

> in admin.py put this code to see.
> @admin.site.register (shop)
>
>
> Le mer. 7 juil. 2021 à 00:16, Stathis Angelou  a
> écrit :
>
>> Good evening all, i have created a new app and added a model. Added the
>> app under installed apps, and run python manage.py makemigrations and
>> migrate and everything worked as expected.
>>
>> But i believe there is an issue with the admin.py file
>>
>> from django.contrib import admin
>>
>> # Register your models here.
>> from django.contrib.gis.admin import OSMGeoAdmin
>> from .models import Shop
>>
>> @admin.register(Shop)
>> class ShopAdmin(OSMGeoAdmin):
>> list_display = ('name', 'location')
>>
>> Error message:
>> "ProgrammingError at /admin/shops/shop/relation "shops_shop" does not
>> exist LINE 1: SELECT COUNT(*) AS "__count" FROM "shops_shop" "
>>
>> Any advice or hint would be really appreciated
>> Kind Regards
>>
>> Stathis
>>
>> --
>> 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/60ca7670-d423-49e1-9d4a-ea978e193dd4n%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/CAKRM%3DdFUzUj37o%3DxgqfQZU-Dj9FeH7CTZCUbCpRdkZ-nHAM-oQ%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/CAF-Y%3De4xaDiRwUxK7%2BsJtQi%3DXk4E8pE-8igSx2iNZUvhxpmd%2BA%40mail.gmail.com.


Re: ProgrammingError - relationship does not exist

2021-07-06 Thread Jacob Greene
The issue is with the model not the admin page. I suspect you haven't ran
migrations for the "Shop" model. You defined a "shop" field in the model,
but the database doesn't know anything about it.



On Tue, Jul 6, 2021, 7:16 PM Stathis Angelou  wrote:

> Good evening all, i have created a new app and added a model. Added the
> app under installed apps, and run python manage.py makemigrations and
> migrate and everything worked as expected.
>
> But i believe there is an issue with the admin.py file
>
> from django.contrib import admin
>
> # Register your models here.
> from django.contrib.gis.admin import OSMGeoAdmin
> from .models import Shop
>
> @admin.register(Shop)
> class ShopAdmin(OSMGeoAdmin):
> list_display = ('name', 'location')
>
> Error message:
> "ProgrammingError at /admin/shops/shop/relation "shops_shop" does not
> exist LINE 1: SELECT COUNT(*) AS "__count" FROM "shops_shop" "
>
> Any advice or hint would be really appreciated
> Kind Regards
>
> Stathis
>
> --
> 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/60ca7670-d423-49e1-9d4a-ea978e193dd4n%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/CAF-Y%3De4VFKtEZ7xqmmAp8POv35qqmGoVecArA%2BYToq4_HO9iRg%40mail.gmail.com.


Re: PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-20 Thread Jacob Greene
Might be easier and more reliable to use the API.

https://developers.google.com/youtube/v3

On Sun, Jun 20, 2021, 7:21 AM Priyesh Ranjan 
wrote:

> yes i can do that for you
>
> On Sun, Jun 20, 2021 at 6:29 AM Vrushang Desai 
> wrote:
>
>> Hi Guys ,
>> Anyone knows how to scrape Youtube Channels Emails?
>>
>> With Django/Python?
>>
>> If yes,
>> Pls reply!
>> Thanks.
>>
>> --
>> 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/75971331-aa7a-41e3-879f-42bd80bf7984n%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/CAB51kLSj84dBb-g1Qi72HtSxVaCKai9-mz-8H%3DUV-bGfC4O60g%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/CAF-Y%3De4zNfkTE88Y1Dj8qQqMU5GsPBHu%2B7mEM%2BUek1MjJYCa8w%40mail.gmail.com.


Re: Desperately need help.

2021-06-14 Thread Jacob Greene
Lol what do you expect anyone to do? You just post some random HTML, zero
code, no backtrace, nothing to even indicate there is an issue that someone
could solve even IF they were willing... This has nothing to do with
Django. I don't understand what you thought was going to happen. This is
possibly the dumbest "question" I have ever read. I'd be willing to consult
at double my normal hourly rate if you are the point of contact.

On Mon, Jun 14, 2021 at 12:12 PM Kasper Laudrup 
wrote:

> On 14/06/2021 05.15, Ken Smith wrote:
> > I sure hope that somebody can take the time to do this. I'm just
> > wondering one of you brilliant programmers can look at this webpage and
> > tell me where the errors are so that it can be fixed? Apparently the
> > programmers at the website are not as smart as you people are. If
> > someone has the time and inclination to do so with a please go over the
> > code and highlight where the errors are in the corrections necessary in
> > send back to me in a file in response. I would greatly be so happy.
> > Thank you and have a wonderful day.
> >
>
> Instead of wasting space on meaningless flattering of the very diverse
> members of this list/forum and begin rude to the developers at
> safewayfx.com you would have a much better chance of getting help if you
> instead showed that you were willing to do at least a minimal effort
> yourself.
>
> What errors are you talking about and what have you done to try and
> solve them?
>
> Just attaching and HTML file and expecting people to fix errors you
> cannot even bother to point out is not gonna get you much positive
> feedback.
>
> Also, how is this related to Django at all?
>
> Finally, are you sure that safewayfx.com is OK with you sharing their
> copyrighted works without their acceptance?
>
> 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/c3fe4ad7-ef75-2441-b848-427bce52814b%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/CAF-Y%3De5C-o8B3uOxKvEgdbLhkqat%3DY_CuBG664zs3NXp4uMftA%40mail.gmail.com.


Re: Module "django.core.cache.backends.memcached" does not define a "PyMemcacheCache" attribute/class

2021-06-11 Thread Jacob Greene
Looks like only django 3.2 uses PyMemcacheCache.
Try:
"django.core.cache.backends.memcached.MemcachedCache"

Also, make sure you are using the docs for the correct version of django:
For example:
https://docs.djangoproject.com/en/3.0/topics/cache/

instead of:

https://docs.djangoproject.com/en/3.2/topics/cache/

On Fri, Jun 11, 2021 at 4:20 PM VISHESH MANGLA <
f20170...@pilani.bits-pilani.ac.in> wrote:

> Hello,
> Please help with the following error
>
> settings.py
>
> CACHES = {
> "default": {
>  'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache'
> ,
> 'LOCATION': '127.0.0.1:11211'
> }
> }
>
>
> #CACHE_MIDDLEWARE_ALIAS = "teut_cache"
> #CACHE_MIDDLEWARE_SECONDS = 500
> #CACHE_MIDDLEWARE_KEY_PREFIX  = ...
>
>
> # Set the cache backend to select2
> SELECT2_CACHE_BACKEND = "default"
>
>
>
> Error logs:
>
> (venv) PS C:\Users\Dell\OneDrive\Desktop\office\djangodev\massservices>
> python manage.py runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\utils\module_loading.py",
> line 20, in import_string
> return getattr(module, class_name)
> AttributeError: module 'django.core.cache.backends.memcached' has no
> attribute 'PyMemcacheCache'
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\core\cache\__init__.py",
> line 50, in _create_cache
> backend_cls = import_string(backend)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\utils\module_loading.py",
> line 22, in import_string
> raise ImportError('Module "%s" does not define a "%s" attribute/class'
> % (
> ImportError: Module "django.core.cache.backends.memcached" does not define
> a "PyMemcacheCache" attribute/class
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "c:\python38\lib\threading.py", line 932, in _bootstrap_inner
> self.run()
>   File "c:\python38\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\utils\autoreload.py",
> line 53, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 118, in inner_run
> self.check(display_num_errors=True)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\core\management\base.py",
> line 392, in check
> all_issues = checks.run_checks(
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\core\checks\registry.py",
> line 70, in run_checks
> new_errors = check(app_configs=app_configs, databases=databases)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\core\checks\urls.py",
> line 13, in check_url_config
> return check_resolver(resolver)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\core\checks\urls.py",
> line 23, in check_resolver
> return check_method()
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\urls\resolvers.py",
> line 408, in check
> for pattern in self.url_patterns:
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\utils\functional.py",
> line 48, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\urls\resolvers.py",
> line 589, in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\utils\functional.py",
> line 48, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\venv\lib\site-packages\django\urls\resolvers.py",
> line 582, in urlconf_modulereturn import_module(self.urlconf_name)
>   File "c:\python38\lib\importlib\__init__.py", line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1014, in _gcd_import
>   File "", line 991, in _find_and_load
>   File "", line 975, in
> _find_and_load_unlocked
>   File "", line 671, in _load_unlocked
>   File "", line 783, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File
> "C:\Users\Dell\OneDrive\Desktop\office\djangodev\massservices\massservices\urls.py",
> line 7, in 
> path("select2/", include("django_select2.urls")),
>   File
> "C:\

Re: IndexError at /

2021-06-11 Thread Jacob Greene
The backtrace is pretty clear..

Here's the import part:
 File "C:\Users\GEMINI INNOVATIONS\Documents\WEB DEV TUTOR FULL
STACK\django_project_boilerplate-master\ECOMMERCE\core\templatetags\cart_template_tags.py",
line 13, in cart_item_count return qs[0].items.count()

"qs" is probably an empty list and you are trying access the 1st item via
qs[0]

I'd consider posting future questions not in all caps. Really weird post
dude.


On Fri, Jun 11, 2021 at 2:14 PM Tayo Akinnayajo 
wrote:

> PLS IM WORKING ON THIS CAN ANYONE HELP FIX THE ERROR
>
> Environment: Request Method: GET Request URL: http://127.0.0.1:8000/ Django
> Version: 3.1.4 Python Version: 3.9.0 Installed Applications: 
> ['django.contrib.admin',
> 'django.contrib.auth', 'django.contrib.contenttypes', 
> 'django.contrib.sessions',
> 'django.contrib.messages', 'django.contrib.staticfiles', 
> 'django.contrib.sites',
> 'allauth', 'allauth.account', 'allauth.socialaccount', 'core', 'crispy_forms',
> 'django_countries'] Installed Middleware: 
> ['django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware', 
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware', 
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware', 
> 'django.middleware.clickjacking.XFrameOptionsMiddleware']
> Template error: In template C:\Users\GEMINI INNOVATIONS\Documents\WEB DEV
> TUTOR FULL
> STACK\django_project_boilerplate-master\ECOMMERCE\templates\navbar.html,
> error at line 41 list index out of range 31 :  32 :
>  target="_blank">Checkout 33 :  --> 34 :  35 : 36 :  37 :  38 : {% if
> request.user.is_authenticated %} 39 :  40 :  href="{% url 'core:order-summary' %}" class="nav-link waves-effect"> 41 :
>  42 :  43
> :  Cart  44 :  45
> :  46 :  47 :  href="{% url 'account_logout' %}"> 48 :  Logout  49 :  50 :  51 : {% else %} 
> Traceback
> (most recent call last): File "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\handlers\exception.py",
> line 47, in inner response = get_response(request) File "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\handlers\base.py",
> line 202, in _get_response response = response.render() File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\response.py",
> line 105, in render self.content = self.rendered_content File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\response.py",
> line 83, in rendered_content return template.render(context,
> self._request) File "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py",
> line 61, in render return self.template.render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 170, in render return self._render(context) File "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 162, in _render return self.nodelist.render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 938, in render bit = node.render_annotated(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 905, in render_annotated return self.render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\loader_tags.py",
> line 150, in render return compiled_parent._render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 162, in _render return self.nodelist.render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 938, in render bit = node.render_annotated(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 905, in render_annotated return self.render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\loader_tags.py",
> line 192, in render return template.render(context) File "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 172, in render return self._render(context) File "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\base.py",
> line 162, in _render return self.nodelist.render(context) File
> "C:\Users\GEMINI
> INNOVATIONS\AppData\Local\Programs\Python\Python39\lib\site-packages\django\templa

Re: Urgent help

2021-02-25 Thread Jacob Greene
I would also like some urgent free work done for me. Please anyone. Drop
what you are doing and help me now.

On Thu, Feb 25, 2021, 9:26 PM neha bhurke  wrote:

> Thank u so much for your help 😊
> *Regard,*
> *Neha Bhurke*
>
>
>
>
> On Thu, Feb 25, 2021 at 3:09 PM Kasper Laudrup 
> wrote:
>
>> On 25/02/2021 10.32, neha bhurke wrote:
>> > Can You help me with code .
>>
>> Try to do at least some minimal effort yourself.
>>
>> The least you could do would be to spend some time on actually writing a
>> question, explaining what you've done, where you're having issues etc.
>>
>> The posts you're making here seems like you mostly just expect people to
>> do your work for you for free without even bothering to explain what you
>> actually need. That's extremely rude and doesn't really help you get the
>> help you might be looking for as most people will simply ignore it.
>>
>> 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/cc7b5be4-bc15-27a1-da1d-85f460bd2286%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/CAEwf5Q1%2BhVz%3DUaTJemOgDTofxe%3DbH0iJU%3DmkF82OraQFdPmy-g%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/CAF-Y%3De7uOt%2BW4ud9W5ccUvvbuBEE-wReXxyUS2hgxGh_LYZSHQ%40mail.gmail.com.


Re: Ransomeware

2020-09-05 Thread Jacob Greene
I'd also be will willing to provide you with Bofa

On Sat, Sep 5, 2020, 7:44 PM Jacob Greene  wrote:

> No paypal, but I could do Ligma as well.
>
> On Sat, Sep 5, 2020, 7:42 PM Mustafa Mahmoud 
> wrote:
>
>> No do you have a PayPal
>>
>>
>> On Sun, Sep 6, 2020, 2:09 AM Jacob Greene 
>> wrote:
>>
>>> Would you accept payment via deez?
>>>
>>> On Sat, Sep 5, 2020, 6:32 PM Mustafa Mahmoud 
>>> wrote:
>>>
>>>> Do you wanna buy it
>>>>
>>>> On Sun, Sep 6, 2020, 1:14 AM Raphael Polanco 
>>>> wrote:
>>>>
>>>>> Hey, Musatafa.
>>>>>
>>>>> Can you give more details on this project of yours?
>>>>>
>>>>> R.. Polanco
>>>>>
>>>>> On Sat, Sep 5, 2020 at 2:01 PM Gabriel Araya Garcia <
>>>>> gabrielaraya2...@gmail.com> wrote:
>>>>>
>>>>>> You are an unethical person if you are thinking of doing that
>>>>>> the world is more rotten with people like you.
>>>>>>
>>>>>> Gabriel Araya Garcia
>>>>>> GMI - Desarrollo de Sistemas Informáticos
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> El sáb., 5 sept. 2020 a las 13:33, Mustafa Mahmoud (<
>>>>>> mostafaase...@gmail.com>) escribió:
>>>>>>
>>>>>>> Who know how Much Ransomeware sell it I can make it and i will sell
>>>>>>> it enyone know I can sell it and how much
>>>>>>>
>>>>>>> On Sat, Sep 5, 2020, 6:50 PM Yogendra Yadav <
>>>>>>> yogendrayada...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Please suggest open source projects to learn subject combination
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/4af9efdc-1b3a-4170-93e3-403cc2b2e241n%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/4af9efdc-1b3a-4170-93e3-403cc2b2e241n%40googlegroups.com?utm_medium=email&utm_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/CAO-epS_G8Nf%2Ba%2BfsJ%2BV-rQYymn8LqJqzi0PSabqopePa4y0S3A%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAO-epS_G8Nf%2Ba%2BfsJ%2BV-rQYymn8LqJqzi0PSabqopePa4y0S3A%40mail.gmail.com?utm_medium=email&utm_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/CAKVvSDCit5bS%3DAU%3DTdCJV5X2jnUzs-BS7TDebnYyxmRE7%3D0BLQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAKVvSDCit5bS%3DAU%3DTdCJV5X2jnUzs-BS7TDebnYyxmRE7%3D0BLQ%40mail.gmail.com?utm_medium=email&utm_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.
>>>>&

Re: Ransomeware

2020-09-05 Thread Jacob Greene
No paypal, but I could do Ligma as well.

On Sat, Sep 5, 2020, 7:42 PM Mustafa Mahmoud 
wrote:

> No do you have a PayPal
>
>
> On Sun, Sep 6, 2020, 2:09 AM Jacob Greene 
> wrote:
>
>> Would you accept payment via deez?
>>
>> On Sat, Sep 5, 2020, 6:32 PM Mustafa Mahmoud 
>> wrote:
>>
>>> Do you wanna buy it
>>>
>>> On Sun, Sep 6, 2020, 1:14 AM Raphael Polanco 
>>> wrote:
>>>
>>>> Hey, Musatafa.
>>>>
>>>> Can you give more details on this project of yours?
>>>>
>>>> R.. Polanco
>>>>
>>>> On Sat, Sep 5, 2020 at 2:01 PM Gabriel Araya Garcia <
>>>> gabrielaraya2...@gmail.com> wrote:
>>>>
>>>>> You are an unethical person if you are thinking of doing that
>>>>> the world is more rotten with people like you.
>>>>>
>>>>> Gabriel Araya Garcia
>>>>> GMI - Desarrollo de Sistemas Informáticos
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> El sáb., 5 sept. 2020 a las 13:33, Mustafa Mahmoud (<
>>>>> mostafaase...@gmail.com>) escribió:
>>>>>
>>>>>> Who know how Much Ransomeware sell it I can make it and i will sell
>>>>>> it enyone know I can sell it and how much
>>>>>>
>>>>>> On Sat, Sep 5, 2020, 6:50 PM Yogendra Yadav <
>>>>>> yogendrayada...@gmail.com> wrote:
>>>>>>
>>>>>>> Please suggest open source projects to learn subject combination
>>>>>>>
>>>>>>> --
>>>>>>> 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/4af9efdc-1b3a-4170-93e3-403cc2b2e241n%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/4af9efdc-1b3a-4170-93e3-403cc2b2e241n%40googlegroups.com?utm_medium=email&utm_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/CAO-epS_G8Nf%2Ba%2BfsJ%2BV-rQYymn8LqJqzi0PSabqopePa4y0S3A%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAO-epS_G8Nf%2Ba%2BfsJ%2BV-rQYymn8LqJqzi0PSabqopePa4y0S3A%40mail.gmail.com?utm_medium=email&utm_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/CAKVvSDCit5bS%3DAU%3DTdCJV5X2jnUzs-BS7TDebnYyxmRE7%3D0BLQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAKVvSDCit5bS%3DAU%3DTdCJV5X2jnUzs-BS7TDebnYyxmRE7%3D0BLQ%40mail.gmail.com?utm_medium=email&utm_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/CAJoAtSmOs2G53VutM17bc3G20SRwyC-%2Bb-wj72uuTGLKPLcedg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJoAtSmOs2G53VutM17bc3G20SRwyC-%2Bb-wj72uuTGLKPLcedg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message beca

Re: Ransomeware

2020-09-05 Thread Jacob Greene
Would you accept payment via deez?

On Sat, Sep 5, 2020, 6:32 PM Mustafa Mahmoud 
wrote:

> Do you wanna buy it
>
> On Sun, Sep 6, 2020, 1:14 AM Raphael Polanco 
> wrote:
>
>> Hey, Musatafa.
>>
>> Can you give more details on this project of yours?
>>
>> R.. Polanco
>>
>> On Sat, Sep 5, 2020 at 2:01 PM Gabriel Araya Garcia <
>> gabrielaraya2...@gmail.com> wrote:
>>
>>> You are an unethical person if you are thinking of doing that
>>> the world is more rotten with people like you.
>>>
>>> Gabriel Araya Garcia
>>> GMI - Desarrollo de Sistemas Informáticos
>>>
>>>
>>>
>>>
>>> El sáb., 5 sept. 2020 a las 13:33, Mustafa Mahmoud (<
>>> mostafaase...@gmail.com>) escribió:
>>>
 Who know how Much Ransomeware sell it I can make it and i will sell it
 enyone know I can sell it and how much

 On Sat, Sep 5, 2020, 6:50 PM Yogendra Yadav 
 wrote:

> Please suggest open source projects to learn subject combination
>
> --
> 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/4af9efdc-1b3a-4170-93e3-403cc2b2e241n%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/CAO-epS_G8Nf%2Ba%2BfsJ%2BV-rQYymn8LqJqzi0PSabqopePa4y0S3A%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/CAKVvSDCit5bS%3DAU%3DTdCJV5X2jnUzs-BS7TDebnYyxmRE7%3D0BLQ%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/CAJoAtSmOs2G53VutM17bc3G20SRwyC-%2Bb-wj72uuTGLKPLcedg%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/CAO-epS-H8nYcLM_9e_CKcnqncj_epK-mw-ZgDZKQY83QKsiqKg%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/CAF-Y%3De4%3DNfjtEcBsdK%2BG9ayzjdTc55OOMJkFmo2B-WBiB%3DUXwg%40mail.gmail.com.


Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jacob Greene
Thank you for the reply! And good catch haha, I'm not actually. I editing these 
by hand so I wasn't posting some confusing telephony terminology. I'm 
displaying errors in my templates by marking them with that "form_error" css 
class. They are just red and bold, most errors are shown with the correct CSS 
class like my UniqueConstraints or any exceptions I throw in the modelForm 
clean() method, but any exceptions I throw in the Model.clean() or 
Model.full_clean() do not get the correct css class.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82018028-f0d8-46f7-a542-1bd7b072b8e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-15 Thread Jacob Greene
Hello! Has anyone dealt with this before? It seems that my forms don't add 
the CSS class to errors raised in model.clean() or model.clean_fields() 
methods. 

I have a form that looks something like this: 

class HttpsFaxBoxForm(forms.ModelForm):
error_css_class = 'form_error'


class Meta:
model = FaxBox
fields = ('outbound_cid_profile', 'id')



And I run validation in my models(keep the admin page consistent) like this:

class FaxBox(models.Model):

something = fields.CharField(max_length=100)


def clean(self):
if self.something == "shouldn't be here":

raise ValidationError('This should not be here! Please fix!')
super().clean_fields(exclude=None)


But when this exception gets raised, the CSS class isn't applied to it in 
the template. Anyone know of a way to work around this? Thanks for reading!

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8cfa5a86-ccaf-47f7-8b10-93fbaaaf4386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.