Posts

Showing posts from February 13, 2019

Django not parsing query string if the question mark is escaped

Image
0 Shouldn't Django be able to parse an escaped query string like so: localhost:8000/sampleurl/myurl%3Fkey=value like it was this: localhost:8000/sampleurl/myrurl?key=value Instead I'm getting a 404. This is the URL: url(r'^sampleurl/(?P<slug>[-w]+)/$', ... I was able to partially solve it by setting the url like so: url(r'^sampleurl(?P<slug>[-w]+)(.*?)$', ... But doesn't work 100% and it seems unnecessary. django query-string django-urls share | improve this question asked Nov 14 '18 at 22:14 panosl panosl 584 1 6 14 2 no, the purpose of escaping a question mark is so that you don't use it as the query string delimiter. – bryan60 Nov 14 '18 at 22:17 @bryan60 Some clients request it like that (ie, imagine an app requesting the url like the), is there a setting on Django (middleware) or apache, or will I need to solve that at a view level? – panosl Nov 14 '18...

Southeast Asia

Image
Southeast Asia From Wikipedia, the free encyclopedia Jump to navigation Jump to search Subregion of Asia Southeast Asia Area 4,545,792 km 2 (1,755,140 sq mi) Population 641,775,797 (3rd) [1] Population density 135.6/km 2 (351/sq mi) GDP (nominal) $2.557 trillion (exchange rate) [2] GDP (PPP) $7.6 trillion [3] GDP per capita $4,018 (exchange rate) [2] HDI 0.684 Ethnic groups Austroasiatic, Austronesian, Melanesian, Negrito, Papuan, Sino-Tibetan and Tai peoples Religions Islam, Buddhism, Christianity, Hinduism, Vietnamese folk, Tai folk, Confucianism, Taoism and Animism Demonym Southeast Asian Countries 11 states   Brunei   Cambodia   Indonesia   Laos   Malaysia   Myanmar   Philippines   Singapore   Thailand   Timor Leste   Vietnam Dependencies   Christmas Island   Cocos (Keeling) Islands Languages Official lan...