[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Django Tutorial for Beginners – 5 – Views
by
Tags:
Comments
47 responses to “Django Tutorial for Beginners – 5 – Views”
-
I got a name error; NameError: name 'url' is not defined
Code in musicurls looks like this:
url(r'^$', views.index, name='index'),Anyone have a clue why?
-
I'm getting error : cannot create urls.py can anyone help?
-
its giving me a NameError index not defined
-
you are the best……tttttttttttttt. no compare
-
Can anyone explain why is
from . import views but not
import views ? -
bucky you are a life saver, you have no idea how many django tutorials i have watched only to get caught up in all the tech mumbo jumbo, your tutorial is the first to have ever given me hope of ever fully understanding back end programming as you have made it so much easier to understand, thank you!
-
how can i switch from sqlite3 to mysql?
-
tyerror: view must be a callable or a list/tuple in the case of include
-
If you're getting Page Not Found error for r'^music' try restarting your server.
-
Clear explanations, good tutorial, thanks buddy !
-
"you didn't mess up ur computer congratulations"
-
"Sorry got the black lung" hahaha
-
hello
when i add new url in website/urls.py file in that time close the runserver and
error generate "importerror : no module named website"…So what i do??
please help m…
i have tried so many time …but doestn't solve this error… -
Ok, I'm seeing in a ton of tutorials for django that says that the 'r' before the string literal in the url patterns is supposed to be a notation that denotes a regular expression. However, according to the Regex documentation (https://docs.python.org/3/howto/regex.html, jump to the backslash plague section), the 'r' is a PYTHON notation that denotes a raw string, not some indicator for a RE
Why does everyone keep saying that it indicates a RE then?
-
Bucky, my server is stopping again and again and the most frustrating part is, it is not fixing up! To be particular, I am experiencing this problem when I'm creating "music". Need your help, ASAP!
-
hey what do you call those "r"s? a carrot?
-
r means raw string
-
I love your tutorials bro
-
python manage.py createsuperuser
will create the login/password for the admin portal
-
for the account and password, incase you're using a virtual environment you need to create a super user, just type in you're terminal: python manage.py createsuperuser
-
cannot import http response
-
For admin page, i.e django administration it's asking login id and password.
how do I open my admin page -
You're funny. 🙂
Also, detailed tutorial I had fun following. -
i pity on the keyboard !!
-
2:00 chack out Derek Banas channel for the regex tutorials, they are just awesome.
-
quick note though , the ' r ' does not mean regular expression it mean raw string .
-
Bucky, you are a legend!
-
Got a problem if I put "import views" instead of "from . import views"
-
I love the last part. He summed all the things up.
-
I'm getting an error 404! It says "Current URL music didnt match any of theses". I checked, and there is no spelling error or so. Please help?
-
what if i want to add new page like music/something
do i have to add that in music.urls then what will be the index ??
is it views.something?? and what will be the name ?? different or same as you created? -
help needed :
First time when run server (by typing 'python manage.py runserver' on powershell), it works fine. Now I type ctrl+c to quit. Next time when i try to run server, it doesn't work, a pop up shows up which says "Python has stopped working. A problem caused the program to stop working correctly. Windows will close the problem and notify you if a solution is available [Debug] [Close program]"….can anyone help me? -
Nice. Very clear tutorials. Not spoken in "robot speech" as is so often the case.
-
so far, so good…
-
AttributeError at /music/
'tuple' object has no attribute 'get'Why?
-
"r" before a string does not mean regular expression, it means "raw" from raw string, so python knows not to interpret eventual special characters (like "n")
-
great video. thank you
-
Is this code sample available somewhere on git
-
very helpful and clear tutorial. thank you!
-
I followed this tutorial closely, copying all steps. At the end when I try looking at the server, it gives me a 404 message (not found). I shut the server down (ctrl+c) and ran it again.. same result. Any ideas what may have went wrong?
-
That was a bit lenghty but much clearer than the tutorial on Django's official website!
Thank you, it helped! -
after doing the views.py part when i try to run the server (python manage.py runserver) i get an error saying that python.exe has stopped working.
Anyone got this problem and/or know how to fix it? -
My django page keeps timing out whilst making the "music" part. Then if I click the saved bookmark, the site cant be reached. How do I fix this?
-
How do I login in to the admin?
-
Well done!
-
hey I am getting this error ImportError: No module named 'music.url'
-
WOW last one minute is awesome !!!
Made me to understand whole video in 1 minute
Thanks Bucky
Leave a Reply