stuck with tutorial 3 at - Write views that actually do something

2007-12-14 Thread haver

Hi All,

I started with django and went through 2.5 tutorials relatively
painless, but nevertheless I stuck on tutorial #3. I tried to modify
regular expression, but error getting more complecated.
help needed fixed the urls.py (my guess)
thanks,

Vadim

Error message:
Request Method: GET
Request URL: http://localhost:8000/polls/index.html

Using the URLconf defined in mysite.urls, Django tried these URL
patterns, in this order:

^polls/$
^polls/(?P\d+)/$
^polls/(?P\d+)/results/$
^polls/(?P\d+)/vote/$
The current URL, polls/index.html, didn't match any of these.

== settings.py 
(partial view)
ROOT_URLCONF = 'mysite.urls'

TEMPLATE_DIRS = (
"C:/Python2/Script/mysite/mytemplates"
)

=urls.py

from django.conf.urls.defaults import *

urlpatterns = patterns('',
(r'^polls/$', 'mysite.polls.views.index'),
(r'^polls/(?P\d+)/$', 'mysite.polls.views.detail'),
(r'^polls/(?P\d+)/results/$',
'mysite.polls.views.results'),
(r'^polls/(?P\d+)/vote/$', 'mysite.polls.views.vote'),
)
views.py=

from django.template import Context, loader
from mysite.polls.models import Poll
from django.http import HttpResponse

def index(request):
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
t = loader.get_template('polls/index.html')
c = Context({
'latest_poll_list': latest_poll_list,
})
return HttpResponse(t.render(c))
--~--~-~--~~~---~--~~
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 this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django/Python Positions in San Diego

2008-05-14 Thread Matthew Haver
Hello All,



I'm currently working with a company that has a social networking site with
some interesting features.  They are positioned to do very well in the near
future.  They are based in San Diego and are going to need 1-2 strong
Django/Python Developers with architect level experience and creative
vision.  They are flexible on the number of hours a week and what hours will
be worked but they eventually want to bring 1 or more developers on
permanently.  Interested parties need to be able to work onsite in San Diego
and without new or transferred sponsorship.  Please let me know if you
interested or can recommend someone that may be interested.



Respectfully,



Matthew Haver CIR ACIR CDR
Senior IT Recruiter
Yoh IT
Know greater talent (R)
10251 Vista Sorrento Parkway Suite 150
San Diego, CA 92121
858.622.9005 x228 Office
858.922.4484 Mobile

858.922.9048 Fax

*Click Here to see my LinkedIn Profile - Send me an Invitation and we can
Connect <http://www.linkedin.com/in/matthewhaver>*

Remember when your career dreams were limitless?  They can be again when you
work with Yoh.  Visit yoh.com for current career
opportunities.<http://yoh.com/nr/yoh/includes/job_search.asp>

--~--~-~--~~~---~--~~
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 this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---