Re: Implementing multiple roles user model in django

2020-12-23 Thread Anselme Gildas Tchassem Boutchouang
Absolutely

Le mer. 23 déc. 2020 à 22:55, Mike Dewhirst  a
écrit :

> On 24/12/2020 4:38 am, Aakash Verma wrote:
> > Hi , which is the best possible way to have multiple roles user  model
> > in django , I have tried OnetoOnefield with default user model , and
> > then having a charField in a user model Where in choices are provided
> > for different roles and other is trying Third party packages .
> > Can anyone suggest what is the best way used in Industry to implement
> > Multiple roles in Django , (specially if roles are more than 5). Need
> > to Implement this in Django Rest Framework .
> > Please suggest some good resource on it if possible
>
> It is built into Django already. Look at django.contrib.auth ...
>
>
> https://docs.djangoproject.com/en/2.2/ref/contrib/auth/#django.contrib.auth.models.Group
>
> If you think "role" when you see "group" you have it already.
>
> The key to success is to NEVER assign permissions to individual users.
> Roles (ie groups) need to be nicely named and given exactly the
> permissions required. You can then put different users into one or more
> groups as necessary. Next write a few utilities such as is_editor(user)
> or is_reporter(user) and so on.
>
>
> > Thanks and Regards
> > Akash verma
> > --
> > 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
> > <mailto:django-users+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/d1b0ffb2-c148-49e1-885a-551d6ff12a07n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/django-users/d1b0ffb2-c148-49e1-885a-551d6ff12a07n%40googlegroups.com?utm_medium=email_source=footer
> >.
>
>
> --
> 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 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/c531d0a4-1cb6-22a1-c97d-8ced458c7b1b%40dewhirst.com.au
> .
>


