Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-22 Thread Awa M. Kinason
You are having an error on your template. {%url 'polls:detail' question.id%} instead of {% url 'polls:detail' question.id %} Take note of the space after or before the percentage sign. Django Templating Engine requires you to respect the rules. If you even add double spaces where you are supposed

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-22 Thread sahil khan
Plz go on my you tube channel you will get your error regarding sollution on my channel Link : https://www.youtube.com/channel/UCxxPBCkto7W8MX6TMctgLqw On Sun, 19 Apr 2020, 7:49 pm Jorge Gimeno, wrote: > If settings.DEBUG == False, then you have to put the allowed addresses > in settings.ALLOW

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-19 Thread Jorge Gimeno
If settings.DEBUG == False, then you have to put the allowed addresses in settings.ALLOWED_HOSTS. If Debug is True, then I'm not sure what's going on. -Jorge On 4/18/20, Markus Grossniklaus wrote: > Thanks a lot Chucky! > No error message > displays at least one dot! fine > > http://127.0.0.1:8

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-18 Thread Markus Grossniklaus
Thanks a lot Chucky! No error message displays at least one dot! fine http://127.0.0.1:8000/admin/ shows ERR_CONNECTION_REFUSED even with no Proxy active and iptables shows no restrictions e.g. everything is allowed How could I debug this? On Wednesday, April 15, 2020 at 12:27:21 AM UTC+2, Mar

Class 'Question' has no 'objects' . problem in Writing your first Django app, part 3 tutorial

2020-04-03 Thread yoav
I'm using vs code and doing the tutorial https://docs.djangoproject.com/en/3.0/intro/tutorial03/ at the " Here’s one stab at a new index() " part of the tutorial when writing to polls/vies.py file I get an error from vs code (in the "latest_questin_list=") that Question has no 'objects. why i

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

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

2019-07-31 Thread Charlotte Wood
> >> 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 - 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
, >> >> 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

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

Re: I got error when working on "Writing your first Django app, part 5" of tutorial

2018-05-05 Thread 'Anthony Flury' via Django users
ROOT_URLCONF ideally point to the top level project urls.py if you have one - if you point it to an app's urls.py - you have to them make sure you link that app back to all the other (which sort of defeats the point of the app) - and make sure that something you refers forward to the admin urls

Re: I got error when working on "Writing your first Django app, part 5" of tutorial

2018-05-04 Thread brzrkr
It seems you need to point your Django project to your urls.py file. See: https://docs.djangoproject.com/en/2.0/ref/settings/#root-urlconf This should point to your urls.py file, the file containing the `urlpatterns` variable, which is a list of `path()` statements. For example if your urls.py fi

I got error when working on "Writing your first Django app, part 5" of tutorial

2018-05-04 Thread truongtronghai
When I run below command >>> response = client.get('/') I got error "module 'django.conf.global_settings' has no attribute 'ROOT_URLCONF'" Please give me advice to solve it. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: help with the poll application." Writing your first Django app".

2018-02-23 Thread Andy
thx :) Am Freitag, 23. Februar 2018 22:16:12 UTC+1 schrieb Haven McConnell: > > This is very good explaintaion > > On Wednesday, February 21, 2018 at 7:17:48 AM UTC-5, Sebastian Saade wrote: >> >> >>

Re: help with the poll application." Writing your first Django app".

2018-02-23 Thread Sebastian Saade
thanks for the reply El miércoles, 21 de febrero de 2018, 9:17:48 (UTC-3), Sebastian Saade escribió: > > > > > Hello

Re: help with the poll application." Writing your first Django app".

2018-02-23 Thread 'Haven McConnell' via Django users
This is very good explaintaion On Wednesday, February 21, 2018 at 7:17:48 AM UTC-5, Sebastian Saade wrote: > > > > > Hel

Re: help with the poll application." Writing your first Django app".

2018-02-21 Thread Andy
You are not using Django 2.0 and thus the path function is not existing in Django 1.11. Django 2.0 can only be installed with python3, while you are trying to use python 2.7 for that job. apt install python3 python3-pip pip3 install virtualenv virtualenvwrapper mkvirtualenv django-tu

Re: help with the poll application." Writing your first Django app".

2018-02-21 Thread Jason
if you're using django 2, its not python2 compatible. I see in your stack trace you're using python2 If you want to stay on py2, I would look at using the v 1.11 version of the tutorial On Wednesday, February 21, 2018 at 7:17:48 AM UTC-5, Sebastian Saade wrote: > > >

help with the poll application." Writing your first Django app".

2018-02-21 Thread Sebastian Saade
Hello, I'm writing for help. I'm starting to get into Django's world. Testing the tutorial of the Django documentation

Re: Timezone error when I launch the admin login screen in 'Writing your first Django app'-tutorial

