How to set mysql database in setting up django setup in eclipse ?

112 views
Skip to first unread message

Pubudu Goonetilleke

unread,
Apr 23, 2017, 2:56:27 PM4/23/17
to Django users
Hi,
I am very new to web programming and trying to learn ABCs of this whole new thing. I am following some online tutorials and facing some few things that I am trying to understand.
first, when I create dJango (1.11) project in eclipse (Neon 3) in pyDev (latest), I set data base information as follows : 



new my issue is that when I open the settings.py it does not show the setting as I expect.
it is like follows :



what I expect as per the tutorials is as follows : (I manually typed it)



I know I could type this into the setting.py, but trying to understand why does it not create that automatically during setup since that information is already entered in the dialog.

Thank you for the help in advance.


Thanks,

Pubudu





Vijay Khemlani

unread,
Apr 23, 2017, 8:38:39 PM4/23/17
to django...@googlegroups.com
I don't use Eclipse for development, but your screenshot says "Django
version 1.1 or earlier" which is awfully old, we are at 1.11, as in
there was a versions 1.2 1.3 1.4 1.5 .... 1.11.

settings file has changed a lot since that time.

On 4/23/17, Pubudu Goonetilleke <pubu...@gmail.com> wrote:
> Hi,
> I am very new to web programming and trying to learn ABCs of this whole new
>
> thing. I am following some online tutorials and facing some few things that
>
> I am trying to understand.
> first, when I create dJango (1.11) project in eclipse (Neon 3) in pyDev
> (latest), I set data base information as follows :
>
> <https://lh3.googleusercontent.com/-pi5AEaqc8CM/WPzmCoCAAxI/AAAAAAAA29g/C02KJL6-6v4PMIT0spFs0b_FPdkNX9E2wCLcB/s1600/dJango%2Bproject%2B-%2Bdatabase.png>
>
>
> new my issue is that when I open the *settings.py *it does not show the
> setting as I expect.
> it is like follows :
>
> <https://lh3.googleusercontent.com/-ldCtNzqUTO8/WPzmchFcakI/AAAAAAAA29k/TqvgbtnDUGMAiiPwgWdzW0-1C9Crh9ucgCLcB/s1600/DATABASES%2B-%2Bcode.png>
>
>
>
> what I expect as per the tutorials is as follows : (I manually typed it)
>
>
> <https://lh3.googleusercontent.com/-xU7jLtJ-2sI/WPzmlYW9oOI/AAAAAAAA29o/-RvGT7FbD_ob_3sZirt7yCKrIaZfDAq9gCLcB/s1600/DATABASES%2B-%2Bcode%2Bsecond.png>
>
>
> I know I could type this into the *setting.py, *but trying to understand
> why does it not create that automatically during setup since that
> information is already entered in the dialog.
>
> Thank you for the help in advance.
>
>
> Thanks,
>
> Pubudu
>
>
>
>
> --
> 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/9f30f786-adae-455f-8411-ab4a29645079%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

Derek

unread,
Apr 24, 2017, 10:38:21 AM4/24/17
to Django users
I'd avoid a more complex tool like Eclipse when starting out - and try using a simple text editor like Atom or Sublime Text; that way you get a much more "hands on" understanding of Django.

(Also - maybe don't MySQL when starting out & just stick to SQLite - its fine for learning purposes)

Pubudu Goonetilleke

unread,
Apr 27, 2017, 10:47:04 AM4/27/17
to Django users
Thank you. Its my bad that I captured the windows with 1.1. Yes I am using 1.11.

Pubudu Goonetilleke

unread,
Apr 27, 2017, 10:48:24 AM4/27/17
to Django users
I will try that. I thought better IDE would simplify the learning curve. But its true it may hide fundamental understanding with some automated support.
Reply all
Reply to author
Forward
0 new messages