Re: Migrated code is not working in Django

2020-02-07 Thread DC
Hi ram, What’s is not working ? Like static files? Could you share what error you are facing? Regards, d On Sat, 8 Feb 2020 at 1:25 PM, Ram wrote: > Hi, > > When we have new code drop from development, we copy the files manually to > the hosting server running in Digital Ocean droplet. Then we

Migrated code is not working in Django

2020-02-07 Thread Ram
Hi, When we have new code drop from development, we copy the files manually to the hosting server running in Digital Ocean droplet. Then we run these two commands 1. makemigrations 2. migrate in the python virtual environment. Both the commands completed find but, we are not able to use the new

Re: Python Django Training

2020-02-07 Thread RaviKumar Venkatachalam
I am also interested Watsapp +65-87257879 Thanks and Regards Ravikumar Venkatachalam Ph:65-87257879 Sent from my iPhone On 8 Feb 2020, at 6:50 AM, Destiny Junior wrote:  Am interested too WhatsApp 08102352911 On Sat, Feb 1, 2020, 2:42 PM Srikanth K mailto:srikopan...@gmail.com>> wrote: Hi

Re: Django Simple Query very slow at thousand data.

2020-02-07 Thread Aldian Fazrihady
Using the way you specify model in your view, the resulting query won't be efficient. On each loop in your template, the foreign keys will be automatically queried, which is the cause of the slowness. You need to override the get_queryset method of your view and generate the ORM query there. In th

Re: Python Django Training

2020-02-07 Thread Destiny Junior
Am interested too WhatsApp 08102352911 On Sat, Feb 1, 2020, 2:42 PM Srikanth K wrote: > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends). Members > who require can contact me or share me there id

Re: Python Django Training

2020-02-07 Thread Oluwaseni Oguntonade
Yes, I suggest you add me via WhatsApp 09078150123 -- 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 discus

Re: Python Django Training

2020-02-07 Thread Oluwaseni Oguntonade
Hey also a new py. Dev please could we work together. My name is seni. -- 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.

django

2020-02-07 Thread mick
|as_crispy_field got passed an invalid or inexistent field -- 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 t

Re: Key Error :access_token While requesting access token using windows Outlook api token url

2020-02-07 Thread onlinejudge95
Firstly, do not ever share any of your personal information over a mailing list. You just exposed your token and auth_code to the public domain. Secondly, you need to provide more context, you said an error came up but did not provide any insight into the code you are executing. On Fri, Feb 7, 20

Re: error

2020-02-07 Thread Motaz Hejaze
Did you pass the product_id to the view ? On Fri, 7 Feb 2020, 8:28 pm Bhumika shrestha, wrote: > Reverse for 'cart_add' with arguments '('',)' not found. 1 pattern(s) tried: > ['cart/add/(?P[0-9]+)/$'] > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: error

2020-02-07 Thread Naveen Vadavalasa
Hi, You may have missed url Or you may have given incorrect URL in template. Thanks & Regards Naveen 7799550896 On Fri, 7 Feb, 2020, 11:58 PM Bhumika shrestha, wrote: > Reverse for 'cart_add' with arguments '('',)' not found. 1 pattern(s) tried: > ['cart/add/(?P[0-9]+)/$'] > > -- > You receive

Re: Django Simple Query very slow at thousand data.

2020-02-07 Thread Motaz Hejaze
1 - Sqlite is very slow when its compared to other sql databases like Mysql and Postgresql .. 2 - You need to use pagination , you are viewing using templates and not generating an excel or csv file to pass all this data in one shot 3 - pythonanywhere.com basic account comes with limited resource

error

2020-02-07 Thread Bhumika shrestha
Reverse for 'cart_add' with arguments '('',)' not found. 1 pattern(s) tried: ['cart/add/(?P[0-9]+)/$'] -- 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-

Re: Django query with few data(1,000-3,000) takes too long(1min) to load

2020-02-07 Thread Stephen J. Butler
You've got a lot of foreign key fields where the fetch is being deferred until template render time, and it being done individually for each row instead of in bulk. I think if you added this attribute to your ListView subclass you'd see better performance: queryset = Outgoing.objects.select_relate

Django query with few data(1,000-3,000) takes too long(1min) to load

2020-02-07 Thread Eric Kiser
I created an app with the following details: Hosting: PythonAnywhere Database: SQLite and MySQL Problem: When I load the data in a table it takes minutes to load it. My data hasn't even reached a million its just a few thousands. How I did it: models.py class Outgoing(models.Model): base_i

Django Simple Query very slow at thousand data.

