Beruflich Dokumente
Kultur Dokumente
http://www.dbmi.pitt.edu
0 errors found
Django version 1.4.2, using settings
'jiangblog.settings'
Development server is running at
http://127.0.0.1:8080/
Quit the server with CONTROL-C.
DBMIAdmins-MacBook-Pro:jiangblog xij6$ ./manage.py
startapp presdebate
DBMIAdmins-MacBook-Pro:jiangblog xij6$ ls -l
total 8
drwxr-xr-x 10 xij6 PITT\domain users 340 Nov 8 12:32
jiangblog
-rwxr-xr-x 1 xij6 PITT\domain users 252 Nov 8 11:28
manage.py
drwxr-xr-x 6 xij6 PITT\domain users 204 Nov 8 13:33
presdebate
DBMIAdmins-MacBook-Pro:jiangblog xij6$
Create an Application within a Project
What is missing?
urls.py: The app’s URL configuration (“URLconf”).
This is not automatically created.
To inform Django that the new app “presdebate” is part of
our project, we need to edit settings.py.
Major Steps:
1. Adding an HTML form to our template.
2. Editing the application URLconf.
3. Adding a new view function that processes user
input.
Adding an HTML Form to Our
Template.
Adding an HTML Form to Our
Template.
Cross-Site Request Forgery
2. Run syncdb.