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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
> >
> > 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
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
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
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
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.
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
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
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
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
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 -
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
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.
27 matches
Mail list logo