Re: Bug using Admin with Stripe - but whose is it?

2022-05-06 Thread Ahmed omar miladi
Hello mike i hope you are doing well can we make a video call to solve this
problem i can be helpfull

On Sat, 7 May 2022 at 01:56, Mike Dewhirst  wrote:

> OK - don't worry about this for the time being. The problem is obviously
> where I haven't yet looked. So I'm now going to simplify every bit of
> code/html/css following the successful acquisition of the Stripe token
> to see if it suddenly starts working.
>
> M
>
> On 6/05/2022 6:07 pm, Mike Dewhirst wrote:
> > I'm obviously at fault but I'm not smart enough to figure it out. Any
> > help is appreciated.
> >
> > The mechanism below exhibits no errors at the Stripe end. Stripe
> > returns the necessary payment token. I have tried brutally stripping
> > of the "/change/payment" and while it silences the error, the form
> > just re-shows itself.
> >
> >  I see a similar problem in 32-bit iOS Safari which doesn't
> > seem to like the svg tick symbol displayed in the Admin change screen
> > success message. The only symptom is the tick doesn't appear and the
> > user is none the wiser. But it generates an error email Field 'id'
> > expected a number but got '55/img/icon-yes.svg' 
> >
> >
> >  ValueError at /admin/chemical/chemical/20/change/payment/change/
> >
> > Field 'id' expected a number but got '20/change/payment'.
> >
> > Request Method: GET
> > Request URL:
> > http://localhost:8088/admin/chemical/chemical/20/change/payment/change/
> > Django Version: 3.2.13
> > Exception Type: ValueError
> > Exception Value:
> >
> > Field 'id' expected a number but got '20/change/payment'.
> >
> > Exception Location:
> >
> D:\Users\mike\envs\xxai\lib\site-packages\django\db\models\fields\__init__.py,
>
> > line 1825, in get_prep_value
> > Python Executable: D:\Users\mike\envs\xxai\Scripts\python.exe
> > Python Version: 3.8.3
> >
> >
> > Here is the ChemicalAdmin.change_view(). I filled in the docstring a
> > year ago when debugging previously.
> >
> > def change_view(self, request, object_id, form_url="",
> > extra_context=None):
> > """
> > self = ChemicalAdmin
> > object_id = chemical
> > form_url is passed through to self.render_change_form() via
> > self.get_preserved_filters(request) and then added to context
> > extra_context = dict of apps, models, admin_urls and
> > permissions. Ensure
> > self.change_form_template = None so next time it doesn't use
> > payment.html
> > """
> > extra_context = extra_context or {}
> > self.change_form_template = None
> > chemical = Chemical.objects.get(id=object_id)
> > intro = chemical.get_introduction()
> > if intro and not chemical.token:
> > if intro.category in CHARGE:
> > self.change_form_template = "payment.html"
> > context = collect_gateway_context(chemical)
> > extra_context.update(self.admin_site.each_context(request))
> > extra_context.update(context)
> > self.admin_site.admin_view(
> > payment_view(request, chemical,
> > context=extra_context)
> > )
> > return super().change_view(request, object_id, form_url,
> > extra_context)
> >
> > And the url config ...
> >
> > re_path(r"invoice/(?P\d+)/$", billing_views.invoice_view,
> > name="invoice_view"),
> > re_path(r"payment/$", billing_views.payment_view,
> > name="payment_view"),
> > re_path(r"success/$", billing_views.success_view,
> > name="success_view"),
> >
> > And the payment.html form ...
> >
> > 
> > {% csrf_token %}
> > {% if form.errors or form.non_field_errors %}
> > {{ form.errors }}
> > {{ form.non_field_errors }}
> > {% endif %}
> > {% for field in form %}
> > {% if field.name == "chemical_id" %}
> >  > id="id_chemical_id" value="{{ chemical.id }}" />
> > {% else %}
> > {{ field }}
> > {% endif %}
> > {% endfor %}
> >  >   src="https://checkout.stripe.com/checkout.js";
> > class="stripe-button"
> >   data-key="{{ data_key }}"
> >   data-amount="{{ data_amount }}"
> >   data-name="{{ data_name }}"
> >   data-description="{{ data_description }}"
> >   data-image="{{ data_image }}"
> >   data-locale="{{ data_locale }}"
> >   data-currency="{{ data_currency | lower }}"
> >   data-zip-code="true"
> >   data-panel-label="Pay">
> > 
> > 
> >
> > Thanks
> >
> > Mike
> >
> >
> >
>
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
> --
> You received this message b

Re: Mobile App

2022-09-04 Thread Ahmed omar miladi
i have been woking on many apps created with django and reactjs and react
native too
i can help just contact me on my email
Ahmed Omar Miladi
ahmedomarmil...@gmail.com


On Mon, 5 Sept 2022 at 01:16, Kato Joshua  wrote:

