Start a project
django-admin startproject project_name
Start the server
cd into your project's root directory* to start Django server the root is where your manage.py lives
python manage.py runserver
create an app
An app is a directory containing code functionality able to live by itself apart from the other parts of the website
python manage.py startapp app_name
set urlconf
Create a file called urls.py in your app directory and set urlpatterns
urlpatterns = \[ url(r'^$', views.index, name='index'), ]
Add urls.py in your app's directory and register to let it route its internal link
url(r'^app_name/', include('app_name.urls'))