Re: Hiring react developers

2024-10-25 Thread Jubayer Ahmed
Hi, Yes I am interested. On Thu, Oct 24, 2024, 7:33 PM Gaurav Dwivedi wrote: > Hi, > Yes I am interested. > I'm looking for a Frontend developer job. > I've experience with ReactJS. > > On Mon, 3 May, 2021, 9:11 am vineet daniel, > wrote: > >> Hi Group, >> >> Any one interested in Frontend deve

Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-03 Thread Ahmed Shrief
I am interested in this position On Tue, Apr 2, 2024, 7:20 PM Abhishek J wrote: > Dear Developers, > > I need to build an android and IOS phone dialer similar to Truecaller. > > We are seeking experienced and dedicated candidates who are proficient in > Django and possess a keen interest in cont

Re: Weird issue with a form

2024-03-21 Thread Ahmed-developer
i can help you with this. last time I face this issue as well. On Tuesday, March 19, 2024 at 9:53:22 PM UTC-7 Simon Connah wrote: > I've been scratching my head over this one. > > I have a user registration form but when I submit data on it and it always > returns a 404 (it wants to go to the /u

Re: Interest in joining Django group

2024-03-21 Thread Ahmed-developer
welcome here. lets learn more about django. :) On Wednesday, February 21, 2024 at 12:05:52 PM UTC-8 Ambaig Baig wrote: > I am a student of Computer engineer at his last semester and have made > some Django projects before and this group will help me to be more better . > This will give me a pro

Re: E-comm live project

2024-03-20 Thread Ahmed Saboor
923082834021 On Wed, 20 Mar 2024, 2:04 am Asimwe Rusemez, wrote: > WhatsApp +243821475598 > > On Mon, Mar 18, 2024, 7:26 PM 1001_prabhjot Singh < > prabhjotbal...@gmail.com> wrote: > >> so i am working on a full stack e-comm website and this project is really >> very big for me because it's a li

Re: Looking for collaborators for an online marketplace project with Python, Django, React.js and Next.js

2024-02-12 Thread Ahmed Shrief
I am open to collaborate with you in that project and have done something similar to this project. I hope you contact me. Text me on whatsApp: +201112237579 On Mon, Feb 12, 2024 at 4:16 PM kelvin Ace wrote: > +2349053116324 > > On Mon, Feb 12, 2024 at 9:24 AM Jorge Bueno > wrote: > >> Very good

Re: login with token instead of password

2024-01-16 Thread Ahmed Iftikhar
python manage.py startapp pincode_auth_app # pincode_auth_app/models.py from django.contrib.auth.models import AbstractUser from django.db import models class CustomUser(AbstractUser): pin_code = models.CharField(max_length=4, blank=True, null=True) *** # pincode_auth_app/admin.py from

Re: Custom User models

2023-11-27 Thread Ahmed Iftikhar
# models.py from django.contrib.auth.models import AbstractUser from django.db import models class School(models.Model): # Your School model fields class SchoolUser(AbstractUser): school = models.ForeignKey(School, on_delete=models.CASCADE) # Add other custom fields as needed

Re: Encrypt entire Django project and decrypt it in ram when starting server

2023-11-14 Thread Ahmed Iftikhar
Obfuscation can make the code less readable, but it won't provide strong security. There are Python tools like *pyobfuscate *that can be used for this purpose. However, keep in mind that this is not encryption, and determined attackers can still reverse engineer obfuscated code. While you can e

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Ahmed Iftikhar
It's possible that there is a migration state issue. Try running the following commands: *python manage.py migrate zeropython manage.py migrate * This will revert all migrations for the specified app and then migrate all apps to the initial state. Be cautious, as this will reset your databas

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Khaleel Ahmed H. M. Shariff
path On windows Execute the dir/s to locate the directory where the modules are installed and include the same in the path Best of luck God Bless You! God Bless India!! -- Love & Regards Dr. (h.c.) Khaleel Ahmed H. M. +91-9845007864 Taming Python https://www.amazon.in/Taming-Python-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 appli

Re: Upload image submit by users to another serveur

2023-03-03 Thread Ahmed Mulla
Hey off the top of my head there are a bunch of ways you can do it. 1. Create a separate function that uploads the image to the new server, call that function in the upload view(you should make it async) 2. Write the input to something like Kafka and then write read functions that cater to differ

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 S

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 b

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

Re: logout_redirect_url not defined

2022-09-21 Thread Ahmed Abdelmonem
You should write it this way : *'/login/'* in urls.py should be written* path('login/', etc) or index instead in your case.* On Thu, Sep 22, 2022 at 3:32 AM abdallah elassaad < elassaadabdal...@gmail.com> wrote: > can you pls help > in my "setting.py" > i add this line > LOGOUT_REDIRECT_U

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 platfo

how can i solve that

2022-09-01 Thread amr ahmed
[image: iii.png] -- 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://gro

Re: e

2022-08-25 Thread Ahmed Abdelmonem
Use validate method to output the user details (name, age, ...etc) along side with the token, now you have the token and the user, u don't have to extract the user from the token. use the token and the user together instead of using the token only in React https://github.com/Ahmed-Abdelgawa

Re: How to Manage User & Create a Model

2022-08-24 Thread ahmed doudou
https://docs.djangoproject.com/en/4.1/topics/auth/customizing/ read this documentation to the end it's gonna solve your problem Ahmed °•° On Wed, Aug 24, 2022, 14:52 Aakash Bhaikatti wrote: > As a User > >- I can signup either as LIBRARIAN and MEMBER using username and

Re: page index.html

2022-08-24 Thread ahmed doudou
https://docs.djangoproject.com/en/4.1/topics/http/urls/ This is django documentation just follow it step by step. On Wed, Aug 24, 2022, 13:55 REMY TOUITOU wrote: > ok , i will send this to you this evening > thanks you > > Le mer. 24 août 2022 à 14:11, Asif Ahmed Khan a > éc

Re: page index.html

2022-08-24 Thread Asif Ahmed Khan
; 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/CAD9WEx365okwa4ziZXt1pVj3sQ9bDCZmyjkhx6nosqfn4iwmHg%40mail

Re: About page

2022-08-15 Thread Asif Ahmed Khan
on the web visit > https://groups.google.com/d/msgid/django-users/456bd705-82fa-4e2f-b8ee-af5456c6acaen%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/456bd705-82fa-4e2f-b8ee-af5456c6acaen%40googlegroups.com?utm_medium=email&utm_source=footer> > . >

Re: Invite to join WhatsApp group

2022-08-05 Thread Kaocher Ahmed
Are they spamming it? kaocher Ahamed Founder Aarry Limited A mobility technology leading company On Fri, Aug 5, 2022, 10:02 PM Dylan Reinhold wrote: > Please stop spaming this list. > > Thanks. > > On Fri, Aug 5, 2022, 08:47 Satyajit Barik > wrote: > >> Hey, >> >> Join in Whatsapp python group

Re: Invite to join WhatsApp group

2022-08-05 Thread Kaocher Ahmed
They are sending unnecessary promotion for course. Everything open source and please try to help people Free an technical support Don't text for marketing on the group kaocher Ahamed Founder Aarry Limited A mobility technology leading company On Fri, Aug 5, 2022, 11:34 PM Lakshyaraj Dash wrote

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

question in registeration

2022-05-05 Thread Mohammed Ahmed
hello every one i want to know in registeration i put random emails not registerd in gmail or hotmail or any kind of emails domain this email saved in my database i want to make sure this email is exist or not before registeraion complete -- You received this message because you are subscribed

Django FormTools

2022-04-21 Thread ahmed doudou
hey everyone i'm using Django with wizard form and everithing work fine but i don't know how to styling inputs and i don't know how to save data on my database. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

took too long to shut down and was killed.

2022-03-03 Thread ahmed elabbasy
*Application instance wait_for=._call_check_cancel() at /usr/local/lib/python3.8/asyncio/futures.py:360, ()]>> for connection took too long to shut down and was killed.* Everything has been working normally for quite some time now this appeared without any modification aioredis==1.3.1 channe

Salary Generate

2022-02-15 Thread Feroz Ahmed
Dear All. i am stuck at point to generate salaries for upcoming month, as i already have last month January data as fields(month, name , gross sal, tax deduction, net sal) and it has records of 35 (employees) in form template i have placed submit button to generate salaries for February. Pl

RE: Static files not found

2022-02-13 Thread Feroz Ahmed
if staticfiles folder not exists in project, in that case you have to create folder name as staticfiles in project level From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Dev femibadmus Sent: 14 February 2022 02:43 To: django-users@googlegroups

RE: migrations: "no changes detected"

2022-02-08 Thread Feroz Ahmed
checkout u not forgot to add app in installed app in settings.py if still the issue , forward your settings.py best practice , try to solve the issue from current configuration Regards From: 'Delvin Alexander' via Django users [mailto:django-users@googlegroups.com] Sent: 08 February

RE: Django ORM bug(probably, not)

2022-02-07 Thread Feroz Ahmed
Hi try this MyObject.objects.filter(id__lte=10[i.id for i in objects_to_delete]).delete() From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Bobosher Musurmonov Sent: 07 February 2022 17:05 To: Django us

Name Fields values

2022-02-07 Thread Feroz Ahmed
Hi Everyone. my personal project for marksheet is going on. all codes in views are fine fields are: Name English marks Science Marks Computer Marks Avg Sum Total i need help , when i bring all stored record into template. *I need name field as list (dropdown list / Select list )and all the name

Syntax to Generate salary for next month

2022-01-29 Thread Feroz Ahmed
Hi, I came across the problem, how to generate salary for upcoming month ( records are of month January in db) I have records in django db. Insert of new record update / delete / hideof record functions are ok Request your support, to generate the salary for month February (by cl

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
ield1'] formentry.save() This is untested but i am very sure that this works Regards Am Fr., 28. Jan. 2022 um 20:51 Uhr schrieb Feroz Ahmed : Hi, I am new to django, I have field1 as dropdown with mentioned months name filed2 is none and excluded in forms I want while inserting the data , i

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
hammed 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 excluded in form) month is insertable from form templatedef inse

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
dB Model.objects.create(val1=request.GET['val1'], val2=val2) Regards Ammar Mohammed Tel: 249113075979 On 28 Jan 2022, 21:52 +0200, Feroz Ahmed , wrote: Hi, I am new to django, I have field1 as dropdown with mentioned months name filed2 is none and excluded in forms I want whi

RE: copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
t('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 Tel: 249113075979 On 28 Jan 2022, 21:52 +0200, Feroz Ahmed , wrot

copy value from field1 to field2

2022-01-28 Thread Feroz Ahmed
Hi, I am new to django, I have field1 as dropdown with mentioned months name filed2 is none and excluded in forms I want while inserting the data , if I select month , it should insert the same value in field2 request your support Ex: field1 .value('JAN') field2 is excluded from f

Re: order_by on the basis of time difference (updated_at - created_at)

2022-01-21 Thread Feroz Ahmed
Hi, in VIEWS def example=(request): fm=ExampleModel.object.created_at ExMd=ExampleModel.objects.filter(created_at__lt={'fm'})... ordering conditions. On Friday, January 21, 2022 at 10:25:13 AM UTC+5:30 aadil1...@gmail.com wrote: > class ExampleModel(models.Model): > is_active =

Re: Solved: How to delete user salary record , but want to keep history till deleted date

2022-01-08 Thread Feroz Ahmed
Hi , it works, it was my confusion,, i update record status as Inactive so , it hide the record. thanks for your support On Saturday, January 8, 2022 at 7:47:17 PM UTC+5:30 Feroz Ahmed wrote: > No errors: but no any actions, > all records shows in home1.html > not excluding the

Re: How to delete user salary record , but want to keep history till deleted date

2022-01-08 Thread Feroz Ahmed
filter > > queryset = Model.objects.filter(status='Active') > > > If you want to use delete, I've used before django-simple-history. the > package records all history for models and objects and let you query that > information. > > > Regards, > > Jul

Re: How to delete user salary record , but want to keep history till deleted date

2022-01-07 Thread Feroz Ahmed
tive > > On Fri, 7 Jan, 2022, 7:22 pm Feroz Ahmed, wrote: > >> Hi, >> How to delete user salary record , but want to keep history till deleted >> date. >> >> ex: >> >>1. Month June >>2. Month July >>3. Month Aug >>

How to delete user salary record , but want to keep history till deleted date

2022-01-07 Thread Feroz Ahmed
Hi, How to delete user salary record , but want to keep history till deleted date. ex: 1. Month June 2. Month July 3. Month Aug 4. delete user record from Sep. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: Sanitize field from xss attacks in django models

2021-11-06 Thread omar ahmed
My final solution : [image: bb.png] On Saturday, November 6, 2021 at 6:03:59 PM UTC+2 st...@jigsawtech.co.uk wrote: > Are you using the safe filter in your templates as otherwise that "attack" > won't do anything but you are right that other XSS attack vectors can be > used as per the example

Sanitize field from xss attacks in django models

2021-11-06 Thread omar ahmed
hi all i want to sanitize 'content' field from XSS attacks in django models so i installed 'bleach' and used but script like "an evil() example" store as is (without sanitize script) Note: i need bleach via function in models Any idea ? Thanks [image: bleach-Models.png] -- You received this mess

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

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 tha

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.

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 p

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...@g

Re: need assistant

2020-10-19 Thread Sameer Ahmed
I wanna work with you On Thu, Oct 15, 2020, 8:30 PM ericki...@gmail.com wrote: > hello guys am new at Django , i have couple of projects for Django and > pyside2 if anyone is willing to assist me in this fields i be so great full > as we learn from each other and carry out more projects > > > th

Re: Template styles.

2020-10-17 Thread Sameer Ahmed
You can create separate template add bootstrap to it. Also add your form to it. If you want to know how to do it kindly visit geeksforgeeks.org/django-forms/ On Sat, Oct 17, 2020, 9:19 PM Mohemed Misfar wrote: > Django has amazing model forms and django froms. In case if i use them, I > am unabl

Re: multiple database

2020-10-09 Thread Khaleel Ahmed H. M. Shariff
ndia!! -- Love & Regards Dr. (h.c.) Khaleel Ahmed H. M. Managing Director, Tanzanite Realty India Private Limited --- Human Life is Precious Koran Surah Ma'idah Chapter 5 Verse 32: If anyone killed a person, not in retaliation

Re: HELP

2020-10-09 Thread Khaleel Ahmed H. M. Shariff
ss India!! -- Love & Regards Dr. (h.c.) Khaleel Ahmed H. M. Managing Director, Tanzanite Realty India Private Limited --- Human Life is Precious Koran Surah Ma'idah Chapter 5 Verse 32: If anyone killed a person, not in

Re: 'str' object is not callable

2020-09-23 Thread Khaleel Ahmed H. M. Shariff
last): File "", line 1, in TypeError: 'str' object is not callable >>> [image: image.png] Hope this helps. Thanks in advance. God Bless You! God Bless India!! -- Love & Regards Dr. (h.c.)

Re:Looking to join a team in a Django Project to gain Experience

2020-09-22 Thread Ahmed Yasin
Sent from my Huawei phone Original message From: Tessnim Zrayga Date: Tue, Sep 22, 2020, 4:28 PMTo: django-users@googlegroups.comSubject: Re: Looking to join a team in a Django Project to gain ExperienceI like the idea.interested.Le mar. 22 sept. 2020 à 11:59, Hamza Mirchi

Re: Django and Pandas

2020-09-10 Thread Khaleel Ahmed H. M. Shariff
anks in advance. God Bless You! God Bless India!! -- Love & Regards Dr. (h.c.) Khaleel Ahmed H. M. Managing Director, Tanzanite Realty India Private Limited --- Human Life is Precious Koran Surah Ma'idah Chapter 5

Re:Digest for django-users@googlegroups.com - 16 updates in 8 topics

2020-08-22 Thread Ahmed Yasin
thor : Aug 21 02:23AM -0700 Hey guys:   My python version is 3.7.1 Django version is 3.1   When I started the project   [image: 9.png] Ahmed Yasin : Aug 21 06:36PM +0500 Can you tell me what are you trying to do?   On Fri

Re: Who can help me?

2020-08-21 Thread Ahmed Yasin
Can you tell me what are you trying to do? On Fri, Aug 21, 2020, 6:29 PM Hella thor wrote: > Hey guys: > > My python version is 3.7.1 > Django version is 3.1 > > When I started the project > > [image: 9.png] > > -- > You received this message because you are subscribed to the Google Groups > "Dj

Re: Sources for learning django

2020-08-21 Thread Ahmed Hashim
You can check youtube channel Coding Entrepreneurs, this guy is amazing. https://www.youtube.com/channel/UCWEHue8kksIaktO8KTTN_zg your other question regarding how long does it takes to learn, is solely depends on your will and passion, als

Why Django ValidationError not raising error?

2020-08-20 Thread Ahmed Yasin
Well I believe you are more expert and experienced personality than me. I am having an error and i am using django 3.0.3 and python 3.8.5 and VS code as an IDE. I am using validationError to raise error. in forms.py i am using condition if email and varify_email fields are not match than raise

Need Help Fixing an Issue in my E-commerce Project

2020-08-05 Thread Ahmed Khairy
Hi all, I have been battling with this issue for quite a long time and I haven't been able to find a solution to fix it. So, I have an E-commerce Project and The issue is related to the product Variations and the quantity related to it in the order summary page. Example with the sequence for

How to create a link between Posts List View and Items List View of the same User

2020-07-28 Thread Ahmed Khairy
I am creating a project where there are Posts and Items, 2 different models in 2 different apps and each has a user who can be the same. I have created a page for each user to post all related posts called Userpost List view, and I want to add an if statement or a queryset to show a button to

Re: Reusable Chat Application for Django Developers

2020-06-11 Thread Ahmed Ishtiaque
Hi Aldian, I haven't gotten around to updating the docs, but the context_processors module isn't necessary anymore. Someone else had posted an issue about this: https://github.com/dibs-devs/chatter/issues/49 , and I'll try to update the docs as soon as I can. Best, Ahmed On Thu,

AttributeError when returning post.title in a comment model

2020-05-29 Thread Ahmed Khairy
I was working on a comment section for post and was getting an AttributeError when I return return '{}-{}'.format(self.post.title, str(self.user.username)) in the comment model I am trying to link users and posts to the comment I am getting the same error Here is the Models.py class Comment

Re: Template Variations title not showing

2020-05-24 Thread Ahmed Khairy
here is the link https://groups.google.com/forum/#!topic/django-users/5SckOumQLQM On Sunday, May 24, 2020 at 10:38:18 PM UTC-4, Ahmed Khairy wrote: > > Helloo, > > Check my views in this question link, it might be useful > > On Saturday, May 23, 2020 at 1:35:32 AM UTC-4, oldti

Re: Template Variations title not showing

2020-05-24 Thread Ahmed Khairy
Helloo, Check my views in this question link, it might be useful On Saturday, May 23, 2020 at 1:35:32 AM UTC-4, oldtimer wrote: > > I cannot get variations or I tried model forms for options as well and > cannot get either to add to the cart. I can get both to display as options > on the produ

Changing in the Quantity of variants reflecting in the wrong item in Order Summary

2020-05-24 Thread Ahmed Khairy
Helloo, I have a problem with the variations and the quantity related to it in the order summary page. It was working perfectly and all of a sudden (this is an example to simplify): when I add to the cart 2 items: - Item X with a size small - Item X with a size medium When I change the qua

Re: Template Variations title not showing

2020-05-22 Thread Ahmed Khairy
{{ item.name }} option> > {% endfor %} > > {% endif %} > > On Tuesday, May 5, 2020 at 5:12:15 PM UTC-6, Ahmed Khairy wrote: >> >> Hello all, >> >> I have made a variation to an Item class in models.py and I think i got >>

Re: Can't Fix the No Reverse Error in Ajax

2020-05-19 Thread Ahmed Khairy
Do you mean that this line should be changed? No ! Don't Print it On Tuesday, May 19, 2020 at 11:11:12 PM UTC-4, Hella Nick wrote: > > button标签中的type属性设置为button, > > Ahmed Khairy > 于2020年5月20日周三 上午1:54写道: > >

Can't Fix the No Reverse Error in Ajax

2020-05-19 Thread Ahmed Khairy
I am trying to use Ajax to submit a like button, I believe everything is in order but I keep getting django.urls.exceptions.NoReverseMatch: Reverse for 'like_post' with arguments '('',)' not found. 1 pattern(s) tried: ['score/like/(?P[0-9]+)$'] I am not sure what is the reason. Need help to

Re: how to write Ajax for a Like button in Django

2020-05-18 Thread Ahmed Khairy
020, 3:53 am Ahmed Khairy, > wrote: > >> Hi Motaz, >> >> When I added your code it disabled the function of the button nothing >> happened >> >> On Sunday, May 17, 2020 at 9:30:38 PM UTC-4, Motaz Hejaze wrote: >>> >>> In your like button

Re: how to write Ajax for a Like button in Django

2020-05-17 Thread Ahmed Khairy
t if you still need it let us know > > > On Mon, 18 May 2020, 2:26 am Gabriel Araya Garcia, > wrote: > >> Hi Ahmed, I was looking for that during several months and I have found >> examples than not run, and therefore I`ve get one conclution: "It`s not >> posib

how to write Ajax for a Like button in Django

2020-05-17 Thread Ahmed Khairy
Hi all, I need some help writing the ajax for a like button instead of refreshing every time a like is posted here is the template: {% csrf_token %} {% if user.is_authenticated %} {% if liked

Re: pip not working

2020-05-15 Thread Ahmed Khairy
Did you try pip install -r requirements.txt? On Friday, May 15, 2020 at 10:16:52 AM UTC-4, Akorede Habeebullah wrote: > > Hi guys, I need help with my pip. It was working fine until I upgraded it. > now its not working fine anymore. I tried running all pip commands that I > know its still not wo

Re: Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Ahmed Khairy
lf.request.user) & Q( On Thursday, May 14, 2020 at 10:07:25 PM UTC-4, Motaz Hejaze wrote: > > Where does this exception happen ? > In which file , which line ? > > On Fri, 15 May 2020, 12:51 am Ahmed Khairy, > wrote: > >> Hi all >> >> I am addin

Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Ahmed Khairy
Hi all I am adding a like/unlike button for Posts in a Listview, I am getting an error: Exception Value: Related Field got invalid lookup: value here is the Model: class Post(models.Model): designer = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_len

How to write a Get_Context_method

2020-05-13 Thread Ahmed Khairy
Hi, I have the following context and I am trying to write it correctly in a function This is context data : def post_view(request): qs= Post.objects.all() user= request.user context= { 'qs':qs, 'user':user, } I am trying to define it in a class PostListView(L

Re: How to over ride the get context data method in view

2020-05-13 Thread Ahmed Khairy
iked = post.likes.filter(user=request.user).exists() > > > Le mer. 13 mai 2020 à 19:22, Ahmed Khairy > a écrit : > >> Hi There, >> >> I have rewritten the get_context_data method to be like this but I am >> getting name 'user' is not defined: &

Re: How to over ride the get context data method in view

2020-05-13 Thread Ahmed Khairy
ml"%} {% block content %} {% for post in posts %} > {{post.title}} > > {% csrf_token %} > {% if is_like %}type="submit">Unlike > > {% else %} > Like > {% endif %}{% endfor %} {% endblock content %} > > Something like this should give you the function

Re: How to over ride the get context data method in view

2020-05-13 Thread Ahmed Khairy
trying to get the absolut url for your post, but aren't showing > any post detail view. > > Regards, > > Andréas > > > Den ons 13 maj 2020 kl 06:46 skrev Ahmed Khairy >: > >> I am currently trying to create a like button for my posts in Django >> >

How to over ride the get context data method in view

2020-05-12 Thread Ahmed Khairy
I am currently trying to create a like button for my posts in Django I have reached to the part where I can add a like but I am facing difficulty writing the code related to the view which linking the PostListView if there is user who liked it or not. I am getting an error: page Error 404 alt

Adding a default Variation when creating a new Item

2020-05-12 Thread Ahmed Khairy
I have created this code for defining a default everytime I create a new product, It is working fine and whenever I create a new Item a new variable (size) is create I want to check whether this code is correct or not as I have had help from someone and I think we could have created an easie

Messages not appearing after creating an app for it in Django

2020-05-09 Thread Ahmed Khairy
I created an app called marketing app which customizes messages to be written on top of website page. My problem is that these messages are not showing when everything is configured and I don't know why is that might be the template because {{ marketing_message.message}} is only not showing Thi

How to create variables for an e-commerce website

2020-05-06 Thread Ahmed Khairy
Hi am looking for resources to create variables such as size and color to an e-commerce website -- 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+un

Template Variations title not showing

2020-05-05 Thread Ahmed Khairy
Hello all, I have made a variation to an Item class in models.py and I think i got the template syntax right but apparently there are something wrong which i can't figure it out Here is the model class Item(models.Model): title = models.CharField(max_length=100) description = models.

Re: Possible server attacks

2020-05-03 Thread Ahmed Ishtiaque
Observe how your server responds to these requests. Sometimes these requests are sent by attackers hoping that your server might respond with sensitive data that it shouldn't be sending. Generally, ensuring that invalid requests end up with your server sending error responses and not actual sensiti

How to get previously uploaded Images in Django

2020-05-03 Thread Ahmed Khairy
I am using Django 2.2 to make a project where designers upload designs and when I want to post them from admin, I want to choose their names and after I choose their names only their designs appear in the drop down list. So far I have reach the reach the designer name in a drop down list but I

Testing an online payment Form using Django Keep getting Not Authenticated Error. Is it because of the Testing Credit Card numbers?

2020-04-27 Thread Ahmed Khairy
I am making a project for an online payment e-commerce I think I got everything right as am following a Tutorial Keep getting this Error: Not Authenticated Error I used the testing CC Numbers for testing purposes My question is the following codes correct and I'm getting Not Authenticated Er

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I added the new app urls to the main project URLs I think this was the mistake but now I have to change the URLs location as I'm getting 404 error score/score/ Thank you, your first question is what made me find the issue On Saturday, April 25, 2020 at 1:13:08 AM UTC-4, Ahmed Khairy

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
Yes i tried other urls from other models it worked but anything related to the new app is not linked On Saturday, April 25, 2020 at 12:42:14 AM UTC-4, Motaz Hejaze wrote: > > did you try to change the name 'post-create' to something else ? > > On Sat, Apr 25, 2020 a

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
> did you add your new app to installed apps in settings.py > > On Sat, Apr 25, 2020 at 6:29 AM Motaz Hejaze > wrote: > >> you don't need the include part because you already copied the class to >> the new app >> >> On Sat, Apr 25, 2020 at 6:16 AM Ahmed

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I tried to include the urls originally it was path('score/new/', PostCreateView.as_view(), name='post-create'), but both didn't work On Friday, April 24, 2020 at 11:29:41 PM UTC-4, Ahmed Khairy wrote: > > I have created a new app in a project and moved one

Re: NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
de(('post-create.urls', 'post-create' > ), PostCreateView.as_view(), name='post-create'), > > explain this line ? > > On Sat, Apr 25, 2020 at 5:30 AM Ahmed Khairy > wrote: > >> I have created a new app in a project and moved one of the classes from

NoReverseMatch at , I have Recently a class from one app and added it to a new app and I revised everything but keep receiving this Error, what did i miss?

2020-04-24 Thread Ahmed Khairy
I have created a new app in a project and moved one of the classes from one app to the new app I checked every step but I keep getting No Reverse match I wrote the name of the app before the namespace but still HTML : Upload Designs URLS from django.urls import include, path from

Re: Success Message after Submitting a form

2020-04-24 Thread Ahmed Khairy
> model = Post > fields = ['caption', 'design'] > template_name = "post_form.html" > success_url = '/score' > success_message = "Your Design has been submitted for Review" > > > > it will work > >

Success Message after Submitting a form

2020-04-23 Thread Ahmed Khairy
I have created this class with the success message but I am not receiving the success message I requested, other pages are showing them but this one is not What might be wrong? In the views: class PostCreateView(LoginRequiredMixin, CreateView): model = Post fields = ['caption', 'desig

  1   2   3   4   5   >