-- 
*Anselme Gildas TCHASSEM BOUTCHOUANG*
DevOps, Fullstack, Freelance
(+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
* / LinkedIN : Profil LinkedIN
<http://www.linkedin.com/in/anselme-gildas-tchassem-boutchouang-2048a916b>
/ Facebook : Profil Facebook
<https://web.facebook.com/profile.php?id=19069093492>  / Whatsapp:
(+237) 696 319 191

-- 
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/CAPB6eujsDcgMJuUpiYezYFoG9TvNYSDEv8d%2Bhbe6KxVHX5SvGg%40mail.gmail.com.


Re: How can I host my django project on my pc for someone to see it outside my WIFI network

2020-12-23 Thread Anselme Gildas Tchassem Boutchouang
Cool, thanks

Le jeu. 24 déc. 2020 à 00:21, Mai Elshiashi  a
écrit :

> If you're looking for a tool to allow anyone to see your project running
> on localhost. There's a cool tool called Ngrok Which exposes your localhost
> to  be public with a secure tunnel.Check it out.
> https://ngrok.com/
>
>
> On Wed, Dec 23, 2020 at 11:36 PM Benny M  wrote:
>
>> I’m going to second Kasper on this. There’s enough affordable options out
>> there that self hosting to a “safe enough” degree would be the more
>> expensive route to go.
>>
>> I did this myself for a little while - had a makeshift cloud service for
>> myself right up until I had a dev-ops friend take a look. His little
>> giggles and eye-rolls were enough to convince me that I was wholly out of
>> my league.
>>
>> It’s a fun idea, but if you’re going to do it right, it’s not going to be
>> cheap and it’s still not going to be secure enough to keep your network
>> from being compromised.
>>
>> > On Dec 23, 2020, at 3:02 PM, Kasper Laudrup 
>> wrote:
>> >
>> > On 23/12/2020 18.46, joseenoc...@gmail.com wrote:
>> >> Can some one pls explain what steps show I follow to host my django
>> project on my pc and allow anyone outside my network WIFI to see the webiste
>> >>
>> >
>> > You don't want to do that, but just in case:
>> >
>> > You probably want to ensure that you have a static IP from your
>> internet provider. If you don't have that or for some reason cannot get
>> one, consider looking into dynamic DNS so you have a well known DNS name
>> when your public IP address changes.
>> >
>> > Configure your router to forward requests on the port where your Django
>> website is running to the IP of your PC.
>> >
>> > But you seriously don't want to do that. Look into how to deploy your
>> website instead.
>> >
>> > 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/90d7384c-e6ea-4485-60da-3a57c0cd3707%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/CH2PR14MB3913826C4668B8F16D33278AC0DE0%40CH2PR14MB3913.namprd14.prod.outlook.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/CAJPiQORoYwRcyKhJYxBa4j%3DxKsuT0snjHCe%2B0mVNoEogeejadw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJPiQORoYwRcyKhJYxBa4j%3DxKsuT0snjHCe%2B0mVNoEogeejadw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
*Anselme Gildas TCHASSEM BOUTCHOUANG*
DevOps, Fullstack, Freelance
(+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
* / LinkedIN : Profil LinkedIN
<http://www.linkedin.com/in/anselme-gildas-tchassem-boutchouang-2048a916b>
/ Facebook : Profil Facebook
<https://web.facebook.com/profile.php?id=19069093492>  / Whatsapp:
(+237) 696 319 191

-- 
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/CAPB6eugtZRasgPv7w%3DM%2BycdrzurLf8k47K_Xmm4RtAS4RJQPHA%40mail.gmail.com.


ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-13 Thread Anselme Gildas Tchassem Boutchouang
 Hello,
This error is raised when I run a migration allowing me to fill in the bd.
To try to resolve the error, I formatted the User object as a *SimpleLazyObject
*because I found that this is the type of object returned by the
*self.request.user* instance in a view.
Here is the model from which I fill the bd and the migration.

Thank you in advance for your solution

==
my model

# Create your models here.

# Définition de notre classe BasicClass, précisement un model
class BasicClass(models.Model):

"""Model définissant les propriétés que toutes les classes modèles
partagent qui sont:
- l'identifiant (attribut: id (UUIDField))
- le slug (attribut: slug (SlugField))
- la date de création (attribut: created_at  (DateTimeField))
- la date de la dernière mise à jour (attribut: update_at  (DateTimeField))
- le libellé (attribut: label (CharField: max_length=100 ))"""

id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=
False, verbose_name='ID')
slug = models.SlugField(max_length=100)
created_at = models.DateTimeField(auto_now_add=True, verbose_name=
"Date de création")
update_at = models.DateTimeField(auto_now=True, verbose_name=
"Date de dernière modification")

class Meta:
abstract = True
ordering = ['created_at']

# Définition de notre classe Restraint, précisement un model
class Restraint(BasicClass):
"""Model définissant une responsabilté caractérisé par:
- son code (attribut: code (CharField: max_length=100))
- son libellé (attribut: label (CharField: max_length=100))
- sa prime en pourcentage ou non (attribut: percentage_bonus
(CharField: choices=RESPONSABILITY_BONUS_CHOICES, max_length=50))
- sa valeur en pourcentage ou en montant (attribut:
value_amount_or_percentage (DecimalField: max_digits=6,
decimal_places=2))"""

user = models.ForeignKey('auth.User', related_name='company_restraints'
, on_delete=models.PROTECT)
code = models.CharField(max_length=100, unique=True, verbose_name="Code"
)
label = models.CharField(max_length=100, verbose_name="Libellé")
description = models.TextField(max_length=200, verbose_name=
"Description")
employees = models.ManyToManyField('Employee', through=
'EmployeeRestraint', related_name="restrains")

class Meta(BasicClass.Meta):
verbose_name_plural = "Eléments de retenue"

==
my migration

# Generated by Django 3.0.7 on 2020-12-08 18:38

from django.db import migrations, transaction
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.utils.functional import SimpleLazyObject

def create_salary_deductions(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
# version than this migration expects. We use the historical version.
with transaction.atomic():
Restraint = apps.get_model('company', 'Restraint')
try:
user_instance = User.objects.get(username='ksm_system')
except User.DoesNotExist:
user_instance = User.objects.create_superuser(username=
'ksm_system', email= 'ksm_sys...@yowyob.com', password='w1c0net@app#deploy')
user = user_instance
Restraint.objects.create(user=user, code='ABNOJUST', label=
'Absence non justifiée', description=
"Au cours du mois, le salarié peut être volontairement ou
involontairement absent de son poste de travail"
)
Restraint.objects.create(user=user, code='CAC', label=
'Centimes additionnels communaux', description=
"centimes additionnels communaux")
Restraint.objects.create(user=user, code='IRPP', label=
'Impôt sur le revenu des personnes physique', description=
"l’impôt sur le revenu des personnes physique")
Restraint.objects.create(user=user, code='RAV', label=
'Redevance audio-visuelle', description="la redevance audio-visuelle")
Restraint.objects.create(user=user, code='PV', label=
'Pension vieillesse', description="Pension vieillesse")
Restraint.objects.create(user=user, code='ACSA', label=
'Acomptes sur salaire', description="Acomptes sur salaire")
Restraint.objects.create(user=user, code='PARAE', label=
'Prêts à rembourser à l’entreprise', description=
'Prêts à rembourser à l’entreprise')
Restraint.objects.create(user=user, code='OSSSA', label=
'Opposition sur salaire, saisie-arrêt', description=
"Opposition sur salaire, saisie-arrêt")

class Migration(migrations.Migration):

dependencies = [
('company', '0004_auto_20201208_1932'),
]

operations = [
migrations.RunPython(create_salary_deductions),
]

-- 
*Anselme Gildas TCHASSEM BOUTCHOUANG*
DevOps, Fullstack, Freelanc

Re: value too long for type character varying(1)

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
did you redo py manage.py makemigrations after your modification?

Le sam. 12 déc. 2020 à 13:21, 712189512  a
écrit :

> It’s probably because you have already made migrations and also made some
> changes in your model ,if that’s the case delete the old migrations and
> make migrations again and should work
>
> On Sat, Dec 12, 2020 at 1:56 PM Taofeek Jimoh Iyanda <
> iyandataofee...@gmail.com> wrote:
>
>> Hello Guys,
>>
>> Please I need an urgent help on this subject, I was trying to migrate my
>> model in django to a postgres DB but I am getting 'value too long for type
>> character varying(1)' error. I have tried making the max_length = 1000 but
>> I am still getting the same error.
>>
>> The last thing I can remember I did was that I create another CharField
>> with a list of choice. I tried removing it but still getting the same error.
>>
>> Below is the code i am trying to migrate:
>>
>> from django.db import models
>> from django.utils import timezone
>> import datetime
>> # Create your models here.
>> SEX = [
>> ('M', 'MALE'),
>> ('F', 'FEMALE')
>> ]
>>
>> TITLE_CHOICES = [
>> ('MR','Mr.'),
>> ('MRS','Mrs.'),
>> ('MS','Ms.')
>> ]
>>
>> STATUS = [
>> ('A', 'Admitted'),
>> ('D', 'Discharged')
>> ]
>>
>>
>> class PatientDetail(models.Model):
>>
>> """
>> Model of the details of entry patient
>> """
>> FirstName = models.CharField(blank = False, max_length = 1000)
>> LastName = models.CharField(blank = False, max_length = 1000)
>> MiddleName = models.CharField(max_length = 1000)
>>
>> Title = models.CharField(choices = TITLE_CHOICES, blank=False, 
>> max_length = 1000)
>> Address = models.CharField(blank = False, max_length = 1000)
>> Email = models.EmailField(max_length = 1000)
>>
>> sex = models.CharField(blank = False, choices = SEX, max_length = 1000)
>> Age = models.DateField(blank = False)
>> PhoneNumber = models.CharField(blank = False, max_length = 1000)
>> NextOfKin = models.CharField(blank = False, max_length = 1000)
>> NextofKin_Address = models.CharField(blank = False, max_length = 1000)
>>
>> NextofKIn_PhoneNumber = models.DecimalField(blank = False, 
>> max_digits=13, decimal_places=0)
>> DateOfReg = models.DateTimeField(auto_now=True)
>> NurseInDuty = models.CharField(blank=False, max_length = 1000)
>>
>> Status = models.CharField(choices = STATUS, blank = False, max_length = 
>> 1000)
>>
>>
>> class Meta:
>> db_table = 'Patient Detail'
>>
>> --
>> 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/64780f11-2e95-45dd-a36c-5621a17f8a3cn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/64780f11-2e95-45dd-a36c-5621a17f8a3cn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> Gabrielstone
>
> --
> 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/CAL-5MpVB5Q6SaLtCgz522Emi9XYyvzzjNuL%3DQGUtmNX0JkeSAQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL-5MpVB5Q6SaLtCgz522Emi9XYyvzzjNuL%3DQGUtmNX0JkeSAQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
*Anselme Gildas TCHASSEM BOUTCHOUANG*
DevOps, Fullstack, Freelance
(+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
* / LinkedIN : Profil LinkedIN
<http://www.linkedin.com/in/anselme-gildas-tchassem-boutchouang-2048a916b>
/ Facebook : Profil Facebook
<https://web.facebook.com/profile.php?id=19069093492>  / Whatsapp:
(+237) 696 319 191

-- 
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/CAPB6euinY24Y3tP-on3rQ%3DbLOqw4sLZa5mzoYP-j_1UjY42Tjg%40mail.gmail.com.


ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Hello,
This error is raised when I run a migration allowing me to fill in the bd.
To try to resolve the error, I formatted the User object as a *SimpleLazyObject
*because I found that this is the type of object returned by the
*self.request.user* instance in a view.
Here is the model from which I fill the bd and the migration.



-- 
*Anselme Gildas TCHASSEM BOUTCHOUANG*
DevOps, Fullstack, Freelance
(+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
* / LinkedIN : Profil LinkedIN
<http://www.linkedin.com/in/anselme-gildas-tchassem-boutchouang-2048a916b>
/ Facebook : Profil Facebook
<https://web.facebook.com/profile.php?id=19069093492>  / Whatsapp:
(+237) 696 319 191

-- 
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/CAPB6euiyy_VNeHELz2OX7k8EMNqgQJ38xJ-j7H-G-s7rad_%3DNA%40mail.gmail.com.
from django.db import models, transaction, IntegrityError
from django.core.exceptions import ValidationError
from company.validators import *
import datetime
import uuid
from phone_field import PhoneField
from django.contrib.auth.models import User

# Create your models here.

# Définition de notre classe BasicClass, précisement un model
class BasicClass(models.Model): 
"""Model définissant les propriétés que toutes les classes modèles partagent qui sont:
- l'identifiant (attribut: id (UUIDField))
- le slug (attribut: slug (SlugField))
- la date de création (attribut: created_at  (DateTimeField))
- la date de la derniere mise à jour (attribut: update_at  (DateTimeField))
- le libellé (attribut: label (CharField: max_length=100 ))"""

id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, verbose_name='ID')
slug = models.SlugField(max_length=100)
created_at = models.DateTimeField(auto_now_add=True, verbose_name="Date de création")
update_at = models.DateTimeField(auto_now=True, verbose_name="Date de dernière modification")

class Meta:
abstract = True
ordering = ['created_at']
		
		
# Définition de notre classe Restraint, précisement un model
class Restraint(BasicClass): 
"""Model définissant une responsabilté caractérisé par:
- son code (attribut: code (CharField: max_length=100))
- son libellé (attribut: label (CharField: max_length=100))
- sa prime en pourcentage ou non (attribut: percentage_bonus (CharField: choices=RESPONSABILITY_BONUS_CHOICES, max_length=50))
- sa valeur en pourcentage ou en montant (attribut: value_amount_or_percentage (DecimalField: max_digits=6,  decimal_places=2))"""

user = models.ForeignKey('auth.User', related_name='company_restraints', on_delete=models.PROTECT)
code = models.CharField(max_length=100, unique=True, verbose_name="Code")
label = models.CharField(max_length=100, verbose_name="Libellé")
description = models.TextField(max_length=200, verbose_name="Description")
employees = models.ManyToManyField('Employee', through='EmployeeRestraint', related_name="restrains")

class Meta(BasicClass.Meta):
verbose_name_plural = "Eléments de retenue"

def __str__(self):
"""
Cette méthode nous permettra de reconnaître facilement les différentes 
éléments de retenue que nous traiterons plus tard
"""
return self.code# Generated by Django 3.0.7 on 2020-12-08 18:38

from django.db import migrations, transaction
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.utils.functional import SimpleLazyObject

def create_salary_deductions(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
# version than this migration expects. We use the historical version.
with transaction.atomic():
Restraint = apps.get_model('company', 'Restraint')
try:
user_instance = User.objects.get(username='ksm_system')
except User.DoesNotExist:
user_instance = User.objects.create_superuser(username='ksm_system', email= 'ksm_sys...@yowyob.com', password='w1c0net@app#deploy')
user = user_instance
Restraint.objects.create(user=user, code='ABNOJUST', label='Absence non justifiée', description="Au cours du mois, le salarié peut être volontairement ou involontairement absent de son poste de travail")
Restraint.objects.create(user=user, code='CAC', label='Centimes additionnels communaux', description="centimes additionnels communaux")   
Restraint.objects.create(user=user, code='IRPP', label='Impôt su

Re: value too long for type character varying(1)

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
django indicates the error line. Show us this line

Le sam. 12 déc. 2020 à 15:27, Anselme Gildas Tchassem Boutchouang <
tbago...@gmail.com> a écrit :

> did you redo py manage.py makemigrations after your modification?
>
> Le sam. 12 déc. 2020 à 13:21, 712189512  a
> écrit :
>
>> It’s probably because you have already made migrations and also made some
>> changes in your model ,if that’s the case delete the old migrations and
>> make migrations again and should work
>>
>> On Sat, Dec 12, 2020 at 1:56 PM Taofeek Jimoh Iyanda <
>> iyandataofee...@gmail.com> wrote:
>>
>>> Hello Guys,
>>>
>>> Please I need an urgent help on this subject, I was trying to migrate my
>>> model in django to a postgres DB but I am getting 'value too long for type
>>> character varying(1)' error. I have tried making the max_length = 1000 but
>>> I am still getting the same error.
>>>
>>> The last thing I can remember I did was that I create another CharField
>>> with a list of choice. I tried removing it but still getting the same error.
>>>
>>> Below is the code i am trying to migrate:
>>>
>>> from django.db import models
>>> from django.utils import timezone
>>> import datetime
>>> # Create your models here.
>>> SEX = [
>>> ('M', 'MALE'),
>>> ('F', 'FEMALE')
>>> ]
>>>
>>> TITLE_CHOICES = [
>>> ('MR','Mr.'),
>>> ('MRS','Mrs.'),
>>> ('MS','Ms.')
>>> ]
>>>
>>> STATUS = [
>>> ('A', 'Admitted'),
>>> ('D', 'Discharged')
>>> ]
>>>
>>>
>>> class PatientDetail(models.Model):
>>>
>>> """
>>> Model of the details of entry patient
>>> """
>>> FirstName = models.CharField(blank = False, max_length = 1000)
>>> LastName = models.CharField(blank = False, max_length = 1000)
>>> MiddleName = models.CharField(max_length = 1000)
>>>
>>> Title = models.CharField(choices = TITLE_CHOICES, blank=False, 
>>> max_length = 1000)
>>> Address = models.CharField(blank = False, max_length = 1000)
>>> Email = models.EmailField(max_length = 1000)
>>>
>>> sex = models.CharField(blank = False, choices = SEX, max_length = 1000)
>>> Age = models.DateField(blank = False)
>>> PhoneNumber = models.CharField(blank = False, max_length = 1000)
>>> NextOfKin = models.CharField(blank = False, max_length = 1000)
>>>
>>> NextofKin_Address = models.CharField(blank = False, max_length = 1000)
>>>
>>> NextofKIn_PhoneNumber = models.DecimalField(blank = False, 
>>> max_digits=13, decimal_places=0)
>>> DateOfReg = models.DateTimeField(auto_now=True)
>>> NurseInDuty = models.CharField(blank=False, max_length = 1000)
>>>
>>> Status = models.CharField(choices = STATUS, blank = False, max_length = 
>>> 1000)
>>>
>>>
>>> class Meta:
>>> db_table = 'Patient Detail'
>>>
>>> --
>>> 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/64780f11-2e95-45dd-a36c-5621a17f8a3cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/64780f11-2e95-45dd-a36c-5621a17f8a3cn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> Gabrielstone
>>
>> --
>> 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/CAL-5MpVB5Q6SaLtCgz522Emi9XYyvzzjNuL%3DQGUtmNX0JkeSAQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAL-5MpVB5Q6SaLtCgz522Emi9XYyvzzjNuL%3DQGUtmNX0JkeSAQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> *Anselme Gildas TCHASSEM BOUTCHOUANG*
> DevOps, Fullstack, Freelance
> (+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
> * / Linke

Re: ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Thank you in advance for your solution

Le sam. 12 déc. 2020 à 07:51, Anselme Gildas Tchassem Boutchouang <
tbago...@gmail.com> a écrit :

> Hello,
> This error is raised when I run a migration allowing me to fill in the bd.
> To try to resolve the error, I formatted the User object as a 
> *SimpleLazyObject
> *because I found that this is the type of object returned by the
> *self.request.user* instance in a view.
> Here is the model from which I fill the bd and the migration.
>
>
>
> --
> *Anselme Gildas TCHASSEM BOUTCHOUANG*
> DevOps, Fullstack, Freelance
> (+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
> * / LinkedIN : Profil LinkedIN
> <http://www.linkedin.com/in/anselme-gildas-tchassem-boutchouang-2048a916b>
> / Facebook : Profil Facebook
> <https://web.facebook.com/profile.php?id=19069093492>  / Whatsapp:
> (+237) 696 319 191
>


-- 
*Anselme Gildas TCHASSEM BOUTCHOUANG*
DevOps, Fullstack, Freelance
(+237) 696 319 191 / (+237) 698 544 992 / Email : *aansegild...@yahoo.fr
* / LinkedIN : Profil LinkedIN
<http://www.linkedin.com/in/anselme-gildas-tchassem-boutchouang-2048a916b>
/ Facebook : Profil Facebook
<https://web.facebook.com/profile.php?id=19069093492>  / Whatsapp:
(+237) 696 319 191

-- 
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/CAPB6euic-Byg_2a%2BsmBnTZtrh0xOybByVYO57eE4dUM3u-FpYQ%40mail.gmail.com.


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

2020-12-02 Thread Anselme Gildas Tchassem Boutchouang
 hi,

I am interested.

Le mar. 1 déc. 2020 à 15:30, Saif Ul Islam  a
écrit :

> Hello!
>
> This is really interesting - it's always fun to do work in teams and meet
> new people with similar skill sets and interests. I can't commit as a
> always available, but I'm happy to contribute whatever I can for some
> hobbyist projects, ideas.
> About me, I'm a Undergrad at FAST NUCES, Karachi right now pursuing
> Bachelors in Computer Science. I have some experience with Data Science and
> Web Dev, Javascript and Python, React, Django, ExpressJS, heroku, vercel,
> netlify, Messenger API etc. Here' my github, https://github.com/rubix982,
> and my LinkedIn, https://www.linkedin.com/in/saif-ul-islam-93786b187/, if
> you want to get in contact with me,
>
> Thanks!
>
> Hope to see amazing minds from this thread soon.
>
> Ciao!
>
> On Tuesday, December 1, 2020 at 7:17:41 PM UTC+5 vamshi...@gmail.com
> wrote:
>
>> hi
>> I am intrested
>>
>> On Tuesday, December 1, 2020 at 7:43:58 PM UTC+5:30 Mahendra Yadav wrote:
>>
>>> i am intersted
>>> Mahendra A
>>>
>>>
>>> On Tue, Dec 1, 2020 at 6:47 AM Monaco investment 
>>> wrote:
>>>
>>>> I am also interested.
>>>>
>>>> Get Outlook for Android <https://aka.ms/ghei36>
>>>>
>>>> --
>>>> *From:* django...@googlegroups.com  on
>>>> behalf of boyua...@gmail.com 
>>>> *Sent:* Monday, November 30, 2020 7:35:31 PM
>>>> *To:* django...@googlegroups.com 
>>>> *Subject:* Re: Looking to join a team in a Django Project to gain
>>>> Experience
>>>>
>>>> I'm also interested.
>>>>
>>>> On Monday, November 30, 2020, 07:01:48 AM PST, Md Reyajuddin <
>>>> md.reya...@gmail.com> wrote:
>>>>
>>>>
>>>> hi,
>>>>
>>>> I am interested.
>>>>
>>>> On Tue, Sep 22, 2020 at 6:09 AM ahmed.he...@gmail.com <
>>>> ahmed.he...@gmail.com> wrote:
>>>>
>>>> Hi all,
>>>>
>>>> I am looking for a team of developers to join them in a project to
>>>> enhance my skills and add to my portfolio.  I am available part time.
>>>>
>>>> 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...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com?utm_medium=email_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...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com?utm_medium=email_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...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com
>>>> <https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com?utm_medium=email_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...@googlegroups.com.
>>>>
>>> To view this discussi

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

2020-12-02 Thread Anselme Gildas Tchassem Boutchouang
https://github.com/AnselmeG300

Le mer. 2 déc. 2020 à 09:09, Anselme Gildas Tchassem Boutchouang <
tbago...@gmail.com> a écrit :

> hi,
>
> I am interested.
>
> Le mar. 1 déc. 2020 à 15:30, Saif Ul Islam  a
> écrit :
>
>> Hello!
>>
>> This is really interesting - it's always fun to do work in teams and meet
>> new people with similar skill sets and interests. I can't commit as a
>> always available, but I'm happy to contribute whatever I can for some
>> hobbyist projects, ideas.
>> About me, I'm a Undergrad at FAST NUCES, Karachi right now pursuing
>> Bachelors in Computer Science. I have some experience with Data Science and
>> Web Dev, Javascript and Python, React, Django, ExpressJS, heroku, vercel,
>> netlify, Messenger API etc. Here' my github, https://github.com/rubix982,
>> and my LinkedIn, https://www.linkedin.com/in/saif-ul-islam-93786b187/,
>> if you want to get in contact with me,
>>
>> Thanks!
>>
>> Hope to see amazing minds from this thread soon.
>>
>> Ciao!
>>
>> On Tuesday, December 1, 2020 at 7:17:41 PM UTC+5 vamshi...@gmail.com
>> wrote:
>>
>>> hi
>>> I am intrested
>>>
>>> On Tuesday, December 1, 2020 at 7:43:58 PM UTC+5:30 Mahendra Yadav wrote:
>>>
>>>> i am intersted
>>>> Mahendra A
>>>>
>>>>
>>>> On Tue, Dec 1, 2020 at 6:47 AM Monaco investment 
>>>> wrote:
>>>>
>>>>> I am also interested.
>>>>>
>>>>> Get Outlook for Android <https://aka.ms/ghei36>
>>>>>
>>>>> --
>>>>> *From:* django...@googlegroups.com  on
>>>>> behalf of boyua...@gmail.com 
>>>>> *Sent:* Monday, November 30, 2020 7:35:31 PM
>>>>> *To:* django...@googlegroups.com 
>>>>> *Subject:* Re: Looking to join a team in a Django Project to gain
>>>>> Experience
>>>>>
>>>>> I'm also interested.
>>>>>
>>>>> On Monday, November 30, 2020, 07:01:48 AM PST, Md Reyajuddin <
>>>>> md.reya...@gmail.com> wrote:
>>>>>
>>>>>
>>>>> hi,
>>>>>
>>>>> I am interested.
>>>>>
>>>>> On Tue, Sep 22, 2020 at 6:09 AM ahmed.he...@gmail.com <
>>>>> ahmed.he...@gmail.com> wrote:
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I am looking for a team of developers to join them in a project to
>>>>> enhance my skills and add to my portfolio.  I am available part time.
>>>>>
>>>>> 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...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com?utm_medium=email_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...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAEMKzF%2Bqg6voJeA0Oanz1N%3Dp%3DXW%3D8X0pHYU0%2BoNByrdqg_7uZQ%40mail.gmail.com?utm_medium=email_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...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/1588368606.1796518.1606761331585%40mail.yahoo.com
>>>