2017-09-26 Thread Dan Tagg
Check the Django Settings file and set TIME_ZONE = 'UTC' or something in this list http://en.wikipedia.org/wiki/List_of_tz_zones_by_name Dan On 26 September 2017 at 14:30, Lise wrote: > Hi, > > I'm trying to learn how to use Django through the 'Writing your f

Timezone error when I launch the admin login screen in 'Writing your first Django app'-tutorial

2017-09-26 Thread Lise
Hi, I'm trying to learn how to use Django through the 'Writing your first Django app'-tuorial. I have reached the step where you create a superuser and you need to start the server and go to the local domain and see the admin login screen. I don't see the admin login scr

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: Writing your first Django app, part 4

2017-03-06 Thread friscosoftware
t; {{ choice.choice_text > }} > {% else %} > There is no choice for this question! Add one in the admin. > {% endfor %} > > > > 2017-03-05 15:10 GMT+01:00 >: > > I'm in the process of learning Django and working throught the tutorial, > >

Re: Writing your first Django app, part 4

2017-03-05 Thread ludovic coues
choice in question.choice_set.all %} {{ choice.choice_text }} {% else %} There is no choice for this question! Add one in the admin. {% endfor %} 2017-03-05 15:10 GMT+01:00 : > I'm in the process of learning Django and working throught the tutorial, > Writing your first Django app. I'm get

Writing your first Django app, part 4

2017-03-05 Thread friscosoftware
I'm in the process of learning Django and working throught the tutorial, Writing your first Django app <http://Writing your first Django app, part 4>. I'm getting stuck on part 4. The form n detail.html doesn't display radio buttons. Thus there is nothing to select and w

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

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

2016-02-10 Thread michaelatnanocube
s. You might have created polls/url.py. > > > On 10 February 2016 at 04:05, > 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 &g

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

2016-02-09 Thread Thiago Reis
; On 10 February 2016 at 04:05, 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 Alasd

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

2016-02-09 Thread Thiago Reis
hat 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 this: >> >> http://stackoverflow.co

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

2016-02-09 Thread Bipul Raj
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 >

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 sep

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Ok. I get you. Thanks very much! On Saturday, 21 February 2015 11:56:50 UTC, Daniel Roseman wrote: > > You're doing this in the shell, which uses your devv database in which you > have obviously defined a poll already. > > The docs are taking about running this in a unit test, which would create

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
I got a code 200. Thanks for your reply. On Saturday, 21 February 2015 11:05:35 UTC, 严超 wrote: > > I think the purpose here is to test reverse() function. As long as you > got code 200, it's ok whatever html it returns. > Is it right ? > > *Best Regards!* > > > *Chao Yan--About me : h

Writing your first Django app, part 5 Testing

2015-02-21 Thread Daniel Roseman
You're doing this in the shell, which uses your devv database in which you have obviously defined a poll already. The docs are taking about running this in a unit test, which would create a blank db without any polls. -- DR. -- You received this message because you are subscribed to the Googl

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread 严超
I think the purpose here is to test reverse() function. As long as you got code 200, it's ok whatever html it returns. Is it right ? *Best Regards!* *Chao Yan--About me : http://about.me/chao_yan * *My twitter: @yanchao727 *

Writing your first Django app, part 5 Testing

2015-02-21 Thread Gavin Patrick McCoy
Hi, I'm on part 5 of the polls tutorial (https://docs.djangoproject.com/en/1.7/intro/tutorial05/) and I am running Django 1.7 and Python 3.4 on Windows 8. Just want to make sure I'm on the right track. For the following part of tutorial: >>> # get a response from '/'>>> response = client.get

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 2 - Customize the admin look and feel

2014-01-26 Thread Ankur Mishra
ader names. > > > > On Wednesday, January 15, 2014 10:28:38 AM UTC-8, Manu wrote: >> >> Can you post your directory structure here? The problem should be there, >> most probably. >> >> On Wednesday, 15 January 2014 11:37:51 UTC+5:30, Tim DiSabatino wrote: &g

Re: Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Tim DiSabatino
ust going through the Django Tutorial and am in Writing your first >> Django app, part 2. In the section called "Customize the admin look and >> feel", I have created a templates directory, an admin directory inside of >> that, and copied the base_site.html fil

Re: Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Manu
Can you post your directory structure here? The problem should be there, most probably. On Wednesday, 15 January 2014 11:37:51 UTC+5:30, Tim DiSabatino wrote: > > Hello, > > I am just going through the Django Tutorial and am in Writing your first > Django app, part 2. In the

Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Tim DiSabatino
Hello, I am just going through the Django Tutorial and am in Writing your first Django app, part 2. In the section called "Customize the admin look and feel", I have created a templates directory, an admin directory inside of that, and copied the base_site.html file into the admin

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

