Showing posts with label django. Show all posts
Showing posts with label django. Show all posts
Monday, September 08, 2008
Sunday, February 25, 2007
django stuff
(Mind you I'm just starting with django, so correct me if I'm wrong. Heck, if I'm wrong, correct me anyways :)
I was working on an app of mine on a new machine, and installed django-0.95.1. Pulling my code of subversion, I ran into a problem. In urls.py, I would do something like this:
Within urlpatterns I'd have something like this:
Which worked fine, until today. Now I'd get:
'function' object has no attribute 'rindex'
I finally figured out the problem was in the way I was calling some_func.
The way I fixed it was removing the line that imported some_func, and reworking the urlpatterns entry to read:
I was working on an app of mine on a new machine, and installed django-0.95.1. Pulling my code of subversion, I ran into a problem. In urls.py, I would do something like this:
from myapp.views import some_func Within urlpatterns I'd have something like this:
urlpatterns = patterns('',
(r'^$', some_func)
)Which worked fine, until today. Now I'd get:
'function' object has no attribute 'rindex'
I finally figured out the problem was in the way I was calling some_func.
The way I fixed it was removing the line that imported some_func, and reworking the urlpatterns entry to read:
urlpatterns = patterns('',
(r'^$', 'myapp.views.some_func')
)
Subscribe to:
Posts (Atom)
Mozilla and hypocrisy
Right, but what about the experiences that Mozilla chooses to default for users like switching to Yahoo and making that the default upon ...
-
via VMware blog
-
Intrusion Detection with Tripwire : "Do this by adding a comma after the severity= line and putting emailto= on the next line, followed...
-
Right, but what about the experiences that Mozilla chooses to default for users like switching to Yahoo and making that the default upon ...