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
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
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
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
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
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
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
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
>
>
>
>
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
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.
--~--~-~--~~
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
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
--~--~-~--~
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
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
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
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
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
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
18 matches
Mail list logo