Re: DjangoProject

2020-08-12 Thread S D
Hi Desh, Welcome to Django :) Like Adam said, you should unsubscribe from the django-developers mailing list for now. That list is for people who are actually working on the Django framework itself. The django-users mailing list is the one where people who are learning to use Django communicate.

Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread S D
Hi Balaji, You can convert your web app into a PWA to gain maximum benefit. Just look it up. Data shows that PWAs are the way to go. Kind regards, - SD On Tue, Jan 7, 2020, 19:47 Balaji Shetty wrote: > Hi > > Currently i deployed application on pythonanywhere. It is online office > file man

URL pattern for URL with query string

2020-01-13 Thread S D
Hey guys. SOS please. How do I write a URL pattern for a URL like this? weather/?current_location=-33.927407,18.415747&booking_location=-32.927407,19.415747 When I do reverse(‘weather’, kwargs={‘current_location’: some_value, 'booking_ location’: another_value}) I am getting a NoReverseMatch exce

Re: URL pattern for URL with query string

2020-01-13 Thread S D
Thanks Jason. Kind regards, - SD On Mon, Jan 13, 2020, 16:28 Jason wrote: > The url resolver does not include GET query params in a URL, you need to > add them manually after the string. > > for example > > url = > f"{reverse('weather')}/?current_location={some_value}&booking_location={an

Getting the first item in a dict

2020-01-27 Thread S D
I have a dictionary which contains one item (“current_location”, which is a nested dict) and I would like to access that nested dict. However, I cannot use the key as the code will break if a different key is passed, e.g. “different_location”. How can I access the first item in a dictionary withou

Re: Getting the first item in a dict

2020-01-27 Thread S D
#x27;m sure that there are other ways. There is certainly at least a way to > play with the iterator protocol without using "for", but it may be harder > to read. You could put break at the end of the loop above to make it more > apparent that it only runs once. > > On Mo