Re: Writing your first Django app, part 1¶

2020-01-09 Thread Mike Dewhirst
On 10/01/2020 1:09 pm, Garrett Wiseman wrote: 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. Garrett I fully understand what you are saying. An

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: 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

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

2015-02-04 Thread Vijay Khemlani
Don't worry :) On Wed, Feb 4, 2015 at 7:00 PM, Gavin Patrick McCoy < gavin.mcc...@mail.dcu.ie> wrote: > Sorry about that. Thanks a million for your reply. > > On Wednesday, 4 February 2015 17:38:16 UTC, Vijay Khemlani wrote: >> >> The method is called "__str__" (note the double underscore at both

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

2015-02-04 Thread Gavin Patrick McCoy
Sorry about that. Thanks a million for your reply. On Wednesday, 4 February 2015 17:38:16 UTC, Vijay Khemlani wrote: > > The method is called "__str__" (note the double underscore at both ends) > > On Wed, Feb 4, 2015 at 2:29 PM, Gavin Patrick McCoy > wrote: > >> Hi, >> >> Just started learning D

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

2015-02-04 Thread Vijay Khemlani
The method is called "__str__" (note the double underscore at both ends) On Wed, Feb 4, 2015 at 2:29 PM, Gavin Patrick McCoy < gavin.mcc...@mail.dcu.ie> wrote: > 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/

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

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

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