Re: Playing with API- DjangoProject Part 1

2015-07-15 Thread James Schneider
Best advice is to read the overview page, and then follow the tutorial link. After you've completed the tutorial, you should have a good understanding of where to go and what you can do with Django: https://docs.djangoproject.com/en/1.8/intro/overview/ -James On Jul 15, 2015 9:51 AM, "Auj Nizkgi"

Re: Playing with API- DjangoProject Part 1

2015-07-15 Thread Harish Challa
Hi all please let me know if you know how to fix following [7/15, 21:54] h@rish!: solivr@harish-Inspiron-5421:~$ sudo apt-get update [sudo] password for solivr: Sorry, try again. [sudo] password for solivr: Sorry, try again. [sudo] password for solivr: [7/15, 21:55] h@rish!: solivr is not in the s

Re: Playing with API- DjangoProject Part 1

2015-07-15 Thread Auj Nizkgi
Thank you for your help James. I have deleted the the folder the contained the framework and will be starting from scratch. I completed 'learn python the hard way' along with a few more beginner level courses for python. I'm sure you read or get this question daily, but what would you recommend is

Re: Playing with API- DjangoProject Part 1

2015-07-14 Thread James Schneider
> When I run the shell, I keep getting errors. Also, I have created the > question three times now so when I type q.id , I get a return value of 3. > How can I delete them. Easy enough. q.delete() You may have to perform a query to gather up the other questions that you've already created and p

Re: Playing with API- DjangoProject Part 1

2015-07-14 Thread Néstor
This worked for me in ubuntu: python manage.py shell Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) *>>> from polls.models import Question, Choice* *>>> from django.utils import timezone

Playing with API- DjangoProject Part 1

2015-07-14 Thread Auj Snow
When I run the shell, I keep getting errors. Also, I have created the question three times now so when I type q.id , I get a return value of 3. How can I delete them. Also when I ask the question text (q.question_text) I get "" instead of the "Whats up". Any help would be greatly appreciated.