>
> On Mar 1, 2:45 pm, Adam Yee <adamj...@gmail.com> wrote:
>
>
>
> > When in doubt, always refer to the docs
> > -http://docs.djangoproject.com/en/dev/ref/models/options/
> > There may be something small overlooked.
>
> > You shouldn't have to re-
When in doubt, always refer to the docs -
http://docs.djangoproject.com/en/dev/ref/models/options/
There may be something small overlooked.
You shouldn't have to re-sync the database to use verbose_name. It's
just a hook to be used for example, in the model's meta options. Give
us more detail
Just started using haystack. I've created an extended search form of
SearchForm and have it located at /mysite/search/search_forms.py
The import error happens in haystack.urls
Traceback:
File "/home/adam/stldata-djangosvn-2.6/lib/python2.6/site-packages/
django/core/handlers/base.py" in
On Jul 30, 7:29 pm, Graham Dumpleton
wrote:
> If you are using mod_wsgi then you definitely do not need
> FORCE_SCRIPT_NAME as mod_wsgi does the correct think in respect of
> setting up SCRIPT_NAME/PATH_INFO. The only time it might not be right
> with mod_wsgi is if
Use the model's verbose field name
http://docs.djangoproject.com/en/dev/topics/db/models/#id2
On Jul 29, 3:55 pm, When ideas fail wrote:
> Is there a way i can change the label for a field in the model form?
>
> On 29 July, 21:44, When ideas fail
On Apr 18, 3:23 pm, google torp wrote:
> Hi.
> Normally, what you are doing would work, initializing the form
> with request.POST. However the way you have constructed
> your form, you need have a poll object as well. Not only that
> but it should of cause be the poll that
I've been struggling with dynamically creating and validating forms.
So far I've been able to create the forms using a ModelChoiceField.
see below - models, forms, views, template
http://dpaste.com/hold/35292/
After submitting the votes, in the if request.method=="POST" hook, I
can't figure out
Can't get the forms.RadioSelect widget to render. I'm using svn
10559, I've looked over forms/widgets.py, but I don't know... I'm
able to use forms.CheckboxSelect just fine.
Is it Firefox giving me issues? What's going on here?
#forms.py
class PollForm(forms.Form):
def make_fields(self,
On Mar 25, 6:27 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee <adamj...@gmail.com> wrote:
> > So, I now pass the bound form, but still no validation error messages
> > show up. More importantly, is_valid is still returnin
On Mar 23, 8:30 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee <adamj...@gmail.com> wrote:
>
> > I'm using Django's builtin AuthenticationForm
>
> > Here's my login view:http://dpaste.com/18110/
>
> > Form subm
On Mar 23, 8:30 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee <adamj...@gmail.com> wrote:
>
> > I'm using Django's builtin AuthenticationForm
>
> > Here's my login view:http://dpaste.com/18110/
>
> > Form subm
I'm using Django's builtin AuthenticationForm
Here's my login view: http://dpaste.com/18110/
Form submittal (not empty or empty fields) takes me back to the login
page with 'Did not login'. My debugging print statement isn't showing
up in the terminal, so is_valid is somehow returning false.
c[key] = value
response = HttpResponse(t.render(c), mimetype=mimetype)
populate_xheaders(request, response, model, getattr(obj,
obj._meta.pk.name))
return response
>
> On Jan 19, 7:17 am, Adam Yee <adamj...@gmail.com> wrote:
>
>
>
> > Success. I
Using Django version 1.1 pre-alpha SVN-9805
On Feb 4, 4:44 pm, Adam Yee <adamj...@gmail.com> wrote:
> I'm experiencing Change password / Logout redirect errors while trying
> to logout or change the password.
>
> The 404 messages show below:
> Request Method: GET
&
I'm experiencing Change password / Logout redirect errors while trying
to logout or change the password.
The 404 messages show below:
Request Method: GET
Request URL:http://127.0.0.1/admin/admin/logout/
It's adding in an extra ^admin/
Same for Change password:
Request URL:
On Feb 3, 9:49 am, Joshua Russo wrote:
> I'm working through the tutorials and have encountered a strange
> problem. So far everything works but Python doesn't acknowledge my
> base site as a package. So everywhere that you see a reference like
> "mysite.poll" I need
, please share other solutions.
On Jan 18, 8:13 pm, Adam Yee <adamj...@gmail.com> wrote:
> On Jan 18, 7:39 am, ptone <pres...@ptone.com> wrote:
>
>
>
>
>
> > In the tutorial, the form action in the poll_detail template is
> > hardcoded to "/polls/..."
URL if you mount your site at /, but
> I think most browsers and servers won't care about that extra /
>
> I welcome anyone pointing out a better way to make the form action
> more "portable" in projects...
>
> -Preston
>
> On Jan 17, 7:53 pm, Adam Yee <adamj.
On Jan 18, 3:44 am, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:
> On Jan 18, 8:46 pm, Adam Yee <adamj...@gmail.com> wrote:
>
>
>
>
>
> > On Jan 17, 8:36 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
> > wrote:
>
> >
On Jan 17, 8:36 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> On Jan 18, 2:53 pm, Adam Yee <adamj...@gmail.com> wrote:
>
> > It was a slam dunk for completing the tutorial in the development
> > server, but I can't figure out this issue I'm having wi
It was a slam dunk for completing the tutorial in the development
server, but I can't figure out this issue I'm having with the generic
views while using my apache server. I'm unable to get the vote view
to redirect correctly.
My apache error seen here with both urls.py and views.py. The
Maybe try a all(), filter(stuff) or get(thing)?
lightbox.lightboxphotograph_set.all()
Does that yield anything?
On Jan 15, 10:51 am, JonUK wrote:
> lightbox.lightboxphotograph_set yields:
>
> TypeError: "'RelatedManager' object is not iterable"
>
> :(
On Jan 8, 7:49 am, Evan wrote:
> This is probably the most basic question in the history of the group.
> Still, I googled the error message both in this group and in google at
> large and went through the first 5 pages, and didn't see anything.
>
> i installed django a
Hi,
Going through chapter 6 in the djangobook. Using 1.1 SVN-9368. I
think this chapter might be missing a step or two, or there's
something I'm overlooking.
In both the django development server and my apache server I can't
seem to show the created models 'Publiser, Author and Books'. All
008-11-16 at 17:41 -0800, Adam Yee wrote:
>
> [...]
>
> Good debugging info snipped.
>
> > When enteringhttp://localhost:8080/testproject/timeI'm reading this
> > in the Apache error log:
>
> > [Sun Nov 16 17:27:37 2008] [info] mod_wsgi (pid=1768): Create
&g
I'm a new user to Django, hi everyone.
My system:
Windows XP
Python 2.5
Apache 2.2
>>configured for mod_wsgi
MySQL, MySQLdb #Irrelevant at this point
My issue:
Having trouble getting the through the first example. Basically, when
directing the browser to '.../time/' I'm still at the 'It
26 matches
Mail list logo