Django HelloWorld with PyCharm

### Install django
(venv) C:\Users\kim\PycharmProjects\DjangoHelloWorld>pip install django

### Create django project
(venv) C:\Users\kim\PycharmProjects\DjangoHelloWorld>django-admin startproject mysite

### Test run
(venv) C:\Users\kim\PycharmProjects\DjangoHelloWorld\mysite>python manage.py runserver 127.0.0.1:8080

Add the following (optional) to mysite\ settings.py

ALLOWED_HOSTS = ['*']
### Create app
(venv) C:\Users\kim\PycharmProjects\DjangoHelloWorld\mysite>python manage.py startapp polls


Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top