Re: Writing your first Django app, part 1¶

2020-01-09 Thread Mike Dewhirst
on/improvement in response to the ticket. If it is considered valuable by the gatekeepers they will use it. Welcome Mike [1] https://docs.djangoproject.com/en/dev/internals/contributing/ When your on the * documentation page o Writing your first Django app, part 1¶ . + Th

Writing your first Django app, part 1¶

2020-01-09 Thread Garrett Wiseman
Hello Everyone, This may sound stupid. When people know a skill so well. Its sometimes hard to think someone wouldn't know the most basic information. New to coding write code for Arduino. When your on the - documentation page - Writing your first Django app, p

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Glad it all worked out. Good luck at your journey. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discus

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
coool am glad it was helpful. Welcome . On Thu, Aug 1, 2019 at 12:13 PM Sammy Agrawal wrote: > Thank you all so much! Franck's suggestion did it and now I'm further > along on my Django journey! > > On Thu, Aug 1, 2019 at 6:42 AM Lim Kai Wey wrote: > >> Besides that, I do recommend Morzilla

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
Yes, so respect the syntaxes exactly it is written by default in django, its a better practice to avoid unwanted errors. Just need to give modification depending on the project you created On Thu, Aug 1, 2019 at 12:07 PM Nde Nguti wrote: > Just out of curiosity, Python is case sensitive. The f

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Rana Sarkar
You check your app name ,then check Include ('appname.urls') U also create urls.py inside your app. On Thu, Aug 1, 2019, 17:07 Sunny Kumar wrote: > Hi, > > I also having the same problem. And the actual reason was *(poll instead > of polls). *Please check once in your view or url file. I am sure

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Sammy Agrawal
Thank you all so much! Franck's suggestion did it and now I'm further along on my Django journey! On Thu, Aug 1, 2019 at 6:42 AM Lim Kai Wey wrote: > Besides that, I do recommend Morzilla's Django Tutorial too, as it covers > more in the tutorial compared to Django's own tutorial. > > Link: > >

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Nde Nguti
Just out of curiosity, Python is case sensitive. The function names, 'path' and variable 'urlpatterns'. I have gone through the tutorials with no problem. On Thu, Aug 1, 2019, 11:04 Franck Tchouanga wrote: > Firstly in your mysite/mysite/URLs.py in the url patterns portion instead > type this >

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Sunny Kumar
Hi, I also having the same problem. And the actual reason was *(poll instead of polls). *Please check once in your view or url file. I am sure you also having the same issue. [image: Mailtrack] Sender

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Besides that, I do recommend Morzilla's Django Tutorial too, as it covers more in the tutorial compared to Django's own tutorial. Link: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website Regards, Kai Wey On Thu, Aug 1, 2019 at 6:35 PM Lim Kai Wey w

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
I do agree that you Sammy could try changing the mysite/mysite/setting.py INSTALLED_APPS=[ 'polls.apps.PollsConfig', The rest of the code """ ] And I too was wondering if he placed 'polls/' as his URL in mysite/polls/urls.py that cause the error

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
I wanted to precise at the level of the syntax from what I wrote above Urlpatterns = [ Path(' ',include('polls.URLs')), Path('admin/', admin.site.urls), ] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
In the mysite/mysite/setting.py do as follows INSTALLED_APPS=[ 'Polls.apps.pollsConfig', The rest of the code """ ] So you should erase the polls you wrote at the end. Hope will be helpful waiting for your feedbacks -- You received this me

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
Firstly in your mysite/mysite/URLs.py in the url patterns portion instead type this Urlpatterns=[ Path('',include ('polls.URLs')), Path('admin/',admin.site.URLs), ] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Franck Tchouanga
Got the solution to your problem -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web vi

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Anike Sadia
Hi I am new here On Thu, 1 Aug 2019 at 01:33, Lim Kai Wey wrote: > Sammy, would you mind attaching the whole project folder? Thanks > > Regards, > Kai Wey > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group a

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Lim Kai Wey
Sammy, would you mind attaching the whole project folder? Thanks Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googl

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Sammy Agrawal
I’m on Mac, and am still having this problem. On Wed, Jul 31, 2019 at 10:46 AM Charlotte Wood < charlotte.w...@epiccharterschools.org> wrote: > Windows? > > On Wed, Jul 31, 2019, 6:20 AM Sammy Agrawal wrote: > >> Still having this problem- no solution found >> >> On Tuesday, February 9, 2016 at 7

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Charlotte Wood
Windows? On Wed, Jul 31, 2019, 6:20 AM Sammy Agrawal wrote: > Still having this problem- no solution found > > On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com > wrote: >> >> Hi, >> >> I am running into the same problem as this: >> >> http://stackoverflow.com/questions/304

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Lim Kai Wey
To Sammy, Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.py Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Karan Mittal
Give the polls.urls in quotes like this. "polls.urls" Karan Mittal On Wed 31 Jul, 2019, 4:50 PM Sammy Agrawal, wrote: > Still having this problem- no solution found > > On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com > wrote: >> >> Hi, >> >> I am running into the same pr

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Sammy Agrawal
Still having this problem- no solution found On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com wrote: > > Hi, > > I am running into the same problem as this: > > http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial > > Now I can ju

