Hi Anh, yes, everything works fine, the only problem is once I switched from sqlite to mysql,
I am able to access the admin backend and create a post... I am able to view the list of posts created, however when I click a given post, with SQLite I can navigate to a page showing the post details as expected. However, switching to mysql breaks the redirecting to post details. I get No Post matches the given query. I am not sure why this happens. I thought the Django ORM means that the code should work regardless of the database used. So I am confused why this happens. best Pedram On Wednesday, 13 March 2019 15:47:54 UTC, Anh Nguyen wrote: > > Could you insert a post on admin panel ? > > On Wed, Mar 13, 2019 at 10:38 PM Pedram Badakhchani <pedramba...@gmail.com > <javascript:>> wrote: > >> bump >> >> On Wednesday, 6 March 2019 10:44:56 UTC, Pedram Badakhchani wrote: >>> >>> specifically in the get_absolute_url method. >>>> >>> >>> I don't understand why this works fine with sqlite but breaks in mysql. >>> >>> thanks for any help. >>> >> -- >> 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...@googlegroups.com <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4db98bc9-72f6-4914-8d48-7ae60308a14e%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/4db98bc9-72f6-4914-8d48-7ae60308a14e%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3be89d40-170d-4c7f-9d5b-c7417543a540%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.