cool :)
-- Cheers,
Naveen Arora
On Thursday, 27 February 2020 12:06:37 UTC+5:30, Roy Huang wrote:
On Thursday, 27 February 2020 12:06:37 UTC+5:30, Roy Huang wrote:
Hi Naveen,thank you once again for the helpafter days of struggling, finally i've got enlightened all of a sudden !
to put it in simple way,we have a sync mechanism, which sync local code to production, and we've forgot to exclude db.sqlite3 which accounts resides-_- ... what a bummerthanks Naveen
Naveen Arora於 2020年2月27日星期四 UTC+8下午1時57分28秒寫道:All you need to do is set AUTH_USER_MODEL = "Yourapp.yourmodelname" in your setttings.py, delete your entire database and run makemigrations and migrate again.Django sets the default user model at first migration only.Hope this helps, you can ask here for your queries.Cheers,Naveen Arora
On Wednesday, 26 February 2020 20:11:27 UTC+5:30, Roy Huang wrote:thanks Naveenwow, how did you even guess that !! yes I did have my own authentication model on top of the original oneI will put up more detail first thing tomorrow at work, so glad somebody can help me out (crying ~~~~~~)
Roy
Naveen Arora於 2020年2月26日星期三 UTC+8下午9時46分32秒寫道:Hi Roy,Share the exact problem with screenshots and code if possible. Did you set default authentication model of user to yours..?Cheers,Naveen Arora
On Wednesday, 26 February 2020 18:00:10 UTC+5:30, Roy Huang wrote:Hi all,any help will be appreciated, i've bee stuck on this for days, couldnt find answersok, here it is,1) logged in and retrieved data back to a page, all good (got sessionid and csrftoken)2) make a request on a view which has got @login_required, then got redirect to login (apparently sessionid got cleared )any thoughts ?thanksdonkey
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/79f743b7-ec75-4b60-9199-733609b98557%40googlegroups.com.
No comments:
Post a Comment