Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, You are not using reverse in your views.py. I'm not sure what is causing your problem. hi, if you have any mini project on django, plz share, i m beginner it can > be helpful for me... plz share if u have.. Django By Example - http://lightbird.net/dbe2/ Sincerely, Pankaj Singh http://abou

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi, if you have any mini project on django, plz share, i m beginner it can be helpful for me... plz share if u have.. thanks alot On Tue, Feb 19, 2013 at 5:58 PM, Avnesh Shakya wrote: > hi, i m adding my views.py file > > > > On Tue, Feb 19, 2013 at 5:44 PM, Pankaj Singh wrote: > >> Hey, >> >> E

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi, i m adding my views.py file On Tue, Feb 19, 2013 at 5:44 PM, Pankaj Singh wrote: > Hey, > > Every things worked for me when I used your original templates and > following urls.py. > > As you can notice, I have used generic view as I did not have original > view function. > > Please share vi

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, Every things worked for me when I used your original templates and following urls.py. As you can notice, I have used generic view as I did not have original view function. Please share views.py because it's hard to help help without that. FYI, you can test reverse match by using django.cor

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
ya i have done it but error has occured again.. On Tue, Feb 19, 2013 at 5:04 PM, Pankaj Singh wrote: > Hey, > > I asked you to make changes in templates (i.e. home.html, about.html etc.) > and not urls.py. > > > Sincerely, > Pankaj Singh > http://about.me/psjinx > > > On Tue, Feb 19, 2013 at 4:5

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, I asked you to make changes in templates (i.e. home.html, about.html etc.) and not urls.py. Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 4:56 PM, Avnesh Shakya wrote: > hi pankaj, i have got again error same.. > if i change > > from django.conf.urls.defau

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi pankaj, i have got again error same.. if i change from django.conf.urls.defaults import * urlpatterns= patterns('myapp.views', url(r'^$','home',name="home"), url(r'^about/$','about',name="about"), url(r'^contact/$','contact',name="contact"), url(r'^contact/$','archive',n

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey Avnesh, In your templates you have written following lines homeaboutarchivecontact Change them to following, notice single quotes surrounding url pattern name homeaboutarchivecontact Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya wrote: >

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya wrote: > ya i have completed and i m just doing copy n paste from from tutorial but > there is no error but i m facing this error again n again... > https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902 > can i add my page for help.

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
ya i have completed and i m just doing copy n paste from from tutorial but there is no error but i m facing this error again n again... https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902 can i add my page for help. i need your help plz.. On Tue, Feb 19, 2013 at 3:39 PM, Thoma

Re: error in templates...

2013-02-19 Thread Thomas Weholt
It means you haven't added any url matching / in your urlconfig, but it's hard to give a good answer without a bit more information. Have you completed the django tutorial which explains how these things work? Thomas On Tue, Feb 19, 2013 at 11:04 AM, Avnesh Shakya wrote: > Hello, I'm stuck in te

error in templates...

2013-02-19 Thread Avnesh Shakya
Hello, I'm stuck in teplagte page. error is occuring here after runserver..error.. NoReverseMatch at / Reverse for '' with arguments '()' and keyword arguments '{}' not found. I can't figure out why I'm getting the error, plz tell me, i have totally confused here. thanks avnesh shak

Re: key error in templates - solved

2011-11-12 Thread Evan Reiser
I had the same thing happen to me and this was the only post I found on the internet that mentions it. Note to other people who have this problem: *Be careful passing instances of model objects into celery tasks since they get pickled and your FileField fields will probably be removed via pick

Re: key error in templates - solved

2010-06-16 Thread Kenneth Gonsalves
On Thursday 17 June 2010 10:02:20 Venkatraman S wrote: > > Once I repickled, the problem was solved > > Totally not related to your Q, but if you are using photos - try using > django-photologue. Its awsum! > was awesome - I do not think it is maintained now, I tried it with trunk and gave up a

Re: key error in templates - solved

2010-06-16 Thread Venkatraman S
On Thu, Jun 17, 2010 at 9:58 AM, Kenneth Gonsalves wrote: > solved - what had happened was that when I pickled the results, the model > in > question did not have a 'photo' field which I added subsequently to > pickling. > Once I repickled, the problem was solved > Totally not related to your Q,

Re: key error in templates - solved

2010-06-16 Thread Kenneth Gonsalves
On Thursday 17 June 2010 06:46:21 Kenneth Gonsalves wrote: > In my current project I am getting keyerror: photo where the photo does > not exist. This is running on latest trunk. The only difference between > the two sites is that in site where it is working, 'p' is a query set > passed from th

Re: key error in templates

2010-06-16 Thread Kenneth Gonsalves
On Thursday 17 June 2010 06:46:21 Kenneth Gonsalves wrote: > in many models with an imagefield called photo, I have this code in the > template: > > {% if p.photo %} > > > {% endif %} > > this has been working across many sites for years - and is working on a > par

key error in templates

2010-06-16 Thread Kenneth Gonsalves
hi, in many models with an imagefield called photo, I have this code in the template: {% if p.photo %} {% endif %} this has been working across many sites for years - and is working on a particular site running Revision: 12453. In my current project I am getting