I see 2 ways to handle.
1: would you want to try postgresql ?, if this get the same trouble. We got
the big problems.
2: try to create a blank project start from django-admin ... it’s not
greater then 20mins.



On Thu, Mar 14, 2019 at 5:26 PM Ayser shuhaib <embedded.mana...@gmail.com>
wrote:

> In your settings, you put the port is 3306 but in the url it’s 8000.
> I think the problem is there.
>
> On Thu, 14 Mar 2019 at 12:07, Pedram Badakhchani <
> pedrambadakhch...@gmail.com> wrote:
>
>> 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> 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.
>>>> To post to this group, send email to django...@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/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
>> <https://groups.google.com/d/msgid/django-users/3be89d40-170d-4c7f-9d5b-c7417543a540%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/CAE0AZGKY21FDNCXDWq2OLKz8hyr8i0Gm1oSZcBV0aYRBwn2AJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE0AZGKY21FDNCXDWq2OLKz8hyr8i0Gm1oSZcBV0aYRBwn2AJQ%40mail.gmail.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/CAKaoNbQ9-%3D02ASscLkVZ6DSQKvrWd2zw37uyn3B82JqWx3wt_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to