Re: Error with Tutorial - Writing your first Django app, part 1

2017-04-13 Thread ludovic coues
Lynn, you should really start your own thread. If you have an error, copy/paste it entirely, this make debugging a lot easier. And don't​ hesitate to share your code. There is a lot of things that can go wrong when we begin and most give more or less the same result. On 12 Apr 2017 9:27 pm, "Lyn

Re: Error with Tutorial - Writing your first Django app, part 1

2017-04-12 Thread Vijay Khemlani
In the first case he mispelled "urlpatters", it should be "urlpatterns" (notice the n) On Wed, Apr 12, 2017 at 3:47 PM, Lynn Capps wrote: > Shah, > > Did you get this figured out? I am having the same issue as you did. > > > > On Friday, December 9, 2016 at 1:50:22 PM UTC-6, shah wrote: >> >> Hi

Re: Error with Tutorial - Writing your first Django app, part 1

2017-04-12 Thread Lynn Capps
Shah, Did you get this figured out? I am having the same issue as you did. On Friday, December 9, 2016 at 1:50:22 PM UTC-6, shah wrote: > > Hi, I am facing the same issue with the tutorial. > > I have got my program correct. But after running the sever. It shows an > error on chrome. > > Page

Re: Error with Tutorial - Writing your first Django app, part 1

2016-12-09 Thread Fabio C. Barrionuevo da Luz
Missing comma on you urlpatterns urlpatterns = [ url(r'^polls/', include('polls.urls'))* ,* url(r'^admin/', admin.site.urls), ] On Fri, Dec 9, 2016 at 4:10 PM, shah wrote: > Hi, I am facing the same issue with the tutorial. > > I have got my program correct. But after running the se

Re: Error with Tutorial - Writing your first Django app, part 1

2016-12-09 Thread shah
Hi, I am facing the same issue with the tutorial. I have got my program correct. But after running the sever. It shows an error on chrome. Page not found (404) Request Method: GET Request URL: http://localhost:8000/polls/ Using the URLconf defined in mysite.urls, Django tried these URL patterns

Re: HELP - Writing your first Django app, part 1

2016-10-16 Thread 'Nick Bansal' via Django users
Cheers! got it! On Friday, 14 October 2016 22:45:05 UTC+1, Asad Jibran Ahmed wrote: > > Just save the file inside the *poll *folder. That creates the file. > > Asad Jibran Ahmed > > http://blog.asadjb.com > > On Fri, Oct 14, 2016 at 9:55 PM, 'Nick Bansal' via Django users < > django...@googlegroup

Re: HELP - Writing your first Django app, part 1

2016-10-15 Thread Armando Licurgo
criar arquivo vazio em unixlike use touch nome_do_arquivo Armando Licurgo Software Developer 2016-10-14 18:44 GMT-03:00 Asad Jibran Ahmed : > Just save the file inside the *poll *folder. That creates the file. > > Asad Jibran Ahmed > http://blog.asadjb.com > > On Fri, Oct 14, 2016 at 9:55 PM,

Re: HELP - Writing your first Django app, part 1

2016-10-14 Thread Asad Jibran Ahmed
Just save the file inside the *poll *folder. That creates the file. Asad Jibran Ahmed http://blog.asadjb.com On Fri, Oct 14, 2016 at 9:55 PM, 'Nick Bansal' via Django users < django-users@googlegroups.com> wrote: > I tried to create a new file (im using sublime text) but it just gave me a > new

