Unpaid Internship

2023-04-24 Thread John Diginee
Dear Sir/Ma'am,

I hope this message finds you well. I am a full-stack software engineering 
student at Holberton School, a Silicon Valley-based software engineering 
institution. I am reaching out to express my interest in an unpaid backend 
intern or junior role at your esteemed company.

My primary goal is to learn from your inspiring and experienced developers 
and gain practical, real-world experience. I am not particularly concerned 
about financial compensation at this time.

I understand that my request may seem unconventional, but I would be 
grateful for any opportunity to work with your company. I am a hardworking, 
persistent, determined, resilient, and fast-learning individual, and I am 
confident that I can contribute positively to your team.

Here's my LinkedIn and GitHub profile for your review:
https://www.linkedin.com/in/johndiginee/
https://github.com/johndiginee

 Thank you for your precious time and consideration. I look forward to 
hearing from 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/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com.


Re: Unpaid Internship

2023-04-24 Thread Paul Kudla ( SCOM )
Pls contact me directly at p...@scom.ca please have an idea


   
thanks - paul 
   Paul Kudla  SCOM.CA Internet Services Inc.004-1009 Byron Street 
South   Whitby, Ontario - Canada   L1N 4S3Toronto   416.642.7266   Main   
1.866.411.7266   Fax   1.888.892.7266   

On Apr 24, 2023 at 10:26:17 EDT, John Diginee  
wrote:

 Dear Sir/Ma'am,I hope this message finds you well. I am a full-stack 
software engineering student at Holberton School, a Silicon Valley-based 
software engineering institution. I am reaching out to express my interest in 
an unpaid backend intern or junior role at your esteemed company.My primary 
goal is to learn from your inspiring and experienced developers and gain 
practical, real-world experience. I am not particularly concerned about 
financial compensation at this time.I understand that my request may seem 
unconventional, but I would be grateful for any opportunity to work with your 
company. I am a hardworking, persistent, determined, resilient, and 
fast-learning individual, and I am confident that I can contribute positively 
to your team.Here's my LinkedIn and GitHub profile for your review: 
https://www.linkedin.com/in/johndiginee/
https://github.com/johndiginee
  
 
  Thank you for your precious time and consideration. I look forward to hearing 
from 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/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com
 .

-- 
This message has been scanned for viruses and
dangerous content by  MailScanner  , and is
believed to be clean.
 

-- 
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/94938A57-A4DB-4AF7-9C36-C59A2A3C8ED5.goodhumans%40scom.ca.


Re: User not Authenticating.

2023-04-24 Thread Lawal Tobiloba Samuel
code here:

def loginPage(request):
if request.method == "POST":
username = request.POST.get("username")
password = request.POST.get("password")
userLogin = authenticate(username=username, password=password)
if userLogin is not None:
login(request, userLogin)
return redirect("home")
else:
messages.info(request, "Username or Password incorrect.")
context = {"title": "User Login"}
return render(request, "account/login.html", context)














*Lawal Tobiloba Samuel*

*Computer Engineer*

*Front-end Developer*

*IT Support Specialist*



*Mobile: *+23480-6386-0181

  +23481-2027-2000

*Email:*oluwasheun9...@gmail.com

  lawaltobi...@yahoo.com








On Mon, Apr 24, 2023 at 5:26 PM Lawal Tobiloba Samuel <
oluwasheun9...@gmail.com> wrote:

> Hi devs,
> I wrote code for user authentication and login but I am not quite sure of
> it. On the web interface it keeps displaying username or password incorrect
> (message set in views.py).
>
>

-- 
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/CAAscozW9b%2B-RBrnBtNJMMdz5w%3DOStYRuW1mf35kaTBBva%2Br6Lg%40mail.gmail.com.


Machine learning mailing group

2023-04-24 Thread sunday honesty
Hi Django Devs,

Please can anyone recommend me a Data Science mailing group like this one?

Sincerely,

-- 
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/CALcuGNuF1Vb9W8Q-3hLSvy%3Dnicb73r1HgqGmOCN9droUORPEMQ%40mail.gmail.com.


Re: User not Authenticating.

2023-04-24 Thread Opeoluwa Fatunmbi
Let me see your login.html






On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel <
oluwasheun9...@gmail.com> wrote:

> code here:
>
> def loginPage(request):
> if request.method == "POST":
> username = request.POST.get("username")
> password = request.POST.get("password")
> userLogin = authenticate(username=username, password=password)
> if userLogin is not None:
> login(request, userLogin)
> return redirect("home")
> else:
> messages.info(request, "Username or Password incorrect.")
> context = {"title": "User Login"}
> return render(request, "account/login.html", context)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Lawal Tobiloba Samuel*
>
> *Computer Engineer*
>
> *Front-end Developer*
>
> *IT Support Specialist*
>
>
>
> *Mobile: *+23480-6386-0181
>
>   +23481-2027-2000
>
> *Email:*oluwasheun9...@gmail.com
>
>   lawaltobi...@yahoo.com
>
>
>
>
>
>
>
>
> On Mon, Apr 24, 2023 at 5:26 PM Lawal Tobiloba Samuel <
> oluwasheun9...@gmail.com> wrote:
>
>> Hi devs,
>> I wrote code for user authentication and login but I am not quite sure of
>> it. On the web interface it keeps displaying username or password incorrect
>> (message set in views.py).
>>
>> --
> 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/CAAscozW9b%2B-RBrnBtNJMMdz5w%3DOStYRuW1mf35kaTBBva%2Br6Lg%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/CAKVBneJRaAxWhK2D7cqfS5i7YBOBWH50axCMZj6-c-NTDtMSbA%40mail.gmail.com.


Re: User not Authenticating.

2023-04-24 Thread oluwafemi damilola
userLogin = authenticate(request, username=username, password=password)

On Mon, 24 Apr 2023 at 17:29, Opeoluwa Fatunmbi 
wrote:

>
> Let me see your login.html
>
>
>
>
>
>
> On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel <
> oluwasheun9...@gmail.com> wrote:
>
>> code here:
>>
>> def loginPage(request):
>> if request.method == "POST":
>> username = request.POST.get("username")
>> password = request.POST.get("password")
>> userLogin = authenticate(username=username, password=password)
>> if userLogin is not None:
>> login(request, userLogin)
>> return redirect("home")
>> else:
>> messages.info(request, "Username or Password incorrect.")
>> context = {"title": "User Login"}
>> return render(request, "account/login.html", context)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Lawal Tobiloba Samuel*
>>
>> *Computer Engineer*
>>
>> *Front-end Developer*
>>
>> *IT Support Specialist*
>>
>>
>>
>> *Mobile: *+23480-6386-0181
>>
>>   +23481-2027-2000
>>
>> *Email:*oluwasheun9...@gmail.com
>>
>>   lawaltobi...@yahoo.com
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Apr 24, 2023 at 5:26 PM Lawal Tobiloba Samuel <
>> oluwasheun9...@gmail.com> wrote:
>>
>>> Hi devs,
>>> I wrote code for user authentication and login but I am not quite sure
>>> of it. On the web interface it keeps displaying username or password
>>> incorrect (message set in views.py).
>>>
>>> --
>> 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/CAAscozW9b%2B-RBrnBtNJMMdz5w%3DOStYRuW1mf35kaTBBva%2Br6Lg%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/CAKVBneJRaAxWhK2D7cqfS5i7YBOBWH50axCMZj6-c-NTDtMSbA%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/CALo4fb98Vt6MXCqiwkW0x%3DR9f90sw5dUmAQq50uQSgtpN0EwDw%40mail.gmail.com.


Re: User not Authenticating.

2023-04-24 Thread Ruby Shell
`authenticate` requires a positional argument (request)
try  userLogin = authenticate(request, username=username, password=password)

On Monday, April 24, 2023 at 5:51:45 PM UTC+1 oluwafemi damilola wrote:

> userLogin = authenticate(request, username=username, password=password)
>
> On Mon, 24 Apr 2023 at 17:29, Opeoluwa Fatunmbi  
> wrote:
>
>>
>> Let me see your login.html
>>
>>
>>
>>
>>
>>
>> On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel  
>> wrote:
>>
>>> code here:
>>>
>>> def loginPage(request):
>>> if request.method == "POST":
>>> username = request.POST.get("username")
>>> password = request.POST.get("password")
>>> userLogin = authenticate(username=username, password=password)
>>> if userLogin is not None:
>>> login(request, userLogin)
>>> return redirect("home")
>>> else:
>>> messages.info(request, "Username or Password incorrect.")
>>> context = {"title": "User Login"}
>>> return render(request, "account/login.html", context)
>>>
>>>
>>>
>>>
>>>  
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>> *Lawal Tobiloba Samuel*
>>>
>>> *Computer Engineer*
>>>
>>> *Front-end Developer*
>>>
>>> *IT Support Specialist*
>>>
>>>  
>>>
>>> *Mobile: *+23480-6386-0181
>>>
>>>   +23481-2027-2000
>>>
>>> *Email:*oluwash...@gmail.com
>>>
>>>   lawalt...@yahoo.com
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>
>>> On Mon, Apr 24, 2023 at 5:26 PM Lawal Tobiloba Samuel <
>>> oluwash...@gmail.com> wrote:
>>>
 Hi devs, 
 I wrote code for user authentication and login but I am not quite sure 
 of it. On the web interface it keeps displaying username or password 
 incorrect (message set in views.py).

 -- 
>>> 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/CAAscozW9b%2B-RBrnBtNJMMdz5w%3DOStYRuW1mf35kaTBBva%2Br6Lg%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/CAKVBneJRaAxWhK2D7cqfS5i7YBOBWH50axCMZj6-c-NTDtMSbA%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/2535b83b-785f-4ceb-9108-60b183771dfen%40googlegroups.com.


Re: Unpaid Internship

2023-04-24 Thread Ayomide Francis- Akinlolu
Can I also direct message you? I'm very interested in an internship. I'm 
from Nigeria.

On Monday, April 24, 2023 at 8:58:05 AM UTC-7 Paul Kudla ( SCOM ) wrote:

> Pls contact me directly at pa...@scom.ca please have an idea
>
>
> thanks - paul
>
> Paul Kudla
>
>
> SCOM.CA Internet Services Inc.
> 004-1009 Byron Street South
> Whitby, Ontario - Canada
> L1N 4S3
>
> Toronto 416.642.7266
> Main 1.866.411.7266
> Fax 1.888.892.7266
>
>
> On Apr 24, 2023 at 10:26:17 EDT, John Diginee  
> wrote:
>
> Dear Sir/Ma'am,
>
> I hope this message finds you well. I am a full-stack software engineering 
> student at Holberton School, a Silicon Valley-based software engineering 
> institution. I am reaching out to express my interest in an unpaid backend 
> intern or junior role at your esteemed company.
>
> My primary goal is to learn from your inspiring and experienced developers 
> and gain practical, real-world experience. I am not particularly concerned 
> about financial compensation at this time.
>
> I understand that my request may seem unconventional, but I would be 
> grateful for any opportunity to work with your company. I am a hardworking, 
> persistent, determined, resilient, and fast-learning individual, and I am 
> confident that I can contribute positively to your team.
>
> Here's my LinkedIn and GitHub profile for your review:
> https://www.linkedin.com/in/johndiginee/
> https://github.com/johndiginee
>
>  Thank you for your precious time and consideration. I look forward to 
> hearing from 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/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com
>  
> 
> .
>
> -- 
> This message has been scanned for viruses and
> dangerous content by*MailScanner* , and is
> believed to be clean.
>

-- 
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/615f1b56-5443-4645-a977-779368694f32n%40googlegroups.com.


Re: User not Authenticating.

2023-04-24 Thread Lawal Tobiloba Samuel
I later got what I did wrong...

I wanted to retrieve the user information from the form
(request.POST.get("username")), but in d form there was no input tag that
is named username nor password...

So when the view function request those informations, it was returning an
empty string that was why it did not authenticate.

I just had to add the name parameter in the input tag of login.html

On Mon, Apr 24, 2023, 5:29 PM Opeoluwa Fatunmbi 
wrote:

>
> Let me see your login.html
>
>
>
>
>
>
> On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel <
> oluwasheun9...@gmail.com> wrote:
>
>> code here:
>>
>> def loginPage(request):
>> if request.method == "POST":
>> username = request.POST.get("username")
>> password = request.POST.get("password")
>> userLogin = authenticate(username=username, password=password)
>> if userLogin is not None:
>> login(request, userLogin)
>> return redirect("home")
>> else:
>> messages.info(request, "Username or Password incorrect.")
>> context = {"title": "User Login"}
>> return render(request, "account/login.html", context)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Lawal Tobiloba Samuel*
>>
>> *Computer Engineer*
>>
>> *Front-end Developer*
>>
>> *IT Support Specialist*
>>
>>
>>
>> *Mobile: *+23480-6386-0181
>>
>>   +23481-2027-2000
>>
>> *Email:*oluwasheun9...@gmail.com
>>
>>   lawaltobi...@yahoo.com
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Apr 24, 2023 at 5:26 PM Lawal Tobiloba Samuel <
>> oluwasheun9...@gmail.com> wrote:
>>
>>> Hi devs,
>>> I wrote code for user authentication and login but I am not quite sure
>>> of it. On the web interface it keeps displaying username or password
>>> incorrect (message set in views.py).
>>>
>>> --
>> 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/CAAscozW9b%2B-RBrnBtNJMMdz5w%3DOStYRuW1mf35kaTBBva%2Br6Lg%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/CAKVBneJRaAxWhK2D7cqfS5i7YBOBWH50axCMZj6-c-NTDtMSbA%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/CAAscozXVLF_m_%3DZKP62dUZFyVEv-bi0UMtiPFx6%2BF6LWZ5TgmA%40mail.gmail.com.


Runtime decision on language support

2023-04-24 Thread Shawn Thomas
Hi,

I've searched online for an answer to this but couldn't find anything. I 
have a multi-tenant Django app that supports multiple languages, both in 
code (django.po/django.mo) and for customer data. However, not every 
customer wants to translate their data into every language we support 
(think customers in different countries where some languages are less 
relevant as in others).

What I'm hoping to do is offer per-tenant config for which subset of our 
supported languages the app will offer.  I haven't yet seen how I can 
override LocaleMiddleware to suppress translation to a language a customer 
has chosen to not offer (but our django.po/django.mo supports it).

The end goal is to prevent an inconsistent experience where app UI is 
returned in a supported language but all the customer data shown is in 
English, for example.

Thank you for any pointers!

Best regards,
Shawn



-- 
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/a6caafe5-2c62-4161-88a4-e7af52d74641n%40googlegroups.com.


Re: Runtime decision on language support

2023-04-24 Thread ASAMOAH EMMANUEL
>
>
> To achieve this, you can create a custom middleware that inherits from
> `LocaleMiddleware`. In your custom middleware, you can override the
> `process_request` method to check for the tenant's allowed languages and
> set the request's language accordingly.
>
> 1. Create a new model field for the Tenant model that stores the allowed
> languages as a list. This can be a JSON field or a ManyToMany field linked
> to a Language model.
>
> # models.py
> from django.contrib.postgres.fields import ArrayField
> from django.db import models
>
> class Tenant(models.Model):
> ...
> allowed_languages = ArrayField(models.CharField(max_length=10))
>
>
> 2. Create a custom middleware that inherits from
> `django.middleware.locale.LocaleMiddleware`:
> # custom_middleware.py
> from django.middleware.locale import LocaleMiddleware
> from django.utils import translation
>
> class CustomLocaleMiddleware(LocaleMiddleware):
> def process_request(self, request):
> # Get the current tenant
> current_tenant = request.tenant
>
> # Get the user's preferred language from the request
> language = translation.get_language_from_request(request,
> check_path=True)
>
> # Check if the preferred language is in the tenant's
> allowed_languages list
> if language not in current_tenant.allowed_languages:
> # If not, set the default language for the tenant
> language = current_tenant.default_language
>
> # Activate the chosen language
> translation.activate(language)
> request.LANGUAGE_CODE = translation.get_language()
> 3. Replace `LocaleMiddleware` with your custom middleware in your
> `MIDDLEWARE` settings:
>
> # settings.py
> MIDDLEWARE = [
> ...
> # 'django.middleware.locale.LocaleMiddleware',
> 'your_app.custom_middleware.CustomLocaleMiddleware'.
> Now, when a user requests a page, the custom middleware checks if the
> requested language is in the tenant's `allowed_languages` list. If it is
> not, the tenant's default language will be used. This ensures that the UI
> and the data are shown in a consistent language.
>

-- 
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/CABFHQYzdc29n%2BBA3DfVo7HSh3%2B1XPQCSM%3DsXrwHPTVzVw%2B8-sA%40mail.gmail.com.