Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read and implement django tutorial pg 1 #10

Closed
Scott-Wheeler opened this issue Dec 29, 2017 · 4 comments
Closed

read and implement django tutorial pg 1 #10

Scott-Wheeler opened this issue Dec 29, 2017 · 4 comments
Assignees

Comments

@Scott-Wheeler
Copy link
Owner

https://docs.djangoproject.com/en/2.0/intro/tutorial01/

@Scott-Wheeler Scott-Wheeler created this issue from a note in Learn Django (Ready) Dec 29, 2017
@Scott-Wheeler
Copy link
Owner Author

verify installation with:
django-admin runserver
127.0.0.1:8000

@Scott-Wheeler Scott-Wheeler self-assigned this Dec 29, 2017
@Scott-Wheeler Scott-Wheeler moved this from Ready to To Do in Learn Django Dec 29, 2017
@Scott-Wheeler Scott-Wheeler moved this from To Do to In progress in Learn Django Jan 9, 2018
@Scott-Wheeler
Copy link
Owner Author

start the development server #17

This was referenced Jan 9, 2018
@Scott-Wheeler Scott-Wheeler moved this from In progress to Ready in Learn Django Jan 9, 2018
@Scott-Wheeler Scott-Wheeler moved this from Ready to In progress in Learn Django Jan 9, 2018
@Scott-Wheeler
Copy link
Owner Author

The arguments to django.urls.path()
path(route, view, kwargs=None, name=None)

route = a string that contains a url pattern to match to the incoming request. GET and POST parameters are not included in the matching. The matching proceeds in order of the list.

view = when a matching route is found then django calls the specified view with an HTTPRequest as the first argument and any captured values / named groups from an re_path as args and kwargs

kwargs = arbitrary kwargs can be passed to the view as a dictionary

name = refer unambiguously to the url pattern from elsewhere, such as templates

@Scott-Wheeler
Copy link
Owner Author

moving onto page 2...

Learn Django automation moved this from In progress to Done Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Learn Django
  
Done
Development

No branches or pull requests

1 participant