2013-12-11 Thread Suhendri
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 tut

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

2013-12-11 Thread Alasdair Nicol
e 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, until the line of *# Create three choices* I got an error. Wh

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

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

2013-12-10 Thread Joey Chang
t; > 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, until the > line of *# Create three choices* I got an error. > > When I typed p.choice_set.create(choice_text=&#x

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 th

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: Writing your first Django app - Tutorial Question

2013-06-25 Thread Tony Guilin
> > you have missed > from django.utils import timezone > That worked! Thanks. P.S. I just copy and paste in Chrome (in Ubuntu) and it picks up the formatting. On Tuesday, June 4, 2013 4:10:23 PM UTC-7, Tony Guilin wrote: > > In the https://docs.djangoproject.com/en/1.5/intro/tutorial01

Re: Writing your first Django app - Tutorial Question

2013-06-05 Thread Sergiy Khohlov
you have missed from django.utils import timezone Also simple question : How are you adding this nice code formatting ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Jun 5, 2013 at 7:48 AM, Mike Dewhirst wrote: > On 5/06/2013 9:10am, Tony Guilin wrote: > >> In the >> ht

Re: Writing your first Django app - Tutorial Question

2013-06-04 Thread Mike Dewhirst
On 5/06/2013 9:10am, Tony Guilin wrote: In the https://docs.djangoproject.com/en/1.5/intro/tutorial01/ tutorial under the, Playing with the API section, I'm trying to go through the example in my python shell as described. p = Poll(question="What's new?", pub_date=timezone.now()) But

Writing your first Django app - Tutorial Question

2013-06-04 Thread Tony Guilin
In the https://docs.djangoproject.com/en/1.5/intro/tutorial01/ tutorial under the, Playing with the API section, I'm trying to go through the example in my python shell as described. p = Poll(question="What's new?", pub_date=timezone.now()) But I'm unable to get to next command "p.save()" b

I get a problem at [Activate the admin site] of [Writing your first Django app, part 2 ]

2012-11-05 Thread Jun Luo
Hi all, I followed all three steps to activate the admin site. but when I went to /admin, it came as follow: NameError at /admin name 'admin' is not defined Request Method:GETRequest URL:http://127.0.0.1:8000/adminDjango Version: 1.4.2Exception Type:NameErrorException Value: name 'admin' is

Re: "Writing your first Django app" Tutorial Question

2012-10-12 Thread Tomáš Ehrlich
Hi Stefano, your understanding is incorrect. Django (neither Python) doesn't load (or import) anything by himself. Everything what you import is everything what you get. There are few exceptions, like Python builtin module (and default tags/templates in Django templates), but that's definitely n

Re: "Writing your first Django app" Tutorial Question

2012-10-12 Thread Jan Bednařík
Hi, model Choice is related to model Poll by ForeignKey. All Choice objects related to specific Poll object can by returned by: my_poll.choice_set.all() And that is happening in the template in for loop: {% for choice in poll.choice_set.all %} ... More detailed info is here: https://docs.djang

Re: "Writing your first Django app" Tutorial Question

2012-10-12 Thread Jason Sibre
Hi Rick, I'll try to explain, but it's really more about Python than Django... (I'm not familiar with the tutorial app, so I'm basing my answers on what code you copied into your email.) That import of Poll that you see in details.py doesn't even enter into it. It's only used on the line that

"Writing your first Django app" Tutorial Question

2012-10-12 Thread Rick Chong
Hi, I have just started learning programming and I am following the creating a poll app tutorial at: https://docs.djangoproject.com/en/1.4/intro/tutorial03/ I hope that someone has attempted this tutorial and is able to help me on some very beginner questions: In this app, we defined 2 classes

Re: error in the "Writing your first Django app, part 2"

2012-09-07 Thread Maheshakya Wijewardena
thanks official version did the job On Friday, September 7, 2012 8:32:55 AM UTC+5:30, Melvyn Sopacua wrote: > > You're using development version of Django. Python 2.5 support is dropped > there. Use official 1.4 release. > -- You received this message because you are subscribed to the Google Gr

Re: error in the "Writing your first Django app, part 2"

2012-09-06 Thread ecs1749
Nevermind. I think I confused myself in doing step 3 before 2. On Thursday, September 6, 2012 11:44:30 AM UTC-7, Maheshakya Wijewardena wrote: > > I've followed the instruction & proceeded upto the point where it comes to > activate the admin site. But I get the following error when I load the

Re: error in the "Writing your first Django app, part 2"

2012-09-06 Thread ecs1749
I have a different error: ViewDoesNotExist at /admin/ Could not import polls.views.vote. View does not exist in module polls.views. Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version: 1.4.1Exception Type:ViewDoesNotExistException Value: Could not import polls.views.vote. V

  1   2   >