-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes.txt
10 lines (7 loc) · 637 Bytes
/
notes.txt
1
2
3
4
5
6
7
8
9
10
This outer folder is just a container for my project. Can rename it whatever I want
manage.py lets me interact with this django project
inner mysite is python package for project
When defining URLCONFs, the regular expressions don't end in the "$", but a slash, because when django uses include(), it chops off the matching part of the string, and matches the remainder against the included URLConf.
URLS:
Using parenthesis around a pattern "captures" whatever matches the regex, and sends it off to the corresponding view function.
?P<poll_id> defines the variable name, and \d+ is the regular expression that will match a number.