Re: HELP - Writing your first Django app, part 1

2016-10-14 Thread 'Nick Bansal' via Django users
I tried to create a new file (im using sublime text) but it just gave me a new tab... How do I create a new file in an app? On Friday, 14 October 2016 17:41:43 UTC+1, Asad Jibran Ahmed wrote: > > Just create a new file in whatever text editor you're using (I suggest > Sublime Text if you're loo

Re: HELP - Writing your first Django app, part 1

2016-10-14 Thread Vineet Kothari
Inside your app create a file name filename.py you can create any file so on .as you will proceed further you get the idea . On Oct 14, 2016 10:11 PM, "Asad Jibran Ahmed" wrote: > > Just create a new file in whatever text editor you're using (I suggest Sublime Text if you're looking for options) a

Re: HELP - Writing your first Django app, part 1

2016-10-14 Thread Asad Jibran Ahmed
Just create a new file in whatever text editor you're using (I suggest Sublime Text if you're looking for options) and save the file as urls.py inside the polls directory. Asad Jibran Ahmed http://blog.asadjb.com On Fri, Oct 14, 2016 at 8:00 PM, 'Nick Bansal' via Django users < django-users@goog

HELP - Writing your first Django app, part 1

2016-10-14 Thread 'Nick Bansal' via Django users
Hi, I'm struggling to figure out how to do the following command: "To create a URLconf in the polls directory, create a file called urls.py. Your app directory should now look like:" How do I create a file called urls.py in the app directory? am I missing something completely obvious? Any he

Re: Error with Tutorial - Writing your first Django app, part 1

2016-10-10 Thread Dylan Reinhold
In polls/url.py patterns is missing the N. Dylan On Mon, Oct 10, 2016 at 5:24 PM, Johnny McClung wrote: > Thank you. I've added the comma as you mentioned. Can't believe I missed > that. But now I am getting a new error. > > > > E:\Dropbox\Python Scripts\mysite>python manage.py runserver > Perf

Re: Error with Tutorial - Writing your first Django app, part 1

