Report
Question
Django: Cookie set to expire in 30 seconds is actually expiring in 30 minutes? does hr = HttpResponse('ok') hr.set_cookie('user_id', user_id, max_age=30) while http://stackoverflow.com/a/25179642/433570 does request.session[user_id] = True And both says we are setting cookie. What’s the difference between the two? Can I ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 7 views

Report
Question
I know I can specify to store results of prefetch_related like this. my_objs = MyClass.objects.prefetch_related( Prefetch('relation', to_attr='relation_as_list') ) for my_obj in my_objs: l = my_obj.relation_as_list Is it the same thing as the following?...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 6 views

Report
Question
So, my app should dynamically create inlineformset with variable number of extra forms depending on kwargs and/or session cookie. Then, once submitted, I should be able to validate and save the data. At first, I tried to create ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 8 views

Report
Question
I have a model of restaurant and userprofile. Restaurant has all the restaurant information and userprofile has information related to user like username, all the restaurants that he/she has, address, order he/she has, restaurant he/she has favorited, and is_owner.But i ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 8 views

Report
Question
I have a web written in Django framework and created Rest Framework for the API. I am required to write an android application based on the Django framework (Android and Django newbie). However I do not know how to pass the ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
2 Answer 3 views

Report
Question
First, My environment show as below. - Ubuntu 14.04 - Python 2.7.6 - Django 1.8.14 - ibm_db 2.0.5 - ibm_db_django 1.0.9.2 While I’m walking through django 1.8 tutorial but using as400 db2 as database, project name and database schema name is DMS2016. There is ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 3 views

Report
Question
How to view tables in django? I want to query the module that i have and want it to be appearing in the form of a table like how is happens in sql. I am working on django shell. I have ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 7 views

Report
Question
I use django-pipeline to deal with css, javascript files in my Django projects. But I wonder how I could deal with image files using django-pipeline. There is no manual for image in docs. Should I use Django built-in {% load staticfiles%} for images? Then ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 3 views