Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-17 Thread Ronnie Atuhaire
Thanks! On Tue, Mar 16, 2021 at 5:01 PM Joel Goldstick wrote: > > > On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire > wrote: > >> Hello everyone, I joined this platform like a week ago not because I am >> experienced but because I am new to Django and would like to connect with >> like minded

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Saad Olamilekan
Check your files, your app files may not in the right directory On Tue, Mar 16, 2021, 3:46 PM Kelvin Sajere Simply because you haven't specified that URL path in your project, so it > would naturally not be able to find it. The path I see from your error > image, is the /admin/ path. > > On Tue,

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Kelvin Sajere
Simply because you haven't specified that URL path in your project, so it would naturally not be able to find it. The path I see from your error image, is the /admin/ path. On Tue, Mar 16, 2021 at 10:02 Joel Goldstick wrote: > > > On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire > wrote: > >> He

Re: Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Joel Goldstick
On Tue, Mar 16, 2021 at 9:11 AM Ronnie Atuhaire wrote: > Hello everyone, I joined this platform like a week ago not because I am > experienced but because I am new to Django and would like to connect with > like minded people. > > I have experienced an HTTP404 Error while following this tutorial

Django Tutorial Part 3 Error for Django 3.1

2021-03-16 Thread Ronnie Atuhaire
Hello everyone, I joined this platform like a week ago not because I am experienced but because I am new to Django and would like to connect with like minded people. I have experienced an HTTP404 Error while following this tutorial at *https://docs.djangoproject.com/en/3.1/intro/tutorial03/

Re: Django tutorial part 3 - question_id vs question.id

2016-04-16 Thread Peter of the Norse
On Mar 26, 2016, at 8:04 AM, jorrit...@gmail.com wrote: > > I believe Django lets you access the pk field of a table (which is created > automatically unless you define it explicitly on your model) in multiple > ways: self.pk, self.id, and self._id. Someone correct me if I’m > wrong. You can’t

Re: Django tutorial part 3 - question_id vs question.id

2016-04-06 Thread Acetone
This is awesome, and I appreciate the time you spent writing it. Besides just answering the question I had, this also helped me make some new connections around OOO topics. Also, I do not intend to use the question id as a numbering system - I was just trying to access the id for its own sake

Re: Django tutorial part 3 - question_id vs question.id

2016-03-27 Thread James Schneider
> > In trying to update my templates after I successfully finished part 3 of > the tutorial, I found that I could write something like > You're looking at the results of question {{ question.id }}: "{{ > question.question_text }}" > and get: You're looking at the results of question 1: "What's up?"

Re: Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread Acetone
Cool, I can try those to see how it works. Thank you. On Saturday, March 26, 2016 at 7:04:13 AM UTC-7, jorr...@gmail.com wrote: > > I believe Django lets you access the pk field of a table (which is created > automatically unless you define it explicitly on your model) in multiple > ways: self.

Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread jorrit787
I believe Django lets you access the pk field of a table (which is created automatically unless you define it explicitly on your model) in multiple ways: self.pk, self.id, and self._id. Someone correct me if I'm wrong. -- You received this message because you are subscribed to the Google Groups

Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread Acetone
Hello, In trying to update my templates after I successfully finished part 3 of the tutorial, I found that I could write something like You're looking at the results of question {{ question.id }}: "{{ question.question_text }}" and get: You're looking at the results of question 1: "What's up?"

Re: Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Nikolas Stevenson-Molnar
To go a bit further: never use TextEdit to edit source code of any kind, even in plain text mode. It's simply not designed for that. TextWrangler makes a great source editor and has some very handy features. However, for full-blown projects with many source files, etc. you may find it easier to use

Re: Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Nikolas Stevenson-Molnar
Text Wranger is a plain-text only editor, whereas TextEdit is a rich text editor by default (you can toggle plain text). This means that when you type HTML characters in to TextEdit, such as *Blah*, you're not getting true *<>* characters, but something like *<* (<) and *>* (>). So your template pr

