Re: Looking for a Job

2023-07-16 Thread Ammar Mohammed
Hello I have 3 years of experience please contact me @o_ammar_o Regards On Sun, 16 Jul 2023, 16:43 许三高, wrote: > Hi > I am looking for python developer,I offer 1000-1500 per month.pls give me > telegram username if you are interested > > mahr...@gmail.com 于2023年7月15日 周六06:31写道: > >> Dear

Re: Difficulty Rendering a Form

2023-05-16 Thread Ammar Mohammed
Hi Mr Starr The documentation is very clear and helpful. Check the forms section https://docs.djangoproject.com/en/4.2/ref/forms/api/#outputting-forms-as-html Note that you should put your form variable in a double curly Like this : {{ signup_form }} <\form> Regards Ammar Mohammed Wh

Re: Spies in California and America

2023-03-28 Thread Ammar Mohammed
Sorry but this is off topic! On Wed, Mar 29, 2023, 01:15 Michael Starr wrote: > So does anyone have an update on the police state and spying of Democrat > Ukrainians in America yet? > > Michael > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: merge fields from different table

2022-11-04 Thread Ammar Mohammed
*Get your Locations object :* obj = Locations.objects.get(pk=1) *Then get the region:* obj.region.region_name On Fri, 4 Nov 2022, 7:29 PM Kala Rani, wrote: > models.py > class Regions(models.Model): > region_name = models.CharField(max_length=255) > > class Locations(models.Model): region =

Re: Template inheritance not working

2022-10-31 Thread Ammar Mohammed
Hello dear There is a little mistake in your code : You should put the {%block block_name %} in your base template with no code and the put the code you want to be displayed in your child template file Here is an example : // file.html : {% extends "index.html" %} {% block content %} Hello,

Re: page html

2022-10-31 Thread Ammar Mohammed
Hello Have you added your index page view to your project's urlpatterns ? Regards On Mon, 31 Oct 2022, 11:33 AM REMY TOUITOU, wrote: > Hello , thanks you , I try to connect , what is you Telefon number , mine > is 0033687798426 > > Le dimanche 30 octobre 2022, Adebileje Nurudeen a > écrit :

Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-29 Thread Ammar Mohammed
Hello Dear You should name your apps without the app word in the end Example : INSTALLED_APPS = [ "apps.store'', " apps.core", ] This will definitely work Regards On Wed, 19 Oct 2022, 7:30 AM regan opere, wrote: > Many, thanks for the reply. However, I have two apps in the directory >

Re: Need to pick up easy task in repo

2022-10-14 Thread Ammar Mohammed
Dear Rahul First this is not a repository. It's a help group . You should have email notifications to get new questions and help users solve the problem. If you don't know the answer to a problem you can follow with the thread to get the right answer. Regards Ammar Mohammed On Fri, 14 Oct 2022

Re: Checking API Results before saving

2022-09-02 Thread Ammar Mohammed
something Best Regards Ammar Mohammed On Fri, 2 Sep 2022, 01:41 lone...@gmail.com, wrote: > Hello all, > > I am sending an GET request to an external API and I would like to > validate the response before I save it to my model. How do I do this? > > Thank you. > > -- >

Re: Negative Stock Prevention

2022-08-31 Thread Ammar Mohammed
I don't think you need that constraint after using the PositiveIntegerField . On Thu, 1 Sep 2022, 02:45 Ryan Nowakowski, wrote: > I don't see any error. Did you forget to post it? > > On August 31, 2022 5:57:32 AM CDT, tech george > wrote: >> >> Hello, >> >> Sorry for the late reply. >> >> I

Re: I want to fetch the value of radio field for updation but it only doesn't fetch even i use condition and value does comes but doesn't checked

2022-08-23 Thread Ammar Mohammed
Email {% with val_gen=datas.gender%} {{val_gen}} gender: Male Female {% endwith %} On 22 Aug 2022 08:57, "Abhinandan K" wrote: > Email > > {% with val_gen=datas.gender%} > {{val_gen}} > gender: > > checked{% endif %} >Male > checked{% endif %}>Female > > {% endwith %}

Re: Customize serializer errors with incorrect data

2022-08-04 Thread Ammar Mohammed
just an example your functions can look in and way. In the email field in your serializer you ahould add the "email_serializer" function to the serializers. Regards -- Ammar Mohammed On 3 Aug 2022 07:00, "Sencer Hamarat" wrote: > Hi, > > I found a way to customize error me

Re: ForeignKey Reverse Relation Fail

2022-07-31 Thread Ammar Mohammed
lking about something else? > *“None of you has faith until he loves for his brother or his neighbor > what he loves for himself.”* > > > On Wed, Jul 27, 2022 at 10:16 AM Ammar Mohammed > wrote: > >> Hi >> Have you tried using OneToMany relationship ? >>

Re: How to create current user field in dango rest framework

2022-07-28 Thread Ammar Mohammed
Hi Ashok Do you wabt to use the current user or creating a new user ? Is it like signing up a new user ? On 27 Jul 2022 22:19, "Ashok garsulla" wrote: > Please tell me how can I create current User in dango Rest Framework > > -- > You received this message because you are subscribed to the

Re: ForeignKey Reverse Relation Fail

2022-07-27 Thread Ammar Mohammed
Hi Have you tried using OneToMany relationship ? On 27 Jul 2022 12:18, "Malik Rumi" wrote: > I have a model with a recursive foreign key to 'self'. This is intended to > model a parent child > relation among instances. The forward relation, on a field called > 'childof', works as expected. > The

Re: Django tutor.

2022-07-27 Thread Ammar Mohammed
Hi Yes of course Available every weekend ! Ammar Mohammed On 27 Jul 2022 15:49, "pediah wanmi" wrote: > I am a djongk intermediary, please can I > get a tutor? > > -- > You received this message because you are subscribed to the Google Groups > "Django us

Re: Blog application with django

2022-07-26 Thread Ammar Mohammed
Hi I can help you with that Please contact me in whatsapp : httpa://wa.me/249113075979 Regards Ammar Mohammed On 26 Jul 2022 17:33, "MAHESH KUMAR" wrote: > Hi all > https://www.health.harvard.edu/mind-and-mood/relaxation- > techniques-breath-control-helps-quell-errant-stress-

Re: How to use Authentication in DRF

2022-07-21 Thread Ammar Mohammed
How is your login view working ? Or this is your login view ? Please share the whole app views and urls. (I suggest using DRF class based views as it's alot useful and helpful when it comes to authentication and permissions) Regards, -- Ammar Mohammed On 21 Jul 2022 08:24, "Salima

Re: How to use Authentication in DRF

2022-07-20 Thread Ammar Mohammed
Hey Salima I guess you can use access token authentication in DRF. But Do you recive the response without logging in? Please explain more please -- Ammar Mohammed +249 113075979 On 21 Jul 2022 07:08, "Salima Begum" wrote: > Hi all, > > I am trying to convert my current proj

Re: how to Display images other than from static folder.

2022-01-31 Thread Ammar Mohammed
This topic solves your problem . https://djangocentral.com/managing-media-files-in-django/ Ammar Mohammed Tel: 0113075979 On 31 Jan 2022, 17:36 +0200, DJANGO DEVELOPER , wrote: > tell me what you want to get as a result? do you want to display multiple > images on HTML template? > >

RE: copy value from field1 to field2

2022-01-28 Thread Ammar Mohammed
Hi Where is your forms.py ??? Ammar Mohammed Tel: 0113075979 On 28 Jan 2022, 23:52 +0200, Feroz Ahmed , wrote: > Hi, Thanks for your support below are the views and models,   plz guide,   no > errors but no success Views.py                       (cmonth is none value > and exclude

Re: copy value from field1 to field2

2022-01-28 Thread Ammar Mohammed
Hello You can do it in your views.py #If request method is get you can use val2 = request.GET.get('val1') #if method is get you can use val2 = request.POST.get('val1') #then you can use val2 to in sert it in the dB Model.objects.create(val1=request.GET['val1'], val2=val2) Regards Ammar Mohammed

Re: Creating some fields on the fly in django template

2021-10-24 Thread Ammar Mohammed
Hello In your case i wouldn't import all the form at once using, {{ form.as_p}} Instead try to import every single field of your form thenyou can use JavaScript to show and hide fields according to input because django can't do this kind of editing. On 24 Oct 2021 7:32 PM, "Dina Dodin" wrote:

Re: Child data table in Django

2021-10-13 Thread Ammar Mohammed
Hello Dear You can use djangos prefetch_related in the docs : prefetch_related()¶ prefetch_related(**lookups*)¶

Re: Folder structure for a Django project that has multi functional module.

2021-05-12 Thread Ammar Mohammed
Separating every functional module is the right way ! You should build your website on a base module using oop and structural method. Good luck On Wed, May 12, 2021, 06:43 Salima Begum wrote: > Hi, > We initially developed our project with the following folder structure; > > [image:

Re: need help integrating SSL with react/django web app

2021-05-08 Thread Ammar Mohammed
I am using Nginx as a proxy for my Django app and this method is working just fine. On Sat, May 8, 2021, 11:14 Ammar Mohammed wrote: > I think you're supposed to install the certificate in your web server > (Nginx, Apache). > Follow the manual to install it to your server and e

Re: need help integrating SSL with react/django web app

2021-05-08 Thread Ammar Mohammed
I think you're supposed to install the certificate in your web server (Nginx, Apache). Follow the manual to install it to your server and everything will be fine. On Sat, May 8, 2021, 10:35 John McClain wrote: > Hello, > > I am having difficulties connecting SSL to my React/Python webapp > > I

Django Rest Framework APIView request

2021-02-01 Thread Ammar Mohammed
Hi everyone i have an API View inherited from another class i want to create a new app that reciver the current Client requests and process it then pass it to the original View (all i want to do is to recive the view from the user (the user will use the original urls without any edit in the