2016-10-10 Thread Johnny McClung
Thank you. I've added the comma as you mentioned. Can't believe I missed that. But now I am getting a new error. E:\Dropbox\Python Scripts\mysite>python manage.py runserver Performing system checks... Unhandled exception in thread started by .wrapper at 0x044B16A8> Traceback (most recent call

Re: Error with Tutorial - Writing your first Django app, part 1

2016-10-10 Thread Vineet Kothari
try to swap both statement On Tue, Oct 11, 2016 at 2:13 AM, Tim Graham wrote: > Add a comma after: url(r'^polls/', include('polls.urls')) > (these are items in a list, separated by a comma) > > > On Monday, October 10, 2016 at 4:42:30 PM UTC-4, Johnny McClung wrote: >> >> I am getting an error

Re: Error with Tutorial - Writing your first Django app, part 1

2016-10-10 Thread Tim Graham
Add a comma after: url(r'^polls/', include('polls.urls')) (these are items in a list, separated by a comma) On Monday, October 10, 2016 at 4:42:30 PM UTC-4, Johnny McClung wrote: > > I am getting an error when I try to run the Django server. > > >> mysite >> polls >> urls.py > from django.conf.ur

Error with Tutorial - Writing your first Django app, part 1

2016-10-10 Thread Johnny McClung
I am getting an error when I try to run the Django server. >> mysite >> polls >> urls.py from django.conf.urls import url from . import views urlpatters = [ url(r'^$', views.index, name='index'), ] >> mysite >> mysite >> urls.py from django.conf.urls import include, url from django

Re: Writing your first Django app, part 1 - Can't Follow it

2016-02-10 Thread James Schneider
On Feb 9, 2016 4:22 PM, wrote: > > Hi, > > I am running into the same problem as this: > http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial > > Now I can just follow the Alasdair's recommendation and delete the polls/url.py file, but the tutorial is ver

Re: Writing your first Django app, part 1 - Can't Follow it

2016-02-10 Thread michaelatnanocube
Hi, thank you that was it! On Wednesday, February 10, 2016 at 4:48:11 AM UTC+2, bipulr wrote: > > I remember doing the django tutorial long time back, it just works. > > The import error means that file polls/urls.py is not there. Check may be > you have left "s" in ulrs. You might have created

Re: Writing your first Django app, part 1 - Can't Follow it

2016-02-09 Thread Thiago Reis
* 'Mysite.urls" 2016-02-09 23:54 GMT-03:00 Thiago Reis : > I believe it is because your (MySite) is in upper case. > > ROOT_URLCONF = 'mysite.urls' > > must be: > > ROOT_URLCONF = 'MySite.urls' > > > 2016-02-09 23:47 GMT-03:00 Bipul Raj : > >> I remember doing the django tutorial long time back,

Re: Writing your first Django app, part 1 - Can't Follow it

2016-02-09 Thread Thiago Reis
I believe it is because your (MySite) is in upper case. ROOT_URLCONF = 'mysite.urls' must be: ROOT_URLCONF = 'MySite.urls' 2016-02-09 23:47 GMT-03:00 Bipul Raj : > I remember doing the django tutorial long time back, it just works. > > The import error means that file polls/urls.py is not the

Re: Writing your first Django app, part 1 - Can't Follow it

2016-02-09 Thread Bipul Raj
I remember doing the django tutorial long time back, it just works. The import error means that file polls/urls.py is not there. Check may be you have left "s" in ulrs. You might have created polls/url.py. On 10 February 2016 at 04:05, wrote: > Hi, > > I am running into the same problem as thi

Writing your first Django app, part 1 - Can't Follow it

2016-02-09 Thread michaelatnanocube
Hi, I am running into the same problem as this: http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial Now I can just follow the Alasdair's recommendation and delete the polls/url.py file, but the tutorial is very clear about having two separate urls.py

Re: Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Vijay Khemlani
str__" (note the double underscore at both ends) >> >> On Wed, Feb 4, 2015 at 2:29 PM, Gavin Patrick McCoy < >> gavin@mail.dcu.ie> wrote: >> >>> Hi, >>> >>> Just started learning Django today. I got down to the last grey box of >>&g

Re: Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Gavin Patrick McCoy
t; Hi, >> >> Just started learning Django today. I got down to the last grey box of >> code on >> https://docs.djangoproject.com/en/1.7/intro/tutorial01/#writing-your-first-django-app-part-1 >> and >> when I checked to see of the __str__() addition to models.py

Re: Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Vijay Khemlani
.djangoproject.com/en/1.7/intro/tutorial01/#writing-your-first-django-app-part-1 > and > when I checked to see of the __str__() addition to models.py worked, it > didn't. I didn't get [], I got [ object>]. I tried creating a new question again and did but now I get > [ Q

Writing your first Django app, part 1 - Django 1.7 - # Make sure our __str__() addition worked.

2015-02-04 Thread Gavin Patrick McCoy
Hi, Just started learning Django today. I got down to the last grey box of code on https://docs.djangoproject.com/en/1.7/intro/tutorial01/#writing-your-first-django-app-part-1 and when I checked to see of the __str__() addition to models.py worked, it didn't. I didn't get [], I

Re: Writing your first Django App Part 1

2014-09-02 Thread Max Nathaniel Ho
Thanks! For the codes, do I save them in views.py? On Wednesday, September 3, 2014 7:23:07 AM UTC+8, Jonathan Querubina wrote: > > Just tupe in. Do not worry. > > Is just for learning about the shell and its power > > Sent from my iPhone > > > On Sep 2, 2014, at 20:07, Max Nathaniel Ho > wrot

Re: Writing your first Django App Part 1

2014-09-02 Thread Jonathan Querubina
Just tupe in. Do not worry. Is just for learning about the shell and its power Sent from my iPhone > On Sep 2, 2014, at 20:07, Max Nathaniel Ho wrote: > > I'm following the instructions in the tutorial but am stuck at this part. > > We are told to type in "python manage.py shell" and explore

Writing your first Django App Part 1

2014-09-02 Thread Max Nathaniel Ho
I'm following the instructions in the tutorial but am stuck at this part. We are told to type in "python manage.py shell" and explore the database API. Thereafter there is a chunk of code that is presented. Am I supposed to type it into my Command Prompt box, and when I do, it will be saved a

Re: Writing your first Django app, part 1 (1.6)

2013-12-11 Thread Suhendri
Dear all, The problem is solved.. The root cause were in models.py. I missed type a variable for return value on Choice Class. Anyway, big thanks for all your supports On Wednesday, December 11, 2013 5:19:48 AM UTC+7, Suhendri wrote: > > Hi, > > I'm new in Django, I'm excited with Django so I

Re: Writing your first Django app, part 1 (1.6)

2013-12-11 Thread Alasdair Nicol
Hi, The Django tutorial has changed between 1.6 and the current development version. Because your error references the Choices.question field, it sounds as if you may have been following the development version in places. Make sure that you follow the Django 1.6 tutorial throughout. If you r

Re: Writing your first Django app, part 1 (1.6)

2013-12-11 Thread Tom Evans
On Tue, Dec 10, 2013 at 10:19 PM, Suhendri wrote: > Hi, > > I'm new in Django, I'm excited with Django so I have to following the > existing tutorial to knew how to create a program with Django. > > I started with tutorial 1, Writing your first Django app, part1. I used > Django 1.6 and SQLite > >

Re: Writing your first Django app, part 1 (1.6)

2013-12-10 Thread Joey Chang
can you share more lines you typed before. It's hard to analysis depending on just one line 2013/12/11 Suhendri > Hi, > > I'm new in Django, I'm excited with Django so I have to following the > existing tutorial to knew how to create a program with Django. > > I started with tutorial 1, Writing

Writing your first Django app, part 1 (1.6)

2013-12-10 Thread Suhendri
Hi, I'm new in Django, I'm excited with Django so I have to following the existing tutorial to knew how to create a program with Django. I started with tutorial 1, Writing your first Django app, part1. I used Django 1.6 and SQLite I followed the instructions from the starting of the tutorial,

Re: Writing your first Django app, part 1

2013-11-20 Thread Larry Barnett
Found it. I had Polls in the wrong place in the settings file. Thanks! On Wednesday, November 20, 2013 12:39:14 PM UTC-6, Larry Barnett wrote: > > In the tutorial after I enter: > > python manage.py sql polls > > I get the following error: > > CommandError: App with label polls could not be foun

Re: Writing your first Django app, part 1

2013-11-20 Thread Jonathan Baker
Is "polls" listed in within INSTALLED_APPS of settings.py? If so, does your polls app have an __init__.py file? On Wed, Nov 20, 2013 at 11:39 AM, Larry Barnett wrote: > In the tutorial after I enter: > > python manage.py sql polls > > I get the following error: > > CommandError: App with label p

Writing your first Django app, part 1

2013-11-20 Thread Larry Barnett
In the tutorial after I enter: python manage.py sql polls I get the following error: CommandError: App with label polls could not be found. Are you sure your INSTALLED_APPS setting is correct? I have built the site twice with the same results. I cannot locate any error in the example or the

Re: New User - Writing your first Django app part 1 crashed

2010-04-12 Thread Jeremy Dunck
On Sat, Mar 27, 2010 at 10:40 PM, Paul Harouff wrote: > On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich > wrote: >> Are you sure that the postgres driver of your jython is installed ? >> > > Yes. But I don't believe Jython is seeing it. > > I might have to switch to python. I was hoping to use jy

Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Paul Harouff
On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich wrote: > Are you sure that the postgres driver of your jython is installed ? > Yes. But I don't believe Jython is seeing it. I might have to switch to python. I was hoping to use jython so the application would be easier to port to laptops using a C

Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Thierry Chich
Are you sure that the postgres driver of your jython is installed ? Le 27 mars 2010 à 01:52, Paul Harouff a écrit : On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey wrote: On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: I uninstalled Django development trunk and installed Django-1.1

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Karen Tracey
On Fri, Mar 26, 2010 at 8:52 PM, Paul Harouff wrote: [snip] >connection = zxJDBC.connect(self.jdbc_url(), > zxJDBC.DatabaseError: driver [org.postgresql.Driver] not found > > > All of my searches say the solution is to use the --verify flag with > jython. But, the --verify flag was removed fr

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey wrote: > On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: >> >> I uninstalled Django development trunk and installed Django-1.1.1. Now >> when I run "jython manage.py runserver" I get "Error: No module named >> messages" >> > > I've no idea bout y

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Karen Tracey
On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: > I uninstalled Django development trunk and installed Django-1.1.1. Now > when I run "jython manage.py runserver" I get "Error: No module named > messages" > > I've no idea bout your earlier problem but this one sounds like you are using a set

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 2:17 PM, Beartenor1 wrote: > I have a openSUSE linux server. > > Created folder /CSDB. > Dropped copy of Sun jdk6u18 in /CSDB/java/jdk6u18. > Installed copy of Jython in /CSDB/jython > Installed easy_install > Installed distribute > Installed virtualenv > Ran virtualenv --r

New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Beartenor1
I have a openSUSE linux server. Created folder /CSDB. Dropped copy of Sun jdk6u18 in /CSDB/java/jdk6u18. Installed copy of Jython in /CSDB/jython Installed easy_install Installed distribute Installed virtualenv Ran virtualenv --relocatable /CSDB/jython Dropped copy of Apache tomcat6 in /CSDB/tomca

Re: Question related to "Writing your first Django app, part 1" tutorial.

2008-08-31 Thread [EMAIL PROTECTED]
You're getting a QuerySet back from filter, so you'll need to index the result, i.e. c[0]. On Aug 31, 5:26 am, Artemis Fowl <[EMAIL PROTECTED]> wrote: > Hello, > > I was starting out to learn Django and was trying the tutorial > presented in the website. In the part when the shell is used to crea

Re: Question about "Writing your first Django app, part 1"

2008-08-31 Thread patrickk
c = Choice.objects.filter(choice__startswith='Just') results in a queryset (not a single object). you could do: for obj in c: obj.poll you have to loop through the items/objects of the queryset, before getting the related poll-object. btw: c[0].poll should also work. On Aug 31, 12:15 pm,

Re: Question about "Writing your first Django app, part 1"

2008-08-31 Thread gordyt
Howdy Artemis, > >>> c = Choice.objects.filter(choice__startswith='Just') > >>> c.poll > > Traceback (most recent call last): >   File "", line 1, in > AttributeError: 'QuerySet' object has no attribute 'poll' Here is what is happening to you. Choice.objects.filter() returns a QuerySet, not a

Question about "Writing your first Django app, part 1"

2008-08-31 Thread Artemis Fowl
Hello, I am starting out with Django and was trying out the tutorial. I was running the code through the shell as given in the document. But to my surprise, I found an anomaly. The tutorial mentions that the Poll object can access the Choice object and vice versa. The code given is >>> c = p.cho

Question related to "Writing your first Django app, part 1" tutorial.

2008-08-31 Thread Artemis Fowl
Hello, I was starting out to learn Django and was trying the tutorial presented in the website. In the part when the shell is used to create Poll and Choice objects, it is mentioned that Choice objects have access to Poll and Poll objects have access to Choice. The tutorial uses this example |--

Re: Meet error in "Writing your first Django app, part 1"

2006-04-10 Thread Kenneth Gonsalves
On Sunday 09 Apr 2006 12:06 pm, Holio wrote: > `python manage.py init polls' python manage.py install polls -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க! --~--~-~--~~~---~--~~ You received this message

Re: Meet error in "Writing your first Django app, part 1"

2006-04-09 Thread Holio
Thanks, I found my sql server didn't set up well. Now the `manage.py install polls' passed. :) --~--~-~--~~~---~--~~ 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@g

Re: Meet error in "Writing your first Django app, part 1"

2006-04-09 Thread Don Arbow
On Apr 8, 2006, at 11:19 PM, gaghiel wrote: > > Writing your first Django app, part 1 > http://www.djangoproject.com/documentation/tutorial1/ > > Hi, after I run this command: > python manage.py install polls > > I got: > Error: polls couldn't be installed. Poss

Re: Meet error in "Writing your first Django app, part 1"

2006-04-08 Thread Holio
Thanks for your reply. I did the `python manage.py init' as the doc said before, and `python manage.py init polls' as you said, still don't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Meet error in "Writing your first Django app, part 1"

2006-04-08 Thread lawgon
> The full error: no such table: packages your have not initialised the database: python manage.py init myapp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Meet error in "Writing your first Django app, part 1"

2006-04-08 Thread gaghiel
Writing your first Django app, part 1 http://www.djangoproject.com/documentation/tutorial1/ Hi, after I run this command: python manage.py install polls I got: Error: polls couldn't be installed. Possible reasons: * The database isn't running or isn't configured correctly. *