Re: Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Helly
I am SO SORRY, and in the future I promise to wait at least a week before posting my problems to see if I can figure it out in the meantime. I fixed this by saving the file in TextWrangler instead of TextEdit, and now it interprets the HTML properly. If anyone knows *why* this fixes the problem,

Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Helly
I'm currently going through the Django tutorial, and everything was going perfectly smoothly until the template part. This is what I always get for the polls/index.html: http://pastebin.com/ng9iGNRp I noticed that it gets everything right (the {{ poll.id }} is 1, there's no other error) but ju

Re: Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread Thorsten Sanders
You are using the tutorial of the development version which is 1.4 alpha, but using yourself version 1.3.1, so you need to use django.conf.urls.defaults instead of django.conf.urls Better use the 1.3 tutorial instead of the development one to not run into such troubles. Am 06.02.2012 23:23,

Re: Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread John Paton
Thanks for the help. Here's what it says: from django.conf.urls import patterns, include, url and then it says unresolved import: url, include, patterns. Can you tell me what is going wrong here. Thanks! On Feb 6, 12:02 pm, Pavlo Kapyshin wrote: > As this exception says, you have an error o

Re: Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread Pavlo Kapyshin
As this exception says, you have an error on first line of urls.py. Double-check that line. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send

Django Tutorial Part 3 Decoupling the URLconfs

2012-02-06 Thread John Paton
Hi, I have just tried to decouple my polls urls. Everything was working before but when I now go to mysite I get the following error message. Do you have any idea how I could fix this? Thanks for the help! ImportError at / cannot import name patterns Request Method: GET Request URL:http://127

Re: Django Tutorial, Part 3

2009-04-02 Thread Dougal Matthews
12:53 > An: Django users > Betreff: Re: Django Tutorial, Part 3 > > > > > On Apr 2, 8:35 am, rorocam wrote: > > Hello ..., > > > > I have problems with the "Decoupling the URLconfs". I did, as Django > > Tutorial (Part 3) shows me, but it

AW: Django Tutorial, Part 3

2009-04-02 Thread Loewe, Rosemarie
users Betreff: Re: Django Tutorial, Part 3 On Apr 2, 8:35 am, rorocam wrote: > Hello ..., > > I have problems with the "Decoupling the URLconfs". I did, as Django > Tutorial (Part 3) shows me, but it does not work, the browser shows > following error: > > > Im

AW: Django Tutorial, Part 3

2009-04-02 Thread Loewe, Rosemarie
et: Do 02.04.2009 12:53 An: Django users Betreff: Re: Django Tutorial, Part 3 On Apr 2, 8:35 am, rorocam wrote: > Hello ..., > > I have problems with the "Decoupling the URLconfs". I did, as Django > Tutori

Re: Django Tutorial, Part 3

2009-04-02 Thread Dougal Matthews
art 3) > > I hope you can do something with this information. > > Best regards > R. Loewe (rorocam) > > > > Von: django-users@googlegroups.com im Auftrag von Daniel Roseman > Gesendet: Do 02.04.2009 12:53 > An: Django users >

Re: Django Tutorial, Part 3

2009-04-02 Thread Daniel Roseman
On Apr 2, 8:35 am, rorocam wrote: > Hello …, > > I have problems with the „Decoupling the URLconfs”. I did, as Django > Tutorial (Part 3) shows me, but it does not work, the browser shows > following error: > > > ImportError at /polls/ > > Import by filename is no

Django Tutorial, Part 3

2009-04-02 Thread rorocam
Hello …, I have problems with the „Decoupling the URLconfs”. I did, as Django Tutorial (Part 3) shows me, but it does not work, the browser shows following error: > ImportError at /polls/ > Import by filename is not supported. What is wrong with my application? I have installed Pyth