Re: Django app part 2

2021-01-06 Thread Jani Karjalainen
Seems to work normally after teens until last. ke 6. tammik. 2021 klo 16.43 Jani Karjalainen (jani.karjalainen...@gmail.com) kirjoitti: > Playing with the API onglema joka koskee kohtassa >>> > Question.objects.get(id=2) > Traceback (most recent call last): > > Tulee seuraava ilmoitus > > Traceba

Django app part 2

2021-01-06 Thread Jani Karjalainen
Playing with the API onglema joka koskee kohtassa >>> Question.objects.get(id=2) Traceback (most recent call last): Tulee seuraava ilmoitus Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/django/db/m

Re: Stuck on tutorial your first Django app part 2

2016-06-10 Thread Neil Hunt
wrote: > >> Hello, >> >> I'm enjoying the tutorial and now I'm stuck on the second page (writing >> your first Django app part 2), shortly after this paragraph. >> >> 'It’s important to add __str__() >> <https://docs.djangoproject.com/en/

Re: Stuck on tutorial your first Django app part 2

2016-06-09 Thread Bill Freeman
What is the definition of your __str__() method? On Thu, Jun 9, 2016 at 4:11 PM, Neil Hunt wrote: > Hello, > > I'm enjoying the tutorial and now I'm stuck on the second page (writing > your first Django app part 2), shortly after this paragraph. > > 'It’s im

Stuck on tutorial your first Django app part 2

2016-06-09 Thread Neil Hunt
Hello, I'm enjoying the tutorial and now I'm stuck on the second page (writing your first Django app part 2), shortly after this paragraph. 'It’s important to add __str__() <https://docs.djangoproject.com/en/1.9/ref/models/instances/#django.db.models.Model.__str__> m

Re: I nedd help - first Django app, part 2 - Admin - Adding related objects

2014-01-27 Thread Rafał Szymański
as usual... Thank you Ramiro for your effort W dniu poniedziałek, 27 stycznia 2014 14:14:14 UTC+1 użytkownik Ramiro Morales napisał: > > On Mon, Jan 27, 2014 at 7:54 AM, Rafał Szymański > > > wrote: > > Hello everybody. > > I'm Rafał. I just started learnig and I'd like to ask You for little

Re: I nedd help - first Django app, part 2 - Admin - Adding related objects

2014-01-27 Thread Ramiro Morales
On Mon, Jan 27, 2014 at 7:54 AM, Rafał Szymański wrote: > Hello everybody. > I'm Rafał. I just started learnig and I'd like to ask You for little help. > I'm in the part 2 of tutorial - admin, Adding related objects. > I have no three slots for related Choices. > Here is my code. > [snip] > class

I nedd help - first Django app, part 2 - Admin - Adding related objects

2014-01-27 Thread Rafał Szymański
Hello everybody. I'm Rafał. I just started learnig and I'd like to ask You for little help. I'm in the part 2 of tutorial - admin, Adding related objects. I have no three slots for related Choices. Here is my code. Thanks in advance for any help. from django.contrib import admin from polls.models

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

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

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

2012-09-06 Thread Melvyn Sopacua
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 Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from th

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

2012-09-06 Thread Rafael E. Ferrero
Maybe, your browser dont accept cookies ?? 2012/9/6 Maheshakya Wijewardena > 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 page > " http://127.0.0.1:8000/admin/"; > > CookieError at /admin/ > >

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

2012-09-06 Thread Maheshakya Wijewardena
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 page " http://127.0.0.1:8000/admin/"; CookieError at /admin/ Invalid Attribute httponly Request Method:GETRequest URL:http://127.0.0.1:8000/admin/D

Re: Writing your first Django app, part 2 error in using http://127.0.0.1:8000/admin/

2009-01-21 Thread Karen Tracey
On Wed, Jan 21, 2009 at 2:55 PM, bconnors wrote: > > in followingWwriting your first Django app, part 2 > > when I typed in: http://127.0.0.1:8000/admin/ > > I got: > > [snip] File "C:\Python26\Lib\site-packages\django\views\defaults.py", line > 23, in serv

Writing your first Django app, part 2 error in using http://127.0.0.1:8000/admin/

2009-01-21 Thread bconnors
in followingWwriting your first Django app, part 2 when I typed in: http://127.0.0.1:8000/admin/ I got: Traceback (most recent call last): File "C:\Python26\Lib\site-packages\django\core\servers \basehttp.py", line 278, in run self.result = application(self.environ, self.star