styling tables in django

2019-08-31 Thread Kean
Hi, New to Django, appreciate the guidance, I'm looking to style template so both header and data records are note wrapped. please see current setup. Please can anyone help with the template code, appreciate, it's not quite django, but more bootstrap4 django. Best, K -- You received

Post request in foreign key details by providing id

2019-08-31 Thread Soumen Khatua
Hi Folks, At the time of post request I want to provide only ID and then I want to fetch the details related to that ID from another model and then I want to commit all the deatils inside my ForeignKey table,Please guys tell me How can I do that bu using django rest framewoek? *models.py*

Re: Reverse for 'modification' with no arguments not found issue

2019-08-31 Thread James Schneider
> > The line with a problem is that one > > return render(request, 'insertion/modification.html', locals()) > > > > And I really can't figure it out why, according the fact that "locals()" > contains my variable and even if I send directly my variable instead, I get > the same ! > There's

Re: Is it a good practice to store all static data dynamically in database rather?

2019-08-31 Thread Aldian Fazrihady
There are already servers that are very good at handling static files, such as nginx, apache, or amazon S3. Django will never be better at handling static files compared to those servers, as on production, Django will always be put behind those web servers. Putting static files on database, means