Re: going through the django tutorial i found error while executing the python manage.py runserver.The error is attached below

2018-05-08 Thread Adam Johnson
For future ref: this mailing list is for the development of Django itself, not for support. Use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On 8 May 2018 at 05:57, Pradeep Sharma wrote: > check your models.py > > -- > You received this messa

Re: going through the django tutorial i found error while executing the python manage.py runserver.The error is attached below

2018-05-08 Thread Pradeep Sharma
check your models.py -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To p

Re: going through the django tutorial i found error while executing the python manage.py runserver.The error is attached below

2018-05-06 Thread Jani Tiainen
Hi. You have a typo in your models.py It should be ForeignKey not Foreignkey. Note the capital K. 6.5.2018 22.05 "Avitab Ayan Sarmah" kirjoitti: views.py: from django.shortcuts import get_object_or_404, render from . models import Question def index(request): latest_question_list = Question

going through the django tutorial i found error while executing the python manage.py runserver.The error is attached below

2018-05-06 Thread Avitab Ayan Sarmah
views.py: from django.shortcuts import get_object_or_404, render from . models import Question def index(request): latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'latest_question_list': latest_question_list} return render(request, 'polls/index.html', context) def d

Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has i

2018-04-23 Thread Tim Graham
For future reference, this mailing list is for the development of Django itself, not for support. Use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On Monday, April 23, 2018 at 9:18:11 AM UTC-4, Avitab Ayan Sarmah wrote: > > Thank you :) > > O

Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has i

2018-04-23 Thread Avitab Ayan Sarmah
Thank you :) On Mon 23 Apr, 2018, 5:02 PM krazysoccerboy, wrote: > add /polls at the end of your url or if you want this to be executed in > home page then in mysite/urls.py remove 'polls/' in url and just leave with > those quotation > > On Sunday, April 22, 2018 at 11:00:27 PM UTC+5:45, Avitab

Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has

2018-04-23 Thread krazysoccerboy
add /polls at the end of your url or if you want this to be executed in home page then in mysite/urls.py remove 'polls/' in url and just leave with those quotation On Sunday, April 22, 2018 at 11:00:27 PM UTC+5:45, Avitab Ayan Sarmah wrote: > > polls/views.py > > from django.http import HttpResp

Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has

2018-04-22 Thread Don Guernsey
Include app_name = ‘polls’ in urls.py > On Apr 22, 2018, at 10:14 AM, Avitab Ayan Sarmah > wrote: > > polls/views.py > from django.http import HttpResponse > > > def index(request): > return HttpResponse("Hello, world. You're at the polls index.") > > polls/urls.py > from django.urls im

I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has it,

2018-04-22 Thread Avitab Ayan Sarmah
polls/views.py from django.http import HttpResponse def index(request): return HttpResponse("Hello, world. You're at the polls index.") polls/urls.py from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'),] mysite/urls.py from django.con

Re: make the source code of the django tutorial available ?

2013-09-09 Thread gilberto dos santos alves
very great task! 2013/9/8 German Larrain : > I know there are different opinions on this topic but if anyone is > interested, I created a repo for the tutorial. The idea is to have branches > and tags that match those of the documentation. > > https://github.com/glarrain/django-

Re: make the source code of the django tutorial available ?

2013-09-07 Thread German Larrain
I know there are different opinions on this topic but if anyone is interested, I created a repo for the tutorial. The idea is to have branches and tags that match those of the documentation. https://github.com/glarrain/django-tutorial-source-code A nice advantage of that is to be able to

Re: make the source code of the django tutorial available ?

2013-01-16 Thread Russell Keith-Magee
2, it might be worth suggesting that people use version >> control during the tutorial. I'm not suggesting we turn the Django tutorial >> into a parallel tutorial on git, but seeding the idea in people's heads has >> the benefit of reinforcing best practice (you do version con

Re: make the source code of the django tutorial available ?

2013-01-16 Thread Daniel Greenfeld
king an official repository for the tutorial would be a disservice for would-be developers. > > 2) This is what version control is for. I'd much rather see someone do > the tutorial and use version control on their own repository, rather than > just pull down the latest versi

