Re: capture client side location in Django

2020-09-25 Thread Salima Begum
Hi all, I tried use https://docs.djangoproject.com/en/3.1/ref/contrib/gis/geoip2/ and This particular package requires GeoLite2-Country.mmdb.gz GeoLite2-City.mmdb.gz These databases are not free. We are looking for an open source API or package for our web application. I appreciate if someone

Re: Storing secret keys in Django

2020-09-25 Thread Theresa Taye
Thank you Kasper I appreciate this On Sep 25, 2020 22:47, "Kasper Laudrup" wrote: > Hi Theresa, > > On 25/09/2020 23.00, Theresa Taye wrote: > >> Hello guys, >> >> Please can anyone help with the best way to store/hide secret key in >> django and if possible share a link to a straight forward

Re: Storing secret keys in Django

2020-09-25 Thread Kasper Laudrup
Hi Theresa, On 25/09/2020 23.00, Theresa Taye wrote: Hello guys, Please can anyone help with the best way to store/hide secret key in django and if possible share a link to a straight forward YouTube tutorial. There's rarely a "best way", since use cases differ and people tend to have

Re: Django shared-cache for in-memory SQLite3 is not working

2020-09-25 Thread Krishna Chaitanya
On Sat, Sep 26, 2020 at 1:20 AM Krishna Chaitanya wrote: > > Hi, > > I am using Django 1.11 (default on 18.04). But I am still seeing > https://code.djangoproject.com/ticket/12118 which is fixed in 1.8. > > models.save() in a thread is not being committed and not reflected in the > main thread. I

Re: Recruitment

2020-09-25 Thread Abimbola Felix
Am interested On Wed, Sep 23, 2020, 3:43 PM Anh Nguyen wrote: > I’m, interested! > > On Sep 23, 2020, at 14:23, Harish Thiyagharajan < > harishthiyagh...@gmail.com> wrote: > > I want a interested django user , DM mail for more details , all the > details including payment can be discussed

Storing secret keys in Django

2020-09-25 Thread Theresa Taye
Hello guys, Please can anyone help with the best way to store/hide secret key in django and if possible share a link to a straight forward YouTube tutorial. Thanks in anticipation -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django admin page redirecting to some another page

2020-09-25 Thread coolguy
Please check if you have defined/changed LOGIN_URL settings in settings.py On Friday, September 25, 2020 at 2:51:23 PM UTC-4 deepra...@gmail.com wrote: > I go for super user login then it redirects to template which i made not > going to django admin login and django admin page, > > please

Re: Django admin page redirecting to some another page

2020-09-25 Thread coolguy
Did you change LOGIN_REDIRECT_URL settings in settings.py? On Friday, September 25, 2020 at 2:51:23 PM UTC-4 deepra...@gmail.com wrote: > I go for super user login then it redirects to template which i made not > going to django admin login and django admin page, > > please suggest me any

Re: Setting up models and postgres in django 3.1

2020-09-25 Thread Patrick Carra
Figured it out 3.1 is more strict about how it creates tables in postgres. The workaround I used was to put the tables into the various appname/models.py and then import them as needed when I need them. On Friday, September 25, 2020 at 12:38:19 PM UTC-5 Patrick Carra wrote: > So I have

Django admin page redirecting to some another page

2020-09-25 Thread Deepraj Devikar
I go for super user login then it redirects to template which i made not going to django admin login and django admin page, please suggest me any solution -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Setting up models and postgres in django 3.1

2020-09-25 Thread Patrick Carra
So I have worked in django 2.2 where I have multiple apps that I use the same models.py file in for all of them (same meaning I make sure each one is exactly the same as the others not one single models.py). When I do migrations I have no problem with anything. When I started using django

Re: How to resize image when uploading to the cloudinary?

2020-09-25 Thread RANGA BHARATH JINKA
Hi, Check this. https://cloudinary.com/documentation/django_image_manipulation On Fri, Sep 25, 2020 at 8:49 PM abhay santra wrote: > > Hi, > I would like to know how to resize any image when uploading to the > cloudinary in django? > > -- > You received this message because you are

Re: How to resize image when uploading to the cloudinary?

2020-09-25 Thread Kasper Laudrup
Hi Abbay, On 25/09/2020 16.21, abhay santra wrote: Hi, I would like to know how to resize any image when uploading to the cloudinary in django? You use Pillow: https://pillow.readthedocs.io/en/stable/ It's hard for anyone to give you a better answer until you try to write a better

How to resize image when uploading to the cloudinary?

2020-09-25 Thread abhay santra
Hi, I would like to know how to resize any image when uploading to the cloudinary in django? -- 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

Re: Recruitment

2020-09-25 Thread Let's Code
Hi, I'm interested! On Wed, Sep 23, 2020, 8:10 PM Harish Thiyagharajan < harishthiyagh...@gmail.com> wrote: > I want a interested django user , DM mail for more details , all the > details including payment can be discussed ...looking for for you guys . > > -- > You received this message because

Double query to retrieve a Paginator's page

2020-09-25 Thread hldev
Paginator.page() when called for the first time will trigger the evaluation of the cached property "count", which performs a COUNT query on the database. It will generally happen every time, since a new Paginator

Re: Stuck with Calculated feild

2020-09-25 Thread Frederic Salvetat
Hi Eankomah, You have several solution depending upon your need: > Le mercredi 23 septembre 2020 07:24:05 UTC+2, eankomah a écrit : > Hi all am stuck at getting total_price Calculated in my model > > class inventory(models.Model): > def __str__(self): > return self.name >

Re: Stuck with Calculated feild

2020-09-25 Thread Frederic Salvetat
Hi Eankomah, You have several solutions depending upon your need: *>Le mercredi 23 septembre 2020 07:24:05 UTC+2, eankomah a écrit :* *>Hi all am stuck at getting total_price Calculated in my model* *>* *>class inventory(models.Model):* *>def __str__(self):* *>return self.name* *>

Backend exception after upgrade.

2020-09-25 Thread Kirill Maksimov
Hello guys. I'm using Python3.8 and Django2.2. After upgrade to django 2.2, I'm getting weird exception which happens only on ecs sever: *AttributeError partially initialized module 'django_redis.cache' has no attribute 'RedisCache' (most likely due to a circular import)* Also had similar

Regarding OTP based login- Django

2020-09-25 Thread Rahul Gour
Hello, TIA. I am new in django, can anyone help me for OTP based login in my app. I am working on a ecommerce app and want to login otp based login and dont know or getting much on google that how to integrate phone number with django user model or want to use custom user model. Regards,

Re: How to change http:127.0.0.1:8000/sitemap.xml to https://domain.com/sitemap.xml in production?

2020-09-25 Thread Kasper Laudrup
Hi dum dum, On 25/09/2020 13.27, dum dum wrote: I can't access https://domain.com/sitemap.xml, because it gave me 404 error because the page not exist. But in local http:127.0.0.1:8000/sitemap.xml works. Any suggestions? Look in your log files for

How to change http:127.0.0.1:8000/sitemap.xml to https://domain.com/sitemap.xml in production?

2020-09-25 Thread dum dum
I can't access https://domain.com/sitemap.xml, because it gave me 404 error because the page not exist. But in local http:127.0.0.1:8000/sitemap.xml works. Any suggestions? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-25 Thread dum dum
I don't understand this. In local, when I access 127.0.0.1:8000/sitemap.xml. I can see my xml file. But in production domain.com/sitemap.xml gave me this HTTP 500 Error. Site matching query does not exist. Anyone experienced this? Please help, thanks! -- You received this message because you

Re: job portal using django

2020-09-25 Thread Kunal Solanke
Anson developer ,not a big youtuber but ,he has been doing same project with react .You can just take an idea or if you want to make your project little bit intersting ,do it with react and django. On Fri, Sep 25, 2020, 09:14 Lane Campbell wrote: > There are a lot of tutorials for creating

Re: capture client side location in Django

2020-09-25 Thread Kasper Laudrup
On 25/09/2020 06.10, Stats Student wrote: You can read the client's IP address with - request.META['REMOTE_ADDR'] -- ( not sure how it handles proxies, etc ) Proxies should set the X-Forwarded-For header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For the value