Django Getting Started Part 2 with eclipse Plugin (PyDev)

Development environment

PC: MacOS X 10.9.4 Python3.4.1 Django1.6.6

Creating a Django Project with PyDev

When creating a Django app, it seems to be created from the command line, but it is more convenient to use the integrated development environment (ʻIDE). Speaking of ʻIDE, I'm from Java and I really like ʻeclipse, so there seems to be a plugin called PyDev for ʻIDE for Python, so I'm going to use this. The following is an explanation with the PyDev plug-in already installed in ʻeclipse`.

Python interpreter path settings

First of all, in order to set the following Python installed last time, select [Eclipse]-[Preferences]-[PyDev], add a new interpreter ʻInterpreter-Python, and installed the other day, in the following path Specify Python3`.

/Library/Frameworks/Python.framework/Versions/3.4/bin/Python3

スクリーンショット 2014-09-02 15.09.51.png

Creating a Project

Now, let's create a project with ʻEclipse`. Select'PyDev Django Project'in the menu.

スクリーンショット 2014-09-02 14.44.00.png

Project settings

Set the project name, working directory, Python version, and the newly added interpreter Python 3.4.

スクリーンショット 2014-09-02 14.44.38.png

DB settings

The database that can be used by default seems to be SQLite, but my preference is MySQL, so I will use MySQL installed in the local PC environment.

By the way, it seems that the database for the Django app used this time needs to be created in advance on MySQL.

create_db.sql


--DB creation
CREATE DATABASE django_db CHARACTER SET utf8
;
--DB user creation and authorization
GRANT ALL ON django_db.* TO db_user@localhost IDENTIFIED BY '*****'
;

** * Later, I noticed that the database setting by ʻEclipse` below was not successful. For details, see Next article. ** **

スクリーンショット 2014-09-02 14.46.18.png

Project content

If there are no errors and it goes smoothly, the project will be created as shown below.

スクリーンショット 2014-09-02 14.41.43.png

In the future, I plan to study based on this sample project.

Lovely Django!!!

Recommended Posts

Django Getting Started Part 2 with eclipse Plugin (PyDev)
Getting Started with Django 1
Getting Started with Django 2
Getting Started with Python Django (1)
Getting Started with Python Django (4)
Getting Started with Python Django (6)
Getting Started with Django with PyCharm
Getting Started with Python Django (5)
Python with eclipse + PyDev.
Getting started with Android!
Getting Started with Golang 2
Getting started with apache2
Getting Started with Golang 1
Getting Started with Python
Getting Started with Optimization
Getting Started with Golang 3
Getting Started with Numpy
Getting started with Spark
Getting Started with Python
Getting Started with Pydantic
Getting Started with Golang 4
Getting Started with Jython
Django Getting Started Part 3 about Python3 & MySQL Connector
Getting Started with Python Functions
Getting Started with Tkinter 2: Buttons
Get started with Django! ~ Tutorial ⑤ ~
Getting Started with Go Assembly
Getting Started with PKI with Golang ―― 4
Django Getting Started: 2_ Project Creation
Django Getting Started: 1_Environment Building
Django Getting Started: 3_Apache integration
Get started with Django! ~ Tutorial ④ ~
Get started with Django! ~ Tutorial ⑥ ~
Python3 | Getting Started with numpy
Mac + Eclipse (PyDev) + Django environment construction
Test Driven Development with Django Part 4
Getting Started with Python responder v2
Test Driven Development with Django Part 6
Getting Started with Git (1) History Storage
Getting started with Sphinx. Generate docstring with Sphinx
Getting Started with Python Web Applications
Test Driven Development with Django Part 2
Getting Started with Python for PHPer-Classes
Getting Started with Sparse Matrix with scipy.sparse
Getting Started with Julia for Pythonista
Getting Started with Python Basics of Python
How to get started with Django
Getting Started with Cisco Spark REST-API
Getting started with USD on Windows
Getting Started with Python Genetic Algorithms
Getting started with Python 3.8 on Windows
Test Driven Development with Django Part 1
Getting Started with Python for PHPer-Functions
Test Driven Development with Django Part 5
How to authenticate with Django Part 2
How to authenticate with Django Part 3
Getting Started with CPU Steal Time
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
Step notes to get started with django
Getting Started with python3 # 1 Learn Basic Knowledge
Getting Started with Flask with Azure Web Apps