> Try using ionic js, you can have the same code base for multiple platforms
> such as Android, web, IOS and desktop app.
>
> On Mon, Sep 5, 2022, 12:34 AM Peter Kirieny 
> wrote:
>
>> Hello team Django, I have a fully functioning website
>> how can I easily turn it into a mob
>> app please ?
>>
>> --
>> 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/CAL8t8eqZap1_4kPKuMWovWWtPUVHZN7TFnLqgX7K3Om4cg8Npg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAL8t8eqZap1_4kPKuMWovWWtPUVHZN7TFnLqgX7K3Om4cg8Npg%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/CAMaX-ZhRSRChrkePRmwTmXWKeL4ZHfhbNfOyBWG1MbMrFP467g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMaX-ZhRSRChrkePRmwTmXWKeL4ZHfhbNfOyBWG1MbMrFP467g%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/CAE3Dc2Or2-YRaNmnNBx7k7Wz0TSDNUvr%3DpRrsceK9VEfL9WSpw%40mail.gmail.com.


Re:

2022-09-26 Thread Ahmed omar miladi
hello mr Abdulfarid please this is my whatsapp number +21627202548 add me
thanks

On Mon, 26 Sept 2022 at 13:53, Abdulfarid Olakunle 
wrote:

> Hello fellow developers, I will be creating a WhatsApp group chat later in
> the day, So I will like my fellow Python Django Developers to join the
> group. It will be much easier to discuss there and I will sacrifice myself
> out for anyone who need my service.
>
> God bless you all
> Enjoy your day
> Biliaminu
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BccuR0goa8Mu9MqNLyZtCAJedHKpVZ6pFfrpXKFJdjaRrgttQ%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/CAE3Dc2MP3ctUvoBx8qUUtsGFDAicfkKi3a7mLZh327KQv0j_tg%40mail.gmail.com.


Re: Looking for available support to start a School Management Application

2022-11-06 Thread Ahmed omar miladi
hello frncseric i'm ahmed omar miladi i'm full stack developer and django
specialist i build a platform with name is allcarta check
https://www.allcarta.com and i can help you to build a school management
system

On Sun, 6 Nov 2022 at 23:05, nef  wrote:

> Hi everyone,
> I am beginer in Django, not much experience.
> I have been task to develop an application for school management
> (Admission, Registration,  Attendance, Report marks, and more functions).
> I am wondering if there is an existing open smilare app or something which
> can be use as baseline to start or guide me with best practices.
> Thank you
> Eric
>
> --
> 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/176ec5a0-2e00-4f53-b5c3-1bfc72f3aa94n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/176ec5a0-2e00-4f53-b5c3-1bfc72f3aa94n%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/CAE3Dc2PkKJUF19fSykG%2BAmYByW6MY49UW%3DHSiKEL%2BPnZ6CHrvA%40mail.gmail.com.


Re: Email Sending In Django not working

2022-11-09 Thread Ahmed omar miladi
you can use the function send mail of django

Téléchargez Outlook pour iOS

De : django-users@googlegroups.com  de la part 
de It's Aladdin 
Envoyé : Wednesday, November 9, 2022 12:06:33 PM
À : django-users@googlegroups.com 
Objet : Re: Email Sending In Django not working

Google hast stopped less secure apps, so u cant send email messages anymore 
with ur email and password, U will have to find some other way of sending mails.

On Wed, 9 Nov, 2022, 16:26 peteru mimo, 
mailto:peterumi...@gmail.com>> wrote:
Good day team,

I have been facing this challenge in sending mail in django

here is the error "A connection attempt failed because the connected party did 
not properly respond after a period of time, or established connection failed 
because connected host has failed to respond"

Code
def send_verification_email(request, user):
from_email = settings.DEFAULT_FROM_EMAIL
current_site = get_current_site(request)
mail_subject = 'Please activate your account'
message = 
render_to_string('accounts/emails/account_verification_email.html', {
'user': user,
'domain': current_site,
'uid': urlsafe_base64_encode(force_bytes(user.pk)),
'token': default_token_generator.make_token(user),
})
to_email = user.email
mail = EmailMessage(mail_subject, from_email, message, to=[to_email])
mail.send()

Settings
EMAIL_HOST = 'smtp.google.com'
EMAIL_POST = '587'
EMAIL_HOST_USER = 'myemail'
EMAIL_HOST_PASSWORD = 'email_password'
EMAIL_USE_TLS = True

Any solution will be appreciated. Thank you


--
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/1ed5b9fc-3370-413c-b4cb-edeb2451d8f4n%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/CAA5HNVoRdTC2BBZ2FEk1ETaqxfL5xKQgfBuAcbFdPES_bSRYmQ%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/AS8P193MB1158CD635697F8E3E8596FF0AE3E9%40AS8P193MB1158.EURP193.PROD.OUTLOOK.COM.


Re: Django audio recording issue: receiving Bad Request error

2023-04-04 Thread Ahmed omar miladi
i have used it


On Tue, 4 Apr 2023 at 17:40, ritik sahoo  wrote:

> Have you used template inheritance?
>
>
>
>
> On Mon, 27 Mar, 2023, 9:27 pm Yong Zu Yi, <1208z...@gmail.com> wrote:
>
>> I am new to Django and also my first time building an application. I am
>> building an audio journaling application with Django.
>> What I am doing here is a recorder. When user press the recorder button,
>> it will direct to record.html with four buttons, Start, Pause, Resume and
>> Stop. When the user finished recording and hit the Stop button, it will
>> save a audio file (wav). However, I have receive a bad request error and
>> the audio file is not created.
>>
>> I have posted the code at stack overflow:
>> https://stackoverflow.com/q/75853749/21499403
>>
>> Can anyone help me please.
>>
>> --
>> 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/4dd18add-5882-4864-ae99-4c079a17f347n%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/CAJwehCtakRR7ZCEHykPY5wq1CFUjPVfTNOLt3PBoYZJdeHTv1A%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/CAE3Dc2MKiaJhYbYtzsBDfGCZrpxoM1UhdrqCppHYScbf5tSzZw%40mail.gmail.com.


Django error

2020-12-02 Thread Ahmed omar miladi
Hello guys I'm new with Django so I have this problem can someone help me 
to fixed 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d402bce0-7747-4c3c-bebb-50ab009459ean%40googlegroups.com.


Re: Resources for writing tests

2020-12-02 Thread Ahmed omar miladi
thank's for all i find the solution 
I forget to do migrate before creating superuser

On Wednesday, 2 December 2020 at 19:48:48 UTC+1 vicker...@gmail.com wrote:

> This is perfect, thank you.
>
> On Wed, 2 Dec 2020 at 12:15, Shishir Jha  wrote:
>
>> You can look for obey the testing goat book in python. It covers tdd with 
>> python and django
>>
>> On Wed, 2 Dec 2020, 10:12 pm mike vickers,  wrote:
>>
>>> Does anyone know of any good resources walking you through writing tests 
>>> for django? I've read through their documentation, and I've written a few, 
>>> but I'm wondering if there's someone out there with a tutorial that really 
>>> spells out a good approach.
>>>
>>> Thank you!
>>>
>>> -- 
>>> 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/CACaDatTXaqLxMD9H%3D3iXMgLV3%2BRs6%3DYEE6T1XgGGSBnoTm7RNA%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CA%2BC7wFR3uH%3DQKo4kp7ZfKSApAhhetYvUCx-ikirRvUwba2dPBw%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/05ece992-1d89-490b-8bb1-577765e2171fn%40googlegroups.com.


Re: Ongoing project

2020-12-17 Thread Ahmed omar miladi
hello mr Tayeb
this project is interested Iam ahmed Omar a full-stack web engineer and
python specialist and I would love to build with you this project

On Thu, 17 Dec 2020 at 16:32, Tayeb Jebeniani 
wrote:

> i'm interrested
>
> Le jeudi 17 décembre 2020 à 12:43:49 UTC+1, kirien...@gmail.com a écrit :
>
>> Hello team
>> I have a project in django
>> (developing an ecommerce website with some innovations)
>>
>> Using pycharm and python, am looking for a partner here
>>
>> Am a Kenyan, in Nairobi
>>
>> If interested please inbox for more information
>>
> --
> 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/51b186d6-aa84-4411-a869-4d8664621ef4n%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/CAE3Dc2OJ%3Drhzz3jVupjEPW24aD2ekavtrx_LABzS4Je1KQ%2BovQ%40mail.gmail.com.


Re: Smaller project that would be payed

2021-03-05 Thread Ahmed omar miladi
hello sebasty how are you?


On Fri, 5 Mar 2021 at 16:31, sebasti...@gmail.com 
wrote:

> Hello,
>
>  i need a freelancer that implement me a new widget bzw. modelclass that
> can represent a select with hierarichal structure like this:
>
> http://embed.plnkr.co/BRQtUKbxZdZItLslHflM/
>
> i know that a implementation like django-mptt can store this in database.
> I am beginner so i want in my existing model:
>
> class adress(model.Model):
>   name = model.CharField()
>
> insert a new field with a new model class and then django render in
> template a new widget like: http://embed.plnkr.co/BRQtUKbxZdZItLslHflM/
> and when i save it also the tree ist stored. When i open update view then
> the widget is filled.
>
> Please make me an offer to give me this implementation inkl. new widget.
>
> 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/1e75a653-a24f-46c2-bb89-38f9bcb2aef2n%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/CAE3Dc2OXE7c4SRrQogUBSgKETsBXCczA5eCD_tRPr716VR8W1Q%40mail.gmail.com.


Re: can Django replace PHP ?

2021-06-28 Thread Ahmed omar miladi
today django is the best for all web application

Le lun. 28 juin 2021 à 14:17, Krishna Adhikari  a
écrit :

> Hello all  my seniors
>
> I am doing Data Science programming (python) for 3 years now in my
> organization I also have to develop a Web Platform to deeply ML models and
> also to develop other web applications together.
>
> I searched a lot of information on google, but till now I did not make a
> decision should I learn PHP or I can handle it all with Django?
>
> *can we solve all kinds of web application problems with Django without
> learning PHP ?? *
> *or PHP also recommended.*
>
> Thank you all 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/f2007209-a90e-4a08-8d03-b2b3a1007e1en%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/CAE3Dc2N6CWH5w%3DTEpZRbh7tGv2jc06xBUO4Ym9d8cUs%2BS_eORQ%40mail.gmail.com.