Re: How to get Latitude and Longitude of a user

2019-12-29 Thread Dominick Del Ponte
Don't know if it is ideal, but, assuming you have a form on the page you could use the geolocation API and put the values in hidden form fields to send to your DB. Dominick delponte.d...@gmail.com On Sat, Dec 28, 2019 at 6:02 A

Re: I am creating a project management app Each user has multiple projects and each project has a set of data When first logged in the user sees a list of all the projects only he created.i am able to

2019-12-15 Thread Dominick Del Ponte
I think you're looking for a detailView . You'll likely need to pass in your URL config to the view in order to filter the boqmodel by the foreignKey. Here's a video explaining detailViews.

Re: [Django] How to render a form 'n' number of times based on the dropdown selected integer in main Form

2019-12-15 Thread Dominick Del Ponte
If you don't want to use JS you'll need to have the first form POST in order to send the number of forms to render to the backend. Then you should be able to use formsets with the 'extra' attribute to render multiple identical

Re: passing an argument to ListView class and accessing using kwargs

2019-12-10 Thread Dominick Del Ponte
I think you need to add ** to kwargs. like: qs = Utilizationtable.objects.filter(pathname=**kwargs) alternatively, this may also work, def get_queryset(self): return self.model.objects.filter(pathname=self.kwargs['pathname']) Dominick delponte.d...@gmail.com On Wed, Dec 11, 2019 at 8

Re: Linking various HTML files in template

2019-12-05 Thread Dominick Del Ponte
If you can, for ease of development, I'd recommend picking a css framework for your application and using whatever navigation container it provides. There's a bunch of different frameworks but two would be: Zurb foundation Bootstrap

Re: How do I populate a table with data from a list file?

2019-12-05 Thread Dominick Del Ponte
I'm pretty new to django but, I think you'll need a view that fetches all of the rows from your model. This can be done with either a listView or in with something like model.objects.all() to return the context data from your view. Then in the template you could do: {% for item in data %} {{ i