Using Django middleware with web and mobile app

2018-11-12 Thread lakshitha kumara
Hello Guys, I'm developing a mobile app and website with one Django backend. all web browser(mobile browser included) using session auth and mobile app using Rest API with OAuth 2 authentications. I would like to know the best way to handle Django middleware with web and mobile app. For examp

Re: How to use Django with Reactjs

2018-10-01 Thread lakshitha kumara
Hello, Mohammad Ansari, Yes, you can use Django and Reactjs together. you can use Django web pack loader. https://github.com/owais/django-webpack-loader On Tuesday, October 2, 2018 at 2:09:16 AM UTC+5:30, iammoham...@gmail.com wrote: > > Hi can we use Django with Reactjs without using api and

Re: New language adding error('Unknown language code si.')

2018-08-30 Thread lakshitha kumara
s On Thursday, August 9, 2018 at 9:01:58 PM UTC+5:30, Deniz Bazan wrote: > > Hi Kumara, did you find a solution for your question, because i have same > problem. > > Am Montag, 30. April 2018 14:04:01 UTC+2 schrieb lakshitha kumara: >> >> Hello Jason, >> >> *T

Re: New language adding error('Unknown language code si.')

2018-08-30 Thread lakshitha kumara
9, 2018 at 9:01:58 PM UTC+5:30, Deniz Bazan wrote: > > Hi Kumara, did you find a solution for your question, because i have same > problem. > > Am Montag, 30. April 2018 14:04:01 UTC+2 schrieb lakshitha kumara: >> >> Hello Jason, >> >> *Thanks you for your reply

Best way to make send email (email template with dynamic value)

2018-06-14 Thread lakshitha kumara
Hello Guys I would like to know best way to send email on django 2. email should have email template and dynamic value. EmailMultiAlternatives or send_mail And appreciate if good sample Thanks -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Authenticate with mobile number(duplicate mobile number)

2018-05-27 Thread lakshitha kumara
ssword login to the system. Thanks On Sunday, May 27, 2018 at 5:32:25 PM UTC+5:30, lakshitha kumara wrote: > > Hello guys > > I have some issue in user Authenticate System for example there are tow > country called X and Y this two country phone code is +9 and +10 (this is >

Authenticate with mobile number(duplicate mobile number)

2018-05-27 Thread lakshitha kumara
Hello guys I have some issue in user Authenticate System for example there are tow country called X and Y this two country phone code is +9 and +10 (this is only for example) . this two country have two people name called R and M. R person mobile is +9123456789 and M person mobile number is +10

Re: Username same as user id

2018-05-06 Thread lakshitha kumara
Hello Jeni Thank you for your reply. yes i dealing with my own custom authentication backend and now i desided to use username as random number Instead of user id if username not set. Thanks you On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote: > > Hello guys

Re: Username same as user id

2018-05-06 Thread lakshitha kumara
hi anthony Look at the facebook registration form. there are no username field first time user registration. but once user registered they can set username what they want. Thanks On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote: > > Hello guys > > Is

Re: Username same as user id

2018-05-06 Thread lakshitha kumara
, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote: > > Hello guys > > Is there way to assign username same as user id if username passing empty > value on registration form. is there way to do that. > > Thanks > -- You received this message because you are subscri

Username same as user id

2018-05-06 Thread lakshitha kumara
Hello guys Is there way to assign username same as user id if username passing empty value on registration form. is there way to do that. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: New language adding error('Unknown language code si.')

2018-04-30 Thread lakshitha kumara
Hello Jason, *Thanks you for your reply but **unfortunately** that example not working any more with django 2 and python 3 .* *Thanks* On Monday, April 30, 2018 at 7:47:45 AM UTC+5:30, lakshitha kumara wrote: > > Hello Guys > > I added new language to django . language called Sinh

Re: New language adding error('Unknown language code si.')

2018-04-30 Thread lakshitha kumara
roject\\DjangoWeb\\lib\\site-packages'] Server time: Mon, 30 Apr 2018 06:34:03 + On Monday, April 30, 2018 at 7:47:45 AM UTC+5:30, lakshitha kumara wrote: > > Hello Guys > > I added new language to django . language called Sinhala. My code is look > like this. > >

Re: subhani_Django subject

2018-04-29 Thread lakshitha kumara
Hello Subhani Please look at this Example on github, https://github.com/search?utf8=%E2%9C%93&q=django+example+&type= Thanks On Sunday, April 29, 2018 at 10:24:03 PM UTC+5:30, subhani shaik wrote: > > Hi friends... > > Can you please help me how to design web application using Django. can you

New language adding error('Unknown language code si.')

2018-04-29 Thread lakshitha kumara
Hello Guys I added new language to django . language called Sinhala. My code is look like this. On settings page LANGUAGE_CODE = 'en' LANGUAGES = [ ('si', _('Sinhala')), ('en', _('English')), ] TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True LOCALE_PATHS = ( os

Re: Current user ip address on form.py

2018-04-27 Thread lakshitha kumara
verflow.com/questions/4581789/how-do-i-get-user-ip-address-in-django > > Regards, > > Andréas > > 2018-04-27 14:28 GMT+02:00 lakshitha kumara >: > >> Hello Guys >> >> Is there way to get current user ip address on form.py >> >> Thanks

Current user ip address on form.py

2018-04-27 Thread lakshitha kumara
Hello Guys Is there way to get current user ip address on form.py 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+unsubscr...@googlegroups

Re: tutorial01 is not working

2018-04-24 Thread lakshitha kumara
Look like url is missing. try to add this line to urls.py from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'),] On Tuesday, April 24, 2018 at 5:04:33 PM UTC+5:30, aljom...@live.com wrote: > > hi. i'm new to django dev. so i'm following the tut

Login with email address, mobile number or username.

2018-04-19 Thread lakshitha kumara
Hello Guys , what is the best way to implement Login with email address, mobile number or username. all those field save as a different field in user table. user can login with any criteria that user provided to registered. its look like how instagram.com does it. i need know what is the best w