Debug False

2020-12-14 Thread Ronak Mistry
When i set debug to false the server respond with internal server error 500 on local host. Also i had installed whitenoise, gunicorn an in allowed hosts i put "*" When i go to admin site it works perfectly fine... But when debug is set to true everything works perfectly fine.. Can anyone give me a

Re: Migration of database

2020-12-14 Thread Omkar Parab
Check out this video. 👇 https://youtu.be/6DI_7Zja8Zc On Tue, Dec 15, 2020, 12:09 PM Dhruvil Shah wrote: > I have already made my project in Django and used built-in database Sqlite > and now I want it in production on heroku so how can I switch all data from > Sqlite database to Postgresql datab

Migration of database

2020-12-14 Thread Dhruvil Shah
I have already made my project in Django and used built-in database Sqlite and now I want it in production on heroku so how can I switch all data from Sqlite database to Postgresql database? -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Python Django Training

2020-12-14 Thread Eugene TUYIZERE
add me please On Mon, 7 Dec 2020 at 10:10, narendra thapa wrote: > hello please add me also in training group? > > > On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam > wrote: > >> Hi, >> I also from Hyderabad and I'm also interested in the training. please >> tell me how to join? >> >> Regards, >>

Re: How to securely store passwords used in backend code

2020-12-14 Thread David Nugent
On 10 December 2020 at 01:18:16, Pankaj Jangid (pan...@codeisgreat.org) wrote: Fenrir Sivar writes: > I inherited a django app that calls private APIs in a view to fetch some > data. The credentials or api keys are currently hardcoded in the source, > making it difficult to share. > What is the

ForeignKey with different queryset from manager

2020-12-14 Thread Jimmy Gawain
This is with Django v2.2. We use tombstoning via a custom BaseModelManager to mark items as deleted in the database but keep them around for reference. class BaseModelManager(models.Manager): def __init__(self, *args, **kwargs): self.include_tombstoned = kwargs.pop('include_tombstone

Joining two unrelated tables via the ORM with m-to-m relationship?

2020-12-14 Thread Sam Clark
I have a design/approach question, I think it boils down to needing to join two tables on multiple fields, where the tables are not linked via a foreignkey. However I'm open to any suggestions on rethinking the overall approach to it. Here's what I'm trying to accomplish. I have a model with fie

Re: My replies are not reaching the list

2020-12-14 Thread Ari Davidow
The list is more likely set up not to send your own responses to you. In any event, this one message certainly reached the list. On Mon, Dec 14, 2020, 12:48 PM Pankaj Jangid wrote: > Last time I posted a reply and it did not reach the list. This message > is just to check if my posts are reachin

Re: Handle timeseries, how to model ?

2020-12-14 Thread Derek
Hi I am not sure about the links with Django, but we have found that TimescaleDB extension for Postgresql is a very powerful tool for managing and extracting analytics from timeseries data. Some further reading to see if this fits your use case: https://stackoverflow.com/questions/25212009/d

My replies are not reaching the list

2020-12-14 Thread Pankaj Jangid
Last time I posted a reply and it did not reach the list. This message is just to check if my posts are reaching here. Forgive me for the broadcast. But there is no way to contact the list owner/moderator. Regards -- You received this message because you are subscribed to the Google Groups "Dja

Re: FastCGI with recent Drjango?

2020-12-14 Thread esse garthey
Le 13 déc. 2020 17:09, "Tim Chase" a écrit : At one point in history long past, Django 1.8 supported FastCGI via flup https://docs.djangoproject.com/en/1.8/howto/deployment/fastcgi/ but it was slated to be removed in 1.9 and there seem to be no further docs I can disinter about running Django i

Re: FastCGI with recent Drjango?

2020-12-14 Thread esse garthey
Le 13 déc. 2020 17:09, "Tim Chase" a écrit : > At one point in history long past, Django 1.8 supported FastCGI via > flup > > https://docs.djangoproject.com/en/1.8/howto/deployment/fastcgi/ > > but it was slated to be removed in 1.9 and there seem to be no > further docs I can disinter about runn

Re: How can you do a for loop with a database?

2020-12-14 Thread Peter T
I did not realize it was a dictionary haha On Monday, December 14, 2020 at 9:53:40 AM UTC-5 Shahprogrammer wrote: > No it is a dictionary representation of your data > > On Monday, 14 December 2020 at 19:55:54 UTC+5:30 prth...@gmail.com wrote: > >> is (items) the model name? >> >> On Sunday, Dece

Re: How can you do a for loop with a database?

2020-12-14 Thread Shahprogrammer
No it is a dictionary representation of your data On Monday, 14 December 2020 at 19:55:54 UTC+5:30 prth...@gmail.com wrote: > is (items) the model name? > > On Sunday, December 13, 2020 at 8:12:30 AM UTC-5 andrea...@hypercode.se > wrote: > >> The context needs to be a dictionary. >> >> Something

Re: How can you do a for loop with a database?

2020-12-14 Thread Peter T
is (items) the model name? On Sunday, December 13, 2020 at 8:12:30 AM UTC-5 andrea...@hypercode.se wrote: > The context needs to be a dictionary. > > Something like this would work: > context = { > ‘items’: Model.objects.all() > } > > Then in the template: > {% for item in items %} > {{ it

Re: if not VALID_BUCKET.search(bucket) and not VALID_S3_ARN.search(bucket): TypeError: expected string or bytes-like object

2020-12-14 Thread Kasper Laudrup
On 14/12/2020 09.38, KUMBHAGIRI SIVAKRISHNA wrote: ile "/home/sivakrishna/Downloads/peeljobs-env/lib/python3.8/site-packages/botocore/handlers.py", line 200, in validate_bucket_name     if not VALID_BUCKET.search(bucket) and not VALID_S3_ARN.search(bucket): TypeError: expected string or bytes-

if not VALID_BUCKET.search(bucket) and not VALID_S3_ARN.search(bucket): TypeError: expected string or bytes-like object

2020-12-14 Thread KUMBHAGIRI SIVAKRISHNA
ile "/home/sivakrishna/Downloads/peeljobs-env/lib/python3.8/site-packages/botocore/handlers.py", line 200, in validate_bucket_name if not VALID_BUCKET.search(bucket) and not VALID_S3_ARN.search(bucket): TypeError: expected string or bytes-like object Please help me to solve this problem --