Re: Tutorial Part 1

2020-05-10 Thread maninder singh Kumar
the polls URL needs to be added to urls.py. [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, May 10, 2020 at 1:15 AM Randy Zeitvogel wrote: > This is from my mysite/settings.py file: > > # Application

RE: Tutorial Part 1

2020-05-10 Thread ngallen4
Where is your polls/views.py??? It should at least return HttpResponse From: django-users@googlegroups.com On Behalf Of tejasri mamidi Sent: Sunday, 10 May 2020 08:13 To: django-users@googlegroups.com Subject: Re: Tutorial Part 1 Change mysite.urls , Path(' ',include('polls.url

Re: Tutorial Part 1

2020-05-09 Thread tejasri mamidi
Change mysite.urls , Path(' ',include('polls.url'))... You were not created any polls function your view and and not import any polls view in your mysite.urls On Sun, May 10, 2020, 01:15 Randy Zeitvogel wrote: > This is from my mysite/settings.py file: > > # Application definition > >

Re: Tutorial Part 1

2020-05-09 Thread Randy Zeitvogel
This is from my mysite/settings.py file: # Application definition INSTALLED_APPS = [ 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Re: Tutorial Part 1

2020-05-09 Thread Nagaraju Singothu
Dear Sir, First add your app in settings.py,then after URLs.py from django.urls import path,include from ur(appname) import views On Sat 9 May, 2020, 5:42 AM Randy Zeitvogel, wrote: > I just started working with Django in the last couple of days. > First environment is Ubuntu

Re: Tutorial Part 1

2020-05-09 Thread tejasri mamidi
Did ,you place ur appname in installed app in settings On Sat, May 9, 2020, 05:42 Randy Zeitvogel wrote: > I just started working with Django in the last couple of days. > First environment is Ubuntu 19.10, python 3.7.5 and Django 3.1. Second > environment is Fedora 31, python 3.7.5, and

Re: Tutorial Part 1

2020-05-09 Thread ola neat
Check your app url, does the url match with wath u have on your browser, On Sat, May 9, 2020, 01:59 Luqman Jr wrote: > Hello > Did you create urls.py under polls app? > You should have urls.py under polls app which will list all urls fall > under this app. > Then share with us polls/urls.py

Re: Tutorial Part 1

2020-05-08 Thread Luqman Jr
Hello Did you create urls.py under polls app? You should have urls.py under polls app which will list all urls fall under this app. Then share with us polls/urls.py and polls/views.py so that we can help more on this. On 9 May 2020, 03:11 +0300, Randy Zeitvogel , wrote: > I just started working

Tutorial Part 1

2020-05-08 Thread Randy Zeitvogel
I just started working with Django in the last couple of days. First environment is Ubuntu 19.10, python 3.7.5 and Django 3.1. Second environment is Fedora 31, python 3.7.5, and Django 3.0.6. In both cases after I create the polls app and try it out, I get this: Page not found (404) Request

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Sorry for my last message! I only checked the main page which don´t have any page. Forgot to check the /polls/ You are perfectly right - not completing the ^ with return before the next character makes the difference! Thanks! tirsdag 7. mars 2017 18.02.48 UTC+1 skrev Vanja Falck følgende: >

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Checked the ^ sign, but it was only missing a return - no syntax-error or change in the current 404 error, so I assume it is interpreted right. The error message is only this (deliberately exchanged my actual site with xxx) - with the 404 header: Using the URLconf defined in xxx.urls, Django

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread ludovic coues
I think I see your problem. Look like you can type a character looking a lot like ^ but being different. ^ is ascii character 94, which represent the start of a line in a regular expression. 2017-03-07 14:10 GMT+01:00 ludovic coues : > Is there any information on the 404 page ?

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread ludovic coues
Is there any information on the 404 page ? I remember django being quite chatty as long it's in debug mode 2017-03-07 10:56 GMT+01:00 Vanja Falck : > Hi, > I have startet the first part of the djangoproject tutorial and get stuck in > part 1 - getting 404 errors on /polls/

Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Hi, I have startet the first part of the djangoproject tutorial and get stuck in part 1 - getting 404 errors on /polls/ - the admin page is ok. Any one have an idea about what is wrong? Followed the instructions carefully (django 1.10 - version). Running in virtualenv with python 3.5.2 and

Re: Django documentation tutorial part 1

2017-02-15 Thread Dário Carvalho
Yeah, was that. 2017-02-14 17:32 GMT-02:00 Alexis Carmona : > Hey, I checked your code on githubt and i think that you missed yo import > your views in your urls file > > El lunes, 6 de febrero de 2017, 17:12:30 (UTC-4), Philip escribió: >> >> Hello, >> >> I am working

Re: Django documentation tutorial part 1

2017-02-14 Thread Alexis Carmona
Hey, I checked your code on githubt and i think that you missed yo import your views in your urls file El lunes, 6 de febrero de 2017, 17:12:30 (UTC-4), Philip escribió: > > Hello, > > I am working through the tutorial included with the django documentation, > and I am confused as to why my url

Re: Django documentation tutorial part 1

2017-02-14 Thread Dário Carvalho
I'm seeing your post only know. Sorry. In deed I used 127.0.0.1:8000 without the /polls when I first ran the server. When I tried with the /polls could finally see the page. 2017-02-07 11:18 GMT-02:00 Gerald Brown : > Have you tried using "127.0.0.1" instead of "localhost"?

Re: Django documentation tutorial part 1

2017-02-07 Thread Gerald Brown
Have you tried using "127.0.0.1" instead of "localhost"? I had a similar problem when I used "localhost" On Tuesday, February 7, 2017 at 5:12:30 AM UTC+8, Philip wrote: > > Hello, > > I am working through the tutorial included with the django documentation, > and I am confused as to why my

Re: Django documentation tutorial part 1

2017-02-06 Thread Dário Carvalho
You welcome. I'm new in django too. Em segunda-feira, 6 de fevereiro de 2017 21:47:46 UTC-2, Philip escreveu: > > Solved. > > On Monday, February 6, 2017 at 3:12:30 PM UTC-6, Philip wrote: >> >> Hello, >> >> I am working through the tutorial included with the django documentation, >> and I am

Re: Django documentation tutorial part 1

2017-02-06 Thread Philip
Solved. On Monday, February 6, 2017 at 3:12:30 PM UTC-6, Philip wrote: > > Hello, > > I am working through the tutorial included with the django documentation, > and I am confused as to why my url is not working. I have the most recent > versions of django and python (the ones that the tutorial

Re: Django documentation tutorial part 1

2017-02-06 Thread Philip
On Monday, February 6, 2017 at 3:12:30 PM UTC-6, Philip wrote: > > Hello, > > I am working through the tutorial included with the django documentation, > and I am confused as to why my url is not working. I have the most recent > versions of django and python (the ones that the tutorial says

Re: Django documentation tutorial part 1

2017-02-06 Thread Philip
Thanks to the link you posted, I figured it out! I had the url in the wrong urls file. Thank you so much! On Monday, February 6, 2017 at 3:58:48 PM UTC-6, Dário Carvalho wrote: > > The "urls.py" at docexample should look like: > > """mysite URL Configuration > > The `urlpatterns` list

Re: Django documentation tutorial part 1

2017-02-06 Thread Philip
Not Found: /polls/ [06/Feb/2017 23:34:00] "GET /polls/ HTTP/1.1" 404 1925 Not Found: /polls/ [06/Feb/2017 23:34:01] "GET /polls/ HTTP/1.1" 404 1925 Above is my console output. My run server command is python3 manage.py runserver. I need to use python3 as the command otherwise it does not

Re: Django documentation tutorial part 1

2017-02-06 Thread Dário Carvalho
The "urls.py" at docexample should look like: """mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2.

Re: Django documentation tutorial part 1

2017-02-06 Thread Sergiy Khohlov
I have not seen setting.py in your project . Also could you please send your runserver command and output Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Feb 6, 2017 at 7:49 PM, Philip wrote: > Hello, > > I am working through the tutorial included with the

Django documentation tutorial part 1

2017-02-06 Thread Philip
Hello, I am working through the tutorial included with the django documentation, and I am confused as to why my url is not working. I have the most recent versions of django and python (the ones that the tutorial says to use) and I believe my file structure is correct, you can see it on

Re: Re: help with the django tutorial part 1

2016-02-02 Thread Russell Stanfield
yes, that was it, thanks it's running now On Tuesday, February 2, 2016 at 2:16:45 PM UTC, 林攀 wrote: > > url(r'^/$, views.index, name='index'), > > > > > > -- > *林攀* > > At 2016-02-02 20:35:58,"Bipul Raj" wrote: > > >> url(r'^$, views.index, name='index'), > > Are you

Re: Re: help with the django tutorial part 1

2016-02-02 Thread Sergiy Khohlov
SHould be url(r'^$', views.index , name='index') you have missed ' Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Feb 2, 2016 at 3:58 PM, 林攀 <18610710...@163.com> wrote: > url(r'^/$, views.index, name='index'), > > > > > > -- > *林攀* > > At 2016-02-02 20:35:58,"Bipul Raj"

Re:Re: help with the django tutorial part 1

2016-02-02 Thread 林攀
url(r'^/$, views.index, name='index'), -- 林攀 At 2016-02-02 20:35:58,"Bipul Raj" wrote: >> url(r'^$, views.index, name='index'), Are you sure if you have closing single quote with r'^$ ? I do not see it in error. On 2 February 2016 at 17:00, Russell Stanfield

Re: help with the django tutorial part 1

2016-02-02 Thread Bipul Raj
>> url(r'^$, views.index, name='index'), Are you sure if you have closing single quote with *r'^$* ? I do not see it in error. On 2 February 2016 at 17:00, Russell Stanfield wrote: > Hi, > > at this page: > >

help with the django tutorial part 1

2016-02-02 Thread Russell Stanfield
Hi, at this page: https://docs.djangoproject.com/en/1.9/intro/tutorial01/ I have got this far in the tutorial: In the polls/urls.py file include the following code: polls/urls.py from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'),]

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread sum abiut
;> File "urls.py", line 18, in >>> from polls import views >>> ImportError: No module named 'polls' >>> Press any key to continue . . . >>> >>> >>> >>> On Sunday, January 31, 2016 at 10:07:21 AM UTC-5, jfr...@yahoo.c

Re: Tutorial part 1 Parent module not loaded

2016-02-01 Thread jfragos via Django users
;> On Sunday, January 31, 2016 at 10:07:21 AM UTC-5, jfr...@yahoo.com wrote: >> >>> Hi, >>> I am very new to Python and Django but not to programming. I have >>> been programming for 30 years. That said I am trying to work my way thru >>> the Django tutori

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
> been programming for 30 years. That said I am trying to work my way thru >> the Django tutorial part 1 and I am confronted with the following error I >> can't get past: >> Traceback (most recent call last): >> File "urls.py", line 3, in >> from . im

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
programming for 30 years. That said I am trying to work my way thru > the Django tutorial part 1 and I am confronted with the following error I > can't get past: > Traceback (most recent call last): > File "urls.py", line 3, in > from . import views > SystemErr

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread sum abiut
ructure showing c:\djangoprojects and >>> also a shot of the mysite structure. I set this up as per the tutorial >>> instructions or so I think I did. >>> >>> mysite--->polls--->urls.py >>> >>> from django.conf.urls import url >>> &

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
gt; >> *mysite--->mysite--->urls.py* >> >> from django.conf.urls import include, url >> from django.contrib import admin >> urlpatterns = [ >> url(r'^polls/', include('polls.urls')), >> url(r'^admin/', admin.site.urls), >> ] >> >&g

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
lls.urls')), > url(r'^admin/', admin.site.urls), > ] > > > On Sunday, January 31, 2016 at 10:07:21 AM UTC-5, jfr...@yahoo.com wrote: > >> Hi, >> I am very new to Python and Django but not to programming. I have >> been programming for 30 years. That said I am t

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
am trying to work my way thru > the Django tutorial part 1 and I am confronted with the following error I > can't get past: > Traceback (most recent call last): > File "urls.py", line 3, in > from . import views > SystemError: Parent module '' not loade

Re: Tutorial part 1 Parent module not loaded

2016-01-31 Thread Avraham Serour
he Django tutorial part 1 and I am confronted with the following error I > can't get past: > Traceback (most recent call last): > File "urls.py", line 3, in > from . import views > SystemError: Parent module '' not loaded, cannot perform relative import > Pr

Tutorial part 1 Parent module not loaded

2016-01-31 Thread jfragos via Django users
Hi, I am very new to Python and Django but not to programming. I have been programming for 30 years. That said I am trying to work my way thru the Django tutorial part 1 and I am confronted with the following error I can't get past: Traceback (most recent call last): File "urls.py&quo

Re: FieldDoesNotExist Error in Tutorial Part 1

2014-11-19 Thread Adailton Nascimento
Use: import datetime class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField(auto_now=True) class Meta: ordering = ['-pub_date'] def __str__(self): return self.question_text delete all objects of your

FieldDoesNotExist Error in Tutorial Part 1

2014-11-18 Thread Derek Ng
Hi, I'm am trying to follow along with the tutorial, but keep getting this error when I migrate the models. Here is my models.py file for the polls app: from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date =

Re: Django 1.5 tutorial, part 1

2013-10-12 Thread Brian Schott
Polls not pools? — Sent from Mailbox for iPhone On Sat, Oct 12, 2013 at 12:58 PM, Enrico Battiston wrote: > Hi, i'm a first time user and i'm experiencing an error in the first part > of the django 1.5 tutorial. > At the "Activating models" paragraph when i execute

Re: Django 1.5 tutorial, part 1

2013-10-12 Thread Enrico Battiston
Thank you, I'm lost in a glass of water. Il giorno sabato 12 ottobre 2013 19:25:46 UTC+2, Vernon D. Cole ha scritto: > > You have a spelling error in INSTALLED_APPS: "pools" vs "polls". You > want a survey, not a puddle of water. > (This could be caused by an overly aggressive spelling

Re: Django 1.5 tutorial, part 1

2013-10-12 Thread Vernon D. Cole
You have a spelling error in INSTALLED_APPS: "pools" vs "polls". You want a survey, not a puddle of water. (This could be caused by an overly aggressive spelling corrector on your computer.) -- Vernon On Saturday, October 12, 2013 10:41:11 AM UTC-6, Enrico Battiston wrote: > > Hi, i'm a first

Django 1.5 tutorial, part 1

2013-10-12 Thread Enrico Battiston
Hi, i'm a first time user and i'm experiencing an error in the first part of the django 1.5 tutorial. At the "Activating models" paragraph when i execute the command line "*python manage.py sql polls*" it return me: "ImportError: No module named pools". Here the section INSTALLED_APPS of

Re: Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Dandall Von
uccessfully setup Django with postgreSQL and everything is fine > > except for a minor problem. > > > > One the very last section of the the tutorial part 1 where we type > > p.pchoice_set.all(), it displays the > > choices in the reverse order. > > > > For

Re: Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Jani Tiainen
On Mon, 17 Jun 2013 21:34:00 -0700 (PDT) Dandall Von <duknov...@gmail.com> wrote: > I have successfully setup Django with postgreSQL and everything is fine > except for a minor problem. > > One the very last section of the the tutorial part 1 where we type > p.pchoice_s

Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Dandall Von
I have successfully setup Django with postgreSQL and everything is fine except for a minor problem. One the very last section of the the tutorial part 1 where we type p.pchoice_set.all(), it displays the choices in the reverse order. For example I get: Just hacking again, The sky, Not much

Re: Django 1.4 tutorial part 1 seems broken at the superuser creation stage.

2013-06-17 Thread Ed
Thank you very much, Tom, for pointing that out. I had no idea django was looking for that environment variable. Following your direction, I checked, and discover that they are all indeed default to "undefined". I'm using OpenBSD 5.3 on macppc, which explains why they were not set, as opposed

Re: Django 1.4 tutorial part 1 seems broken at the superuser creation stage.

2013-06-17 Thread Tom Evans
On Sun, Jun 16, 2013 at 8:06 AM, Ed wrote: > Hello Dear Django Group. > > My first day with Django, I just got it installed on my computer, and am > trying to follow along with the first tutorial: > https://docs.djangoproject.com/en/1.4/intro/tutorial01/ > > I have Django's

Re: Django 1.4 tutorial part 1 seems broken at the superuser creation stage.

2013-06-16 Thread gilberto dos santos alves
please see your locale environment var. what is your os (linux, windows, mac) please post your files. how you installed your django? Em domingo, 16 de junho de 2013 04h06min32s UTC-3, Ed escreveu: > > Hello Dear Django Group. > > My first day with Django, I just got it installed on my computer,

Django 1.4 tutorial part 1 seems broken at the superuser creation stage.

2013-06-16 Thread Ed
Hello Dear Django Group. My first day with Django, I just got it installed on my computer, and am trying to follow along with the first tutorial: https://docs.djangoproject.com/en/1.4/intro/tutorial01/ I have Django's development server up, and I'm able to see the "It worked!" Django welcome

Re: tutorial part 1...syncing db

2012-04-12 Thread Brandy
;>> >>>> Hello. >>>> Try to escape spaces. I don`t check how django work when path have >>>> spaces inside, but i meet same problems in my practice. >>>> >>>> p.s. sorry for my bad english. >>>> >>>> 12 апре

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
on`t check how django work when path have >>> spaces inside, but i meet same problems in my practice. >>> >>> p.s. sorry for my bad english. >>> >>> 12 апреля 2012 г. 21:32 пользователь victoria <ka...@bitnami.org> >>> написал: >>&g

Re: tutorial part 1...syncing db

2012-04-12 Thread william ratcliff
ry for my bad english. > > 12 апреля 2012 г. 21:32 пользователь victoria <ka...@bitnami.org> написал: > > On Thu, Apr 12, 2012 at 7:09 PM, Brandy <brandy.norri...@yahoo.com> > wrote: > >> I am working (again) through the tutorial part 1. I have made changes

Re: tutorial part 1...syncing db

2012-04-12 Thread Leonid Toshchev
brandy.norri...@yahoo.com> wrote: >> I am working (again) through the tutorial part 1. I have made changes to >> Engine and Name as specified in the instructions. However, running "python >> manage.py syncdb" continues to return "Please supply the ENGINE value."

Re: tutorial part 1...syncing db

2012-04-12 Thread Brandy
.norri...@yahoo.com> wrote: > > I am working (again) through the tutorial part 1. I have made changes to > > Engine and Name as specified in the instructions. However, running > "python > > manage.py syncdb" continues to return "Please supply the ENGINE

Re: tutorial part 1...syncing db

2012-04-12 Thread victoria
On Thu, Apr 12, 2012 at 7:09 PM, Brandy <brandy.norri...@yahoo.com> wrote: > I am working (again) through the tutorial part 1. I have made changes to > Engine and Name as specified in the instructions. However, running "python > manage.py syncdb" continues to return "

tutorial part 1...syncing db

2012-04-12 Thread Brandy
I am working (again) through the tutorial part 1. I have made changes to Engine and Name as specified in the instructions. However, running "python manage.py syncdb" continues to return "Please supply the ENGINE value." I did not encounter this problem the first t

Re: Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-27 Thread Sami Balbaky
mail.com> > wrote: > > Django Gurus, > > > > I'm an absolute beginner using Python in Django. I'm currently going > > through the tutorial, part 1, on the djangoproject.com main website: > > https://docs.djangoproject.com/en/1.3/intro/tutorial01/. I keep tryin

Re: Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-22 Thread Bill Freeman
:41 PM, Django_for_SB <sami.balb...@gmail.com> wrote: > Django Gurus, > > I'm an absolute beginner using Python in Django. I'm currently going > through the tutorial, part 1, on the djangoproject.com main website: > https://docs.djangoproject.com/en/1.3/intro/tutorial01/. I keep

Re: Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-21 Thread kalyani ram
alb...@gmail.com> wrote: > Django Gurus, > > I'm an absolute beginner using Python in Django. I'm currently going > through the tutorial, part 1, on the djangoproject.com main > website:https://docs.djangoproject.com/en/1.3/intro/tutorial01/. I keep trying > to complete part 1 of th

Re: Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-21 Thread Furbee
your models.py and settings.py files for any lines that are indented which are not supposed to be. Furbee On Tue, Feb 21, 2012 at 3:41 PM, Django_for_SB <sami.balb...@gmail.com>wrote: > Django Gurus, > > I'm an absolute beginner using Python in Django. I'm currently going > through

Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-21 Thread Django_for_SB
Django Gurus, I'm an absolute beginner using Python in Django. I'm currently going through the tutorial, part 1, on the djangoproject.com main website: https://docs.djangoproject.com/en/1.3/intro/tutorial01/. I keep trying to complete part 1 of the tutorial, step by step, meaning, I'll go through

Re: __unicode__ in tutorial part 1

2011-04-12 Thread darekodz
It works!! THANK YOU EVERYBODY On 12 Kwi, 22:21, Rafael Durán Castañeda wrote: > I think last line from traceback is enough: > > IndentationError: unexpected indent > > 2011/4/12 darekodz > > > > > > > > > I'm using instant django which have:

Re: __unicode__ in tutorial part 1

2011-04-12 Thread Abhijeet Rastogi
May be you have copy-pasted the code from somewhere. May be you are using a TAB instead of 4-spaces or the other way round. Its a python question. You should brush-up your python skills before getting to django. Start with a book like "dive into python". On Wed, Apr 13, 2011 at 1:15 AM, darekodz

Re: __unicode__ in tutorial part 1

2011-04-12 Thread Rafael Durán Castañeda
I think last line from traceback is enough: IndentationError: unexpected indent 2011/4/12 darekodz > I'm using instant django which have: Python 2.7.1 and Django 1.2.4. > When I add > >def __unicode__(self): >return self.question > > and > >def

Re: __unicode__ in tutorial part 1

2011-04-12 Thread Jirka Vejrazka
> IndentationError: unexpected indent > > I don't know what's wrong - Can You help me? It's exactly what it says - indentation is important in Python and number for spaces (or tabs) on that line does not match the rest of your file. Or you mixed tabs and spaces. HTH Jirka -- You

__unicode__ in tutorial part 1

2011-04-12 Thread darekodz
I'm using instant django which have: Python 2.7.1 and Django 1.2.4. When I add def __unicode__(self): return self.question and def __unicode__(self): return self.choice to my class I have errors when I want to restart shell, like: C:\django\mysite>python manage.py

Re: need help following tutorial part 1

2011-01-29 Thread Andre Terra
Quick and dirty solution: python django-admin.py startproject mysite or Add C:\PathToYourDjangoInstall\Scripts\ to your PATH environment variable. This can be done in one of two ways. #1 (EASIER) Open 'System Properties' (hit WindowsKey + PauseBreak, or right-click on My Computer and select

Re: need help following tutorial part 1

2011-01-29 Thread Panupat
Oh Axel, sorry about that ^_^; The tutorial said I should cd to the directory I want to start my project. So no I wasn't in C:\Python27\Scripts when I typed the command On Jan 30, 2:05 am, Axel Bock wrote: > you should not. are you IN c:\...\scripts when you type in >

Re: need help following tutorial part 1

2011-01-29 Thread Axel Bock
you should not. are you IN c:\...\scripts when you type in "django-admin.py"? AFAIK windows adds the current directory always to the path. and it's AXEL ;) 2011/1/29 Panupat > Hi Alex. Thank you for you suggestion. > > It seems I can get the script to run if I type out

Re: need help following tutorial part 1

2011-01-29 Thread Panupat
Hi Alex. Thank you for you suggestion. It seems I can get the script to run if I type out the full path. C:\Python27\Scripts\django-admin.py startprofect mysite C:\Python27 is already added to my windows' PATH. Proably will need to add C:\Python27\Scripts to it too. On Jan 30, 1:44 am, Axel

Re: need help following tutorial part 1

2011-01-29 Thread Axel Bock
hm ... my windows times are over quite a while, BUT ... 1) try associating the .py extension with the python commandline interpreter. 2) syntax error? send a screendump maybe, or your exact command line ... it _should_ work without problems. can you execute other simple python scripts? cheers,

need help following tutorial part 1

2011-01-29 Thread Panupat
I'm kinda stuck and would greatly appreciate any help. I followed these turorials and got Django to install. Was able to import Django and print out the version correctly. I'm running Apache2.2 on windows 7 with mod_wsgi http://docs.djangoproject.com/en/1.2/intro/install/ But moving forward to

Re: newbie tutorial part 1 startproject doesn't create folder and appropriate files

2009-08-04 Thread ondrey
Hi mdsmoker, try running the django-admin.py script like this: python PATH/django-admin.py startproject mysite where PATH is the path to directory containing the django-admin.py. -Ondrej Bohm On Aug 2, 11:47 pm, mdsmoker wrote: > I'm using django 1.1, python 2.5,

Re: newbie tutorial part 1 startproject doesn't create folder and appropriate files

2009-08-03 Thread Peter Bengtsson
Look at if perhaps the project "mysite" was created somewhere else, like for example where the django-admin.py file is located. If so, there could be a fundamental problem with your setup or a bug in the windows implementation for django-admin.py At worst, search your whole hard drive for it. On

newbie tutorial part 1 startproject doesn't create folder and appropriate files

2009-08-02 Thread mdsmoker
I'm using django 1.1, python 2.5, and windows and i'm brand-spanking new to this. i installed django w/out a problem. python is in my windows path and if i type import django after running python i don't get any errors so I'm assuming it is installed correctly. after i run django-admin.py

Re: I am doing the tutorial part 1 and i got this error

2009-01-19 Thread Herson
More attention, python is case sensitive. model is different of Model. 2009/1/19, joti chand : > > Thanks mate > > > On Mon, Jan 19, 2009 at 9:26 PM, Eric Abrahamsen wrote: > > > > > > On Jan 19, 2009, at 4:17 PM, jazz wrote: > > > >> > >>

Re: I am doing the tutorial part 1 and i got this error

2009-01-19 Thread joti chand
Thanks mate On Mon, Jan 19, 2009 at 9:26 PM, Eric Abrahamsen wrote: > > > On Jan 19, 2009, at 4:17 PM, jazz wrote: > >> >> c:\projects\mysite>python manage.py sql polls >> Traceback (most recent call last): >> File "manage.py", line 11, in >>execute_manager(settings) >>

Re: I am doing the tutorial part 1 and i got this error

2009-01-19 Thread Eric Abrahamsen
On Jan 19, 2009, at 4:17 PM, jazz wrote: > > c:\projects\mysite>python manage.py sql polls > Traceback (most recent call last): > File "manage.py", line 11, in >execute_manager(settings) > File "C:\Python25\Lib\site-packages\django\core\management > \__init__.py", line 340, in

I am doing the tutorial part 1 and i got this error

2009-01-19 Thread jazz
c:\projects\mysite>python manage.py sql polls Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "C:\Python25\Lib\site-packages\django\core\management \__init__.py", line 340, in execute_manager utility.execute() File

Re: max_length / Upgrade error in tutorial part 1 (polls)

2007-11-13 Thread matimba
Thanks for clarifying that Matt - I thought I was going crazy. On Nov 13, 11:01 am, Matt McClanahan <[EMAIL PROTECTED]> wrote: > On Nov 13, 12:38 am, [EMAIL PROTECTED] wrote: > > > I am stepping through Dajngo Tutorial (Part 1, to create polls > > applica

Re: max_length / Upgrade error in tutorial part 1 (polls)

2007-11-13 Thread Matt McClanahan
On Nov 13, 12:38 am, [EMAIL PROTECTED] wrote: > I am stepping through Dajngo Tutorial (Part 1, to create polls > application) and get this error. > > Unexpected keyword argument 'max length' when running "manage syncdb" > > If I change it to "maxlength" it wo

max_length / Upgrade error in tutorial part 1 (polls)

2007-11-13 Thread matimba
I am stepping through Dajngo Tutorial (Part 1, to create polls application) and get this error. Unexpected keyword argument 'max length' when running "manage syncdb" If I change it to "maxlength" it works: I did see note in tutorial regarding old version and I was usin

Re: def __str__(self) error in tutorial part 1

2007-10-03 Thread Will McCutchen
Hi, On Oct 2, 1:18 pm, rhett <[EMAIL PROTECTED]> wrote: > 1) I am working in TextMate and copied/pasted below code. In TextMate > the "def __str__(self)" is not indented from the pub_date line - it's > the same indent. I too use TextMate to do a lot of my Python development. It consistently

Re: def __str__(self) error in tutorial part 1

2007-10-02 Thread Jeremy Dunck
On 10/2/07, rhett <[EMAIL PROTECTED]> wrote: > > Total newbie here to Django and Python. Thanks for any insight. > > 1) I am working in TextMate and copied/pasted below code. In TextMate > the "def __str__(self)" is not indented from the pub_date line - it's > the same indent. I know indents are

def __str__(self) error in tutorial part 1

2007-10-02 Thread rhett
Total newbie here to Django and Python. Thanks for any insight. 1) I am working in TextMate and copied/pasted below code. In TextMate the "def __str__(self)" is not indented from the pub_date line - it's the same indent. I know indents are important - is there a way to set up TextMate to show

Re: Problem creating choices in Tutorial Part 1

2007-07-25 Thread Dynomite2910
Doh! As I stated and figured it would be... a total noob mistake. Thanks Nathan - I will look even harder before posting next time. D. On Jul 25, 12:37 pm, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > As the error says, you're using self.question in the Choice model -- > it should be

Re: Problem creating choices in Tutorial Part 1

2007-07-25 Thread Nathan Ostgard
As the error says, you're using self.question in the Choice model -- it should be self.choice. e.g., change this: class Choice(models.Model): # ... def __unicode__(self): return self.question to this: class Choice(models.Model): # ... def __unicode__(self): return self.choice

Problem creating choices in Tutorial Part 1

2007-07-25 Thread Dynomite2910
Hello, Apologies for a noob question/problem. I have searched the forum and can't find anyone having the same issue. I am working through the tutorial following everything exactly as written. (http:// www.djangoproject.com/documentation/tutorial01/) Everything works as expected until I get to