;x – Django, Python Web Framework Introduction [PDF]

Feb 24, 2013 - Berisi tutorial, Framework Feference, how-to, API Reference release note, serta dokumentasi lain yang isi

3 downloads 24 Views 4MB Size

Recommend Stories


Django avance: Pour des applications web puissantes en Python PDF
Be grateful for whoever comes, because each has been sent as a guide from beyond. Rumi

Django in Python Вэб систем хөгжүүлэх
Don't ruin a good today by thinking about a bad yesterday. Let it go. Anonymous

“X” Framework…
Don't fear change. The surprise is the only way to new discoveries. Be playful! Gordana Biernat

Read PDF Web Scraping with Python
The greatest of richness is the richness of the soul. Prophet Muhammad (Peace be upon him)

Python Web Scraping 2nd Edition Pdf
You're not going to master the rest of your life in one day. Just relax. Master the day. Than just keep

Mastering Django Core Pdf
Your big opportunity may be right where you are now. Napoleon Hill

Read book Web Development with Django Cookbook
Life is not meant to be easy, my child; but take courage: it can be delightful. George Bernard Shaw

Développez vos applications web avec Django
We must be willing to let go of the life we have planned, so as to have the life that is waiting for

Authenticate using Django Rest Framework and Angular
Every block of stone has a statue inside it and it is the task of the sculptor to discover it. Mich

[Pdf] Introduction to Machine Learning with Python
Pretending to not be afraid is as good as actually not being afraid. David Letterman

Idea Transcript


CODE, NODE, NOTE CODE, NODE, NOTE CODE, NODE, NOTE

Home Home

About About

Home

About

pip install django

easy_install django

django-admin.py startproject coba

python manage.py startapp hello

coba | manage.py | +---coba | settings.py | urls.py | wsgi.py | __init__.py | \---hello models.py tests.py views.py __init__.py

#tambahkan kedua baris dibawah ini pada bagian paling atas untuk mengetahui lokasi project import os PROJECT_PATH = os.path.realpath(os.path.dirname(__file__)) DEBUG = True ........ TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. )

PROJECT_PATH + '/../templates/',

INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: # 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', # daftarkan app hello kita 'hello', ) .......

from django.views.generic import TemplateView class HelloView(TemplateView): template_name = "hello/hello.html"

Hello Django!!

from django.conf.urls import patterns, include, url ....... from hello.views import HelloView urlpatterns = patterns('', ....... # request hello diarahkan ke view HelloView (r'^hello/', HelloView.as_view()), )

+---coba | manage.py | +---coba | settings.py | urls.py | wsgi.py | __init__.py | +---hello | models.py | tests.py | views.py | __init__.py | \---templates \---hello

hello.html

>python manage.py runserver Validating models... 0 errors found Django version 1.4.3, using settings 'coba.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK.



Õ

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.