Re: running into problems with polls tutorial

2009-06-21 Thread tekion
Thanks. I was able to locate the problem in views.py to this line: "from django.core.unresolvers import reverse;" to: "from django.core.urlresolvers import reverse;" This fixed it. On Jun 21, 4:06 pm, Daniel Roseman wrote: > On Jun 21, 1:38 pm, tekion wrote: > &g

Re: include behavior

2009-06-21 Thread tekion
otes works, because > you probably allready imported it, e.g. to use admin.autodiscover(). > That's the reason why play_django without quote doesn't work - that > module is not known to the code, putting it into quotes puts django > into the responsibility to load the appropri

running into problems with polls tutorial

2009-06-21 Thread tekion
Hi, I am getting the below error: ViewDoesNotExist at /polls/ Could not import play_django.polls.views. Error was: No module named unresolvers Request Method: GET Request URL:http://127.0.0.1:8000/polls/ Exception Type: ViewDoesNotExist Exception Value: Could not import play

include behavior

2009-06-20 Thread tekion
All, I noticed that putting single quote around include argument makes a different, for example: (r'^admin/', include(admin.site.urls)), (r'^polls/', include('play_django.polls.urls')), works. Where as: (r'^admin/', include(admin.site.urls)), (r'^polls/', include(play_django.polls.urls)), yi

URL conf question .....

2009-05-26 Thread tekion
Part 3 tutorial from django site, suggest the below method of optimizing urls. Change from: 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'^po

getting error with admin logout

2009-05-24 Thread tekion
all, I am getting the following error when trying to logout from the admin page: Exception Type: ValueError Exception Value: invalid literal for int() with base 10: 'admin/logout' I search google and their is a patch for it: http://code.djangoproject.com/ticket/10061 How do I apply the

Re: suggestion on querying external database

2009-05-11 Thread tekion
Thanks for the update. This is very useful information. On May 10, 9:41 pm, Karen Tracey wrote: > On Sun, May 10, 2009 at 8:45 PM, tekion wrote: > > > Yes. I saw this link. My impression on first read is that it imports > > the database into Django's database. I am not

Re: suggestion on querying external database

2009-05-10 Thread tekion
bases/ > It describes how to create models for your existing databases. However, it > wont stop you being able to make writes with the django ORM. > > Dougal > > --- > Dougal Matthews - @d0ugalhttp://www.dougalmatthews.com/ > > 2009/5/10 tekion > > > >

Re: multiple application under a project and handling of tables

2009-05-10 Thread tekion
Cool. Thanks. This is what I am looking for. On May 10, 5:05 pm, Daniel Roseman wrote: > On May 10, 10:02 pm, tekion wrote: > > > Hi, > > Given a scenarios where you have multiple applications under a > > project.  You want to manage tables associated with one a

multiple application under a project and handling of tables

2009-05-10 Thread tekion
Hi, Given a scenarios where you have multiple applications under a project. You want to manage tables associated with one application only, for example deleting data in tables associated with one application only. Is there a way to manage that via Django? Thanks. --~--~-~--~~

suggestion on querying external database

2009-05-10 Thread tekion
Hi, I have an application which update MySQL database. It has aproximately 5 million rows. I am new to django, I am thinking of using django to generate report using the database as the data source. >From what I have seen of the tutorial, you create a model. The database model, would create some

Re: getting no such table error

2009-05-02 Thread tekion
wrote: > On 5/2/2009 6:02 AM, tekion wrote: > > > Exception Type: OperationalError at /play_django/page/start/save/ > > Exception Value: no such table: mywiki_page_tags > > Did you log into SQLite and see if that table exists? > > -- > George --~--~-~--~

getting no such table error

2009-05-02 Thread tekion
Folks, I am following a tutorial. I am getting the following error even after I ran manage.py syncdb: Traceback: File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "C:\Docume

Re: using django 1.1 beta and having problem with cleaned_data attribute

2009-05-02 Thread tekion
Thanks again. It works after the the second underscore. On Apr 26, 8:18 pm, Alex Gaynor wrote: > On Sun, Apr 26, 2009 at 8:17 PM, tekion wrote: > > > Doh!!!, I can't believe I missed that.  Thanks that work. > > > I ran into another issue with Page.objects.filter, n

Re: using django 1.1 beta and having problem with cleaned_data attribute

2009-04-26 Thread tekion
ns" is deprecated in Django 1.1? Thanks. On Apr 26, 7:39 pm, Alex Gaynor wrote: > On Sun, Apr 26, 2009 at 7:37 PM, tekion wrote: > > > All, > > I am trying to follow a tutorial,  below is the code snippet: > > # Create your views here. > > from play_django.myw

using django 1.1 beta and having problem with cleaned_data attribute

2009-04-26 Thread tekion
All, I am trying to follow a tutorial, below is the code snippet: # Create your views here. from play_django.mywiki.models import Page from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django import forms import markdown class SearchForm(forms.Form

Re: could not load custom filter

2009-04-26 Thread tekion
Thanks all for the help. I ran across a reference which stated that I should restart the django server inorder for the package to be pickup. This works. On Apr 26, 12:21 pm, Malcolm Tredinnick wrote: > On Sun, 2009-04-26 at 06:09 -0700, tekion wrote: > > Hi, > > I have tried to l

could not load custom filter

2009-04-26 Thread tekion
Hi, I have tried to load my customer filter, but getting an error which indicates it's not in the path. I saw a similar post, one of the suggested things to check was to make sure the project was listed in the setting.py file. My project is listed in the setting.py file under the install_app. A