Re: make the source code of the django tutorial available ?

2013-01-16 Thread Russell Keith-Magee
n their own repository, rather than just pull down the latest version of a repo that contains all the code they need. Following point 2, it might be worth suggesting that people use version control during the tutorial. I'm not suggesting we turn the Django tutorial into a parallel tutorial on

Re: make the source code of the django tutorial available ?

2013-01-16 Thread Daniele Procida
I'm re-opening an old discussion - https://groups.google.com/d/topic/django-developers/MbLD1BL5xkQ/discussion. Sorry if it all comes out weird, I'm having to do it in Google Groups. I propose maintaining a repository of the Polls tutorial code, with each branch representing the state of the cod

Re: make the source code of the django tutorial available ?

2012-03-27 Thread Michael
> > > > I do not know if this is the right place so sorry if not. > > I am new to Django for a few months. I love the official django tutorial > and I went through it. > > However, I actually never kept the whole tutorial source code on my PC > so after a while, wh

Re: make the source code of the django tutorial available ?

2012-03-26 Thread Alex Ogier
On Mon, Mar 26, 2012 at 7:28 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Once upon a time -- way back in Django's past -- we actually did have the > tutorial code available as part of the Django repository. The problem was > keeping the tutorial code and the tutorial itself in sync

Re: make the source code of the django tutorial available ?

2012-03-26 Thread Russell Keith-Magee
On 27/03/2012, at 4:59 AM, Michael wrote: > Hi, > > I do not know if this is the right place so sorry if not. > I am new to Django for a few months. I love the official django tutorial and > I went through it. > However, I actually never kept the whole tutorial sourc

make the source code of the django tutorial available ?

2012-03-26 Thread Michael
Hi, I do not know if this is the right place so sorry if not. I am new to Django for a few months. I love the official django tutorial and I went through it. However, I actually never kept the whole tutorial source code on my PC so after a while, when I wanted to look at a specific thing I saw

Re: Issue with Django Tutorial Part 1

2011-07-10 Thread Karen Tracey
Please ask questions about using Django on django-users. The topic of this list is the development of Django itself. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.

Issue with Django Tutorial Part 1

2011-07-10 Thread Jennifer Brooke
I'm doing this Django tutorial https://docs.djangoproject.com/en/dev/intro/tutorial01/ and was_published_today isn't working. Thanks for your time. Here's the command line: Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type &qu

Re: Django Tutorial

2007-08-07 Thread Carl Karsten
e 5 functions, plus the basics of data types: strings, lists, tuples, dicts. It would probably be good to make a "learn enough python to use django" tutorial. (having this would be a big plus for Python in general, we need more of theses.) 3. make 2 or 3 django tutorials: 3.1 for pe

Re: Django Tutorial

2007-07-29 Thread Rob Hudson
On 7/28/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > It's definitely up for discussion, and I'm not tied to the current > tutorial in any way. My personal preference is to replace the official > tutorial with the first few chapters of the Django book, once that's > been published, because thos

Re: Django Tutorial

2007-07-29 Thread Michael Trier
Interesting that this is being brought up because I was thinking about this very thing this morning. There appears to be lots of questions about the tutorial on the IRC channel and I can remember when I went through it again recently with someone there were a couple places where we felt like thin

Re: Django Tutorial

2007-07-29 Thread cjl
Writing a one-size-fits-all tutorial is hard. Do you target an expert Python programmer with no Django experience? A Java web developer with lots of experience but little knowledge of Python? A complete beginner to Python and web development? I tried writing a tutorial -- www.instantdjango.com -

Re: Django Tutorial

2007-07-28 Thread Adrian Holovaty
On 7/28/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > I'm curious if it's ever been considered to rewrite the tutorial with > a more apt app or project? My main question is if it's open for > discussion or do most think it's a fine tutorial. It's definitely up for discussion, and I'm not tied to t

Django Tutorial

2007-07-28 Thread Rob Hudson
Hi Devs, I've been recommending Django to web developer friends. I typically first point them to Jacob's excellent video on Google for the background on Django (with the caveat that some code might be out of date but the general history and Django philosophy is well represented)... http://video.