2020-02-07 Thread Eric Kiser
Okay so I've used django on two of my projects with the following criteria: Hosted @: PythonAnywhere Database: MySQL and SQLite PROBLEM: At first with a few hundred data the query is okay, but when I am querying 2,000 of data it takes 3 minutes to load it on a simple table. This is not normal b

Re: not inserted registeration form.

2020-02-07 Thread Kasper Laudrup
Hi Scorpio, On 07/02/2020 08.05, Scorpio King wrote: Hey I'm learning django please guide me how I become perfect in this frame work where site to I learn ... thanks First learn how to use a mailing list/Google groups and do not send unrelated replies to existing threads: https://support.

Re: Python Django Training

2020-02-07 Thread Mehul Anshumali
I am also interested in python and django training please add me also . Thanks. On Sat, Feb 1, 2020, 7:12 PM Srikanth K wrote: > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends). Members > who re

Re: i WANT TO KNOW ABOUT API

2020-02-07 Thread Kasper Laudrup
Hi Scorpio: On 07/02/2020 05.09, Scorpio King wrote: hi all plz any one tell me berifely what is api its purpose its use why api. https://en.wikipedia.org/wiki/Application_programming_interface -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-02-07 Thread Tom Moore
Thanks everyone for responding to this question. Nice to know (in a way) that I'm not overthinking it.. although now I'm worried about all the different ways a key could be compromised. Your suggestions for separating out a .env file and using gitignore is really helpful. Tom On Thursday, Jan

Re: What's a recommended/common approach to staging and production apps in Heroku, using Docker containers?

2020-02-07 Thread Tom Moore
Hi Alvaro, Thanks very much for the suggestion, nice to understand how two containers can be set up to interact with each other. Tom On Thursday, January 30, 2020 at 1:10:02 PM UTC, Álvaro Durán wrote: > > Hi Tom, > I had a similar problem a while ago using React and Django as separate > conta

Key Error :access_token While requesting access token using windows Outlook api token url

2020-02-07 Thread Aakash Verma
Below is the Traceback [07/Feb/2020 13:15:44] "GET /tutorial/gettoken?code=M75b5bb08-f43a-3749-bcd6-bdc1595306d9 HTTP/1.1" 301 0 Internal Server Error: /tutorial/gettoken/ Traceback (most recent call last): File "C:\Users\lenovo\Desktop\myapi\v\lib\site-packages\django\core\handlers\exception

Re: Django on production

2020-02-07 Thread Rishabh Gupta
i have installed django and need to made one app there is defined path but it gives error and also not print data Thanks Rishabh On Fri, Feb 7, 2020 at 6:16 PM Perceval Maturure wrote: > > Thank you very much. > > On Fri, 07 Feb 2020 at 14:44, Ira Abbott wrote: >> >> Let me have a look… >> >> S

Re: Dynamically retrieve data from table

2020-02-07 Thread Mariki Edward
You should have user id in your entity model as a primary key and then the user id as a foreign key to invoice model, so that when the user is logged in you just get his/ her id from the entity model and use this id to retrieve the invoices that belong to the logged in user from invoice model. Th

i WANT TO KNOW ABOUT API

2020-02-07 Thread Scorpio King
hi all plz any one tell me berifely what is api its purpose its use why api. -- 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: not inserted registeration form.

2020-02-07 Thread Scorpio King
Hey I'm learning django please guide me how I become perfect in this frame work where site to I learn ... thanks On Fri, Feb 7, 2020, 12:04 PM nrupesh08 wrote: > hi, > why not inserted registration. their is no error shows. plese tell how to > see any error? once check my screeshots > > -- > You

Re: Django on production

2020-02-07 Thread Perceval Maturure
Thank you very much. On Fri, 07 Feb 2020 at 14:44, Ira Abbott wrote: > Let me have a look… > > Sent from my Apple Watch > > > On Feb 7, 2020, at 12:37 AM, Perceval Maturure > wrote: > > > > Dear Django Masters > > > > I have deployed my project on pythonanywhere with Django on python 3.7I > hav

Re: Django on production

2020-02-07 Thread Ira Abbott
Let me have a look… Sent from my Apple Watch > On Feb 7, 2020, at 12:37 AM, Perceval Maturure wrote: > > Dear Django Masters > > I have deployed my project on pythonanywhere with Django on python 3.7I have > one app with two templates , the other is displaying data whilst the other > isn’t.

Re: micro payments

2020-02-07 Thread Motaz Hejaze
Maybe using patreon link ? On Fri, 7 Feb 2020, 9:18 am Evgeni Petrov, wrote: > I was thinking about sms payments > > On Thu, 6 Feb 2020 at 20:40, Jody Fitzpatrick < > jody.lee.fitzpatr...@gmail.com> wrote: > >> PayPal, talk to them about micropayments. It is by far less expensive >> than the tra