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

112 vues
Accéder directement au premier message non lu

Pubudu Goonetilleke

non lue,
23 avr. 2017, 14:56:2723/04/2017
à 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

non lue,
23 avr. 2017, 20:38:3923/04/2017
à 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

non lue,
24 avr. 2017, 10:38:2124/04/2017
à 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

non lue,
27 avr. 2017, 10:47:0427/04/2017
à Django users
Thank you. Its my bad that I captured the windows with 1.1. Yes I am using 1.11.

Pubudu Goonetilleke

non lue,
27 avr. 2017, 10:48:2427/04/2017
à 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.
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message