Re: Custom Unique Registration Number Required

2023-04-06 Thread Amine Khetim
Hi, You can add a validator to your field with a custom alogithm to verify that the format is correct : Validators | Django documentation | Django (djangoproject.com) Don't hesitate if you need more information Le jeudi 6 avril 2023 à 03:

how to show liste filtre admin django ManyToOne Please

2022-10-24 Thread AMINE AZIZ
how to show liste filtre admin django ManyToOne in this case : [image: Sans titre 9.jpg] How can i filtre in Project by tasks and specialy by Personne liste dropdown of personne and show me liste of projects ? best ragards -- You received this message because you are subscribed to the G

how to show liste filtre admin django ManyToOne

2022-10-24 Thread AMINE AZIZ
how to show liste filtre admin django ManyToOne in this case : in models.py --- class Personne(models.Model): name= models.CharField(max_length=50,blank=False) def __str__(self): return self.name class Project(models.Model): title= models.CharField(max_length=50,blank=False) note= m

Re: Problem to see file or image uploaded in admin django

2020-08-24 Thread AMINE AZIZ
i found solution just i need to change media/ to /media/ :) Le lun. 24 août 2020 à 15:40, Ogunsanya Opeyemi a écrit : > Hi, do you have pillow installed in your library. and look for the image > in that path in your local directory. > > > On Mon, Aug 24, 2020 at 12:59 PM AM

Problem to see file or image uploaded in admin django

2020-08-24 Thread AMINE AZIZ
Problem to see file or image uploaded in admin django see image below my setting.py import os from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.p

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-10 Thread AMINE AZIZ
👍🏻 Shre your code, so it will help others. And if you can, change to resoulved, so it will be marked in Google search Best regards -- 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

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
I will share with you my iwn code used in admin , but it still the same as the front end withe jQuery i can show input or hide it , so you will do the same with popup , by default it will be display none, and with Jquery you can show it if user change value to yes dropdown (select) you will u

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
length=1024) > email = models.EmailField("Authorized - Email", max_length=254) > phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$', message="Phone > number must be entered in the format: '+9'. Up to 15 digits > allowed.") >

Re: How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
You 'll use JQUERY normal as the same in html You need every html id (so you cab add on change) JQUERY on change select Show hidden popup / or show hidden input Share your code. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

How to get Dependent Dropdown Feilds in Django ModelForms. Please answer : Important

2020-06-07 Thread AMINE AZIZ
Hi You need to use some JQUERY code You need this in admin or frontend ? -- 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...@googlegroup

Re: Facing trouble with djangotoolbox

2019-08-20 Thread Amine Hosni
Have you found any alternative solution please ? I'm stuck right were you were... On Saturday, August 18, 2018 at 3:17:50 PM UTC+2, Sagar wrote: > > Hello, > I am working on project in which I'm using django2 and MongoDB as > database. I have used djongo driver to connect django with MongoDB. I

Django models choices

2016-03-21 Thread Amine Yaiche
Hi everyone, Given a field in a model that uses choices: CHOICES = ( (0, "choice_0"), (1, "choice_1") ) foo = models.IntegerField(choices=CHOICES) If i put a value other than 0 or 1, django will accept it. Is that possible that we instruct Django to accept only values that are mention

Getting the selected value on a Django forms.ChoiceField

2013-03-28 Thread amine antri
** i'm working on Djnago and i need to know how can i get selected value in forms.ChoiceField class FilterForm(forms.Form): Continent = forms.ChoiceField(choices=continents()) i tried with : def affiche_all(request, currency): if request.method == 'POST':

Book

2009-12-22 Thread Amine
Hi, I'm new in django and i'm searching a book : django 1.0 web site development PDF can u help me please ! in http://my.softarchive.net/search/?q=django&x=0&y=0I could not download it. Is there another way ? thanks for help. -- You received this message because you are subscribed to the G

Re: Filtering ManyToManyField

2008-09-14 Thread Amine CHRAIBI
who can help us Amine 2008/9/11 MikeHowarth <[EMAIL PROTECTED]> > > Anyone? > > I'm really struggling with this. > > As stated in my first post running the code creates a recursive loop. > > Had a bit of a hack around with things, but can't figure anything >