On 7/26/07, vida <[EMAIL PROTECTED]> wrote:
> I get a UnicodeDecodedError if I try to include any of these acuted-
> characters in my templates. It's fine if they come from the database
> (unicode) but not if they are part of the markup.
> >From what I read (and tried), changing
I get a UnicodeDecodedError if I try to include any of these acuted-
characters in my templates. It's fine if they come from the database
(unicode) but not if they are part of the markup.
>From what I read (and tried), changing settings.DEFAULT_CHARSET and/or
settings.LANGUAGE_CODE doesn't/won't
I am wondering how you can use args captured from your urls.py in a
feed class
example
urls.py
(r'^feeds/(?P.*)/(?P.*)/$',
'django.contrib.syndication.views.feed',{'feed_dict': feeds}),
I then want to use myarg in my subclass of Feeds to do filtering on
the objects for the feed.
Thanks
hi oggie,
On Jul 26, 3:39 am, oggie rob <[EMAIL PROTECTED]> wrote:
> Re: TortoiseSVN, take a look athttp://tortoisesvn.net/node/87
> Short story - unless you can get your admin to change your firewall,
> you can't use svn since "code" doesn't respond to https, no matter
> which platform you are
On 7/25/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote:
> I realized a new way to extend user models, it is simpler than official
> get_profile approach of django[1] as there is only one model to work with,
> and relationships are kept on the right model, and gives a less hacky feel
> than
Hi,
On 7/26/07, Patrick Anderson <[EMAIL PROTECTED]> wrote:
> Make the m2m relation optional using (null = True, blank = True) in your
> model
This is the case.
Greetings
Kai
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Wed, 25 Jul 2007 18:39:03 -0500, James Bennett wrote:
> On 7/25/07, Patrick Anderson <[EMAIL PROTECTED]> wrote:
>> Anyway, why not reset password for a logged-in user only? Maybe I've
>> look at the code too briefly, and there might be a reason for iterating
>> through users_cache, but that
Hi,
I realized a new way to extend user models, it is simpler than official
get_profile approach of django[1] as there is only one model to work with,
and relationships are kept on the right model, and gives a less hacky feel
than "replaces_module" method[2].
User.add_to_class("openid",
On 7/25/07, Patrick Anderson <[EMAIL PROTECTED]> wrote:
> Anyway, why not reset password for a logged-in user only? Maybe I've look
> at the code too briefly, and there might be a reason for iterating
> through users_cache, but that approach sounds safer to me.
Since the form accepts an email
I think the default value for {{ form }} is {{ form.as_table }}, so
perhaps it is safe to just use the default {{ form }} within a
table element:
{{ form }}
As for this error, it looks like the server didnt finished serving a request
and crashed. Maybe upgrading Python and a couple of
On Wed, 25 Jul 2007 22:47:05 +, Patrick Anderson wrote:
> Today when trying to add 'reset password' feature into my project, I
> noticed that the PasswordResetForm() 'save' method resets passwords for
> all cached users.
>
> I have been testing the site with various users logged in, and
On Thu, 26 Jul 2007 00:11:59 +0200, Kai Kuehne wrote:
> Unfortunately I cannot keep the relation between Entry and Image because
> I get an weird error (see #4633) if the m2m field is None.
>
> So.. is there another way to just show a list of models on an edit page
> of another model without
Today when trying to add 'reset password' feature into my project, I
noticed that the PasswordResetForm() 'save' method resets passwords for
all cached users.
I have been testing the site with various users logged in, and when I
tried to reset my password from within my public site, I
Unfortunately I cannot keep the relation between Entry and Image
because I get an weird error (see #4633) if the m2m field is None.
So.. is there another way to just show a list of models on an edit
page of another model without having to do a relation between
them?
Thanks in advance.
Kai
I'm having the same exact problem. Please keep us posted if you get
anywhere.
So far I've tried just about every variation I could think of based on
Jeff Croft's tutorial, the Django page in the Dreamhost wiki, and the
Django docs on FastCGI.
I can't even get the FastCGI hello world example to
Eric,
It seems I jumped to conclusions too quickly. I'm finding that
{{ form.as_table }}, {{ form.as_ul }} and {{ form.as_p }} cause the
server to error. The page is still served, but the following is in the
terminal where the development server is running:
Traceback (most recent call last):
On 25 Lip, 21:38, Matt <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> Unfortunately neither of those seem to do anything - the template
> seems to just skip over it. I first tried with the 0.96 release, and I
> have updated to the SVN version with the same result.
>
> Any idea what I'm doing wrong?
No
...it can really be that easy. Thanks Doug. :)
--~--~-~--~~~---~--~~
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
Try this:
TEMPLATE_CONTEXT_PROCESSORS = (
"satchmo.shop.context_processors.settings",
)
Note that ("") becomes "" - a string rather than a tuple. You need
("",) - an comma at the end for a single-element tuple.
This will show you why it's taking the first letter:
for x in 'abc':
print
The site http://www.instantdjango.com has a download (self-extracting
exe) that unzips to a complete Python 25 installation. Unzip to a temp
folder then Python25/site-packages/django has version .97 pre ready
to copy to your Python dir
Not clear how often its is updated.
Karl
On Jul 25,
Hi guys!
I'm wanting to implement what you can see at the django-tagging wiki
page: a property interface to an object's tags.
I got this working on my blog, but surprisingly I seem unable to get
this working now.
In my model definition, I have the following, beside other stuff:
def
Re: TortoiseSVN, take a look at http://tortoisesvn.net/node/87
Short story - unless you can get your admin to change your firewall,
you can't use svn since "code" doesn't respond to https, no matter
which platform you are using.
-rob
On Jul 22, 8:20 pm, james_027 <[EMAIL PROTECTED]> wrote:
>
Hi Eric,
Unfortunately neither of those seem to do anything - the template
seems to just skip over it. I first tried with the 0.96 release, and I
have updated to the SVN version with the same result.
Any idea what I'm doing wrong?
Thanks,
Matt.
On Jul 25, 6:55 pm, "[EMAIL PROTECTED]" <[EMAIL
I'm trying to get Satchmo working.
I can get it to create its database, and it seems to function until I
try to bring up its admin in my browser
Browsing to loalhost/admin brings up a page
ValueError at /admin/
Empty module name
The code at the error is in django/template/context.py
Often times SVN has trouble getting through corporate firewalls, could
that be the issue?
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi James,
> james_027 wrote:
> > is there an easy to get the latest version of django in winxp?
You could install the windows version of svn which
can be found here:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91=91=74
Works great for me.
Kai
On Wed, Jul 25, 2007 at 07:51:59PM +0100, Gerry Steele wrote:
> james_027 wrote:
> > I would like to use the latest django version. i am trying to use
> > tortoise SVN to get the latest version, but iam always getting this
> > error
> >
> > Error * REPORT request failed on
Might you have better luck using a unix environment on windows like
cygwin. This pretty much uses all the same commands that everyone else
on linux uses and thus might give better results.
james_027 wrote:
> Hi,
>
> I would like to use the latest django version. i am trying to use
> tortoise
On 7/25/07, Nathan Ostgard <[EMAIL PROTECTED]> wrote:
> What import are you aliasing as _?
Nothing, because I believed it is globally available and no import is
neccessary.
It was probably true before swap to UNICODE. And on the top of it, I
got somehow deranged and assumed that _() function
for free movies that aren't on dvd yet go to saurav.co.uk and make an
account. and in the referal box put macsrck.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
Thanks a lot for the feedback everyone.
I have come up a perfect setup and folder structure (at least
perfect for my needs) that will allow me to work on generic apps and
project specific apps efficiently and just wanted to share it with
everyone in case it can save a anyone a headache.
YML:
OK -- disregard my last post, that was wrong, too, and actually breaks
things worse.
I need to work some more on this, and try to replicate your error.
Could you try downloading again, and trying things out from a "fresh"
environment?
Thanks again,
-cjlesh
On Jul 24, 9:48 pm, cjl
Hello,
{{ form.as_ul }} or {{ form.as_table }}, etc, should work for this
purpose.
Hope that helps,
Eric
Matt wrote:
> Hello group,
>
> I'm reasonably new to Django andconfused over how to implement generic
> views for CRUD operations, specifically with respect to newforms. I'm
> using 0.96
Hi Justin,
On 7/25/07, Justin Lilly <[EMAIL PROTECTED]> wrote:
> I'm with Baxter. Tag your images and then just include an image of tag X
> along with the story with a similar tag.
>
> Not sure how this might interact with specific images going with specific
> articles, but its not a bad
Hello group,
I'm reasonably new to Django andconfused over how to implement generic
views for CRUD operations, specifically with respect to newforms. I'm
using 0.96 for the time being, but I'm happy to upgrade to the
development version if required.
What I'm trying to acheive is an automatic
I'm with Baxter. Tag your images and then just include an image of tag X
along with the story with a similar tag.
Not sure how this might interact with specific images going with specific
articles, but its not a bad generalized solution, I think.
On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Doh! As I stated and figured it would be... a total noob mistake.
Thanks Nathan - I will look even harder before posting next time.
D.
On Jul 25, 12:37 pm, Nathan Ostgard <[EMAIL PROTECTED]> wrote:
> As the error says, you're using self.question in the Choice model --
> it should be
I said to hell with it and put all the related images in a slideshow
alongside the entry.
On Jul 25, 11:05 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote:
> Hi Patrick,
>
> On 7/25/07, Patrick <[EMAIL PROTECTED]> wrote:
>
> > What I did in one of my projects is to use a JS editor (at this point I
>
What import are you aliasing as _?
You have three options for gettext calls:
- ugettext, which translates as soon as it's *called*.
- ugettext_lazy, which does not translate until the attribute is
*accessed*.
- ugettext_noop, which translates at the last possible moment, such as
when the value
As the error says, you're using self.question in the Choice model --
it should be self.choice.
e.g., change this:
class Choice(models.Model):
# ...
def __unicode__(self):
return self.question
to this:
class Choice(models.Model):
# ...
def __unicode__(self):
return self.choice
Hi Patrick,
On 7/25/07, Patrick <[EMAIL PROTECTED]> wrote:
> What I did in one of my projects is to use a JS editor (at this point I
> opted for WYM Editor), which has a function to insert image tags if you
> give it a URL. I think that is the most-widely used approach.
I don't like such
John,
And how would I go about installing the 'contrib.thumbnails.7.patch'?
Would I use svn?
On Jul 25, 9:43 am, Patrick <[EMAIL PROTECTED]> wrote:
> On Tue, 24 Jul 2007 20:21:45 -0500, John Shaffer wrote:
> > You might want to look at #4115, which adds a thumbnail filter:
>
Thanks, Russ! Your solution worked fine, however, the format that I
will ultimately be given is different than the one I gave you, with it
being mostly dictionaries, rather than lists. Thankfully, I was able
to figure out the loops enough to get the structure nearly correct,
except for one
> I don't have any idea what is the
> testing all about.
James, you might want to take a look at Dive Into Python [1] as a
starting place. It has a couple good chapters on testing and test
driven development.
Bob
[1] http://diveintopython.org/unit_testing/index.html
Hello,
Apologies for a noob question/problem. I have searched the forum and
can't find anyone having the same issue. I am working through the
tutorial following everything exactly as written. (http://
www.djangoproject.com/documentation/tutorial01/)
Everything works as expected until I get to
>>responsable = models.ForeignKey('Personne', ...)
>>
>> if you need to forward-reference a model that hasn't yet been
>> defined.
>
> thanks for the anwser.
> I dont saw this particular sentence.
The magic is in the phrase "If you need to create a relationship
on a model that has not yet
Really good stuff, Siddhi
Do more!!
--~--~-~--~~~---~--~~
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
On Tue, 24 Jul 2007 20:21:45 -0500, John Shaffer wrote:
> You might want to look at #4115, which adds a thumbnail filter:
> http://code.djangoproject.com/ticket/4115
>
> Using this, instead of making multiple copies of the image when you
> upload it, you simply upload the original
On Wed, 25 Jul 2007 01:43:53 +0200, Kai Kuehne wrote:
> Hi list!
> In the last past hours I've been thinking about how to include images
> into my django blog application.
>
> At first, I added a new field to my "Entry" django model and named it
> "image". This worked but I decided that (maybe)
>
>responsable = models.ForeignKey('Personne', ...)
>
> if you need to forward-reference a model that hasn't yet been
> defined.
thanks for the anwser.
I dont saw this particular sentence.
But now I have this message:
directory.unite: Reverse query name for field 'responsable' clashes
with
> I like to do something like that in a app models.py:
>
>
> class Unite(models.Model):
> responsable = models.ForeignKey(Personne, verbose_name='The
> Chief', blank=True)
> ...
>
> class Personne(models.Model):
> unite = models.ForeignKey(Unite,null=True)
>
>
>
> And I
I like to do something like that in a app models.py:
class Unite(models.Model):
responsable = models.ForeignKey(Personne, verbose_name='The
Chief', blank=True)
...
class Personne(models.Model):
unite = models.ForeignKey(Unite,null=True)
And I have this error message in
That's a valuable info. To me it seemed some Django-standard and those
things are supposed to be well thought through, therefore we also
broke our heads over it a couple times ...
Thanks for the info.
Wolfram
On 7/25/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 7/24/07, Sebastian
HI !
In model I have :
from django.db import models
# Create your models here.
class User(models.Model):
User = models.CharField(maxlength=200)
Pasw = models.CharField(maxlength=16)
def __unicode__(self):
return self.question
def was_published_today(self):
return
On Wed, 25 Jul 2007 15:33:19 +0200, Horst Gutmann <[EMAIL PROTECTED]> wrote:
>
> Marco A. wrote:
>> HI !
>> In model I have :
>>
>> from django.db import models
>>
>> # Create your models here.
>> class User(models.Model):
>> User = models.CharField(maxlength=200)
>> Pasw =
Marco A. wrote:
> HI !
> In model I have :
>
> from django.db import models
>
> # Create your models here.
> class User(models.Model):
> User = models.CharField(maxlength=200)
> Pasw = models.CharField(maxlength=16)
> def __unicode__(self):
> return self.question
> def
On 7/24/07, Sebastian Macias <[EMAIL PROTECTED]> wrote:
> My dilemma is... what is the point of having projects and apps if the
> applications created for my project won't be portable in other
> projects (becase the namespaces will always start with the project
> name). I can't just copy and app
On 7/25/07, omat <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply...
>
> This is a simple application that highlights source code of a remote
> resource, so I don't need sessions either.
OK, but you've still not set TEMPLATE_CONTEXT_PROCESSORS. This
setting is used any time RequestContext is
To clarify, in urlpatterns:
(r'^$', 'django.views.generic.simple.direct_to_template', {'template':
'index.html'})
causes the mentioned problem, but
(r'^$', 'highlighter.views.index'),
works fine, where "highlighter.views.index" is
def index(request):
return
Lovely tutorial - now all we need are newforms ... etc as these are really
useful ways to learn
On 7/25/07, Siddhi <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I've create a tutorial screencast for Django. It runs for about 20
> minutes and demonstrates creating a simple wiki app in Django. I've
>
On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>
> Nimrod,
>
> NAA> On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
> >> >> Yes, I read carefuly your question and thought the answer was
> >> >> straighforward. I don't understand why you don't want decorators,
> but
Thanks for the reply...
This is a simple application that highlights source code of a remote
resource, so I don't need sessions either.
After removing the sessions too, I end-up with a minimal settings
file:
http://dpaste.com/15278/
Now, django raises an AttributeError and complains that:
Hi,
I've create a tutorial screencast for Django. It runs for about 20
minutes and demonstrates creating a simple wiki app in Django. I've
uploaded it to showmedo. Check it out here -
http://www.showmedo.com/videos/video?name=110=110
Any feedback would be welcome.
--
Siddharta Govindaraj
You know? you are superb!!!
Arnold
On Jul 25, 7:19 am, "Wolfram Kriesing" <[EMAIL PROTECTED]>
wrote:
> and i forgot, this allows you to access the property "name" of the
> object anywhere seemlessly, in the template, in the code, etc. this is
> pretty neat imho :-)
>
> wolfram
>
> On 7/25/07,
the mentioned "local_config.py.default" is ONLY a template for
copying, its never really used.
wolfram
On 7/25/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote:
> we are doing the following pretty successfully:
> inside settings.py
> --
>
> import local_config
>
> DEBUG =
we are doing the following pretty successfully:
inside settings.py
--
import local_config
DEBUG = local_config.DEBUG
TEMPLATE_DEBUG = local_config.DEBUG
LOG_LEVEL = local_config.LOG_LEVEL
DATABASE_ENGINE = local_config.DATABASE_ENGINE
DATABASE_NAME =
and i forgot, this allows you to access the property "name" of the
object anywhere seemlessly, in the template, in the code, etc. this is
pretty neat imho :-)
wolfram
On 7/25/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote:
> after some investigation and help from the list i took this approach
>
after some investigation and help from the list i took this approach
and have to say it works great:
from django.utils import translation
@property
def name(self):
if translation.get_language()=="en":
return self.name_en
else:
return self.name_de
I am implementing a multi-lingual product catalog website with Django.
It is in English (default), Trad. Chinese and Simp. Chinese. I want to
let user to choose the language they want, and the system display the
corresponding product name (in the selected language).
The product class is
Hi all,
I'm trying to embed login form into each page. I implemented it using
new forms as inclusion tag. Form model looks like:
...
sf_name = forms.CharField(required=True, label=_('Username:'),
max_length=30, widget=forms.TextInput(attrs={'class':'wsu-login-edit'}))
...
If I change
Nimrod,
NAA> On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>> >> Yes, I read carefuly your question and thought the answer was
>> >> straighforward. I don't understand why you don't want decorators, but
>> >> you
>> >> could just check the decorator definition to read what
I really enjoy django regex-based urlpatterns, but I ran onto the
trouble how to realize such functionality, site uses a lot of domain
name URL dispatch. Some thing like this:
blogs.mysite.com/PATH
wikis.mysite.com/PATH
tags.mysite.com/PATH
And so on.
How to make such in django, need something
Hey again,
I don't want to abuse the group, but I'm stumped again.
I'm trying to render a form, but the (supposedly) auto-generated form
fields aren't showing up.
Here's part of register.html:
UserName: {{ form.username }}
Email: {{ form.email }}
Password: {{ form.password1 }}
Password
Hello Andrey,
> NAA> On 7/25/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
> >> Yes, I read carefuly your question and thought the answer was
> >> straighforward. I don't understand why you don't want decorators, but
> you
> >> could just check the decorator definition to read what
Works!
New to Django/python, and you just solved an hour's worth of head
trauma.
Thanks Russ!
On Jul 25, 2:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > def profile(request):
> > template_name =
On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Oops, that should read "Cannot resolve keyword 'playlist_aggreation'
> into field", even though I am messing with song aggregations and
> playlist aggregations :)
Apologies - I got tied up in underscores :-)
Try:
On 7/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> def profile(request):
> template_name = 'user_profile.html'
> obj_list = User.get_profile()
...
> unbound method get_profile() must be called with User instance as
> first argument (got nothing instead)
Look closer at
Oops, that should read "Cannot resolve keyword 'playlist_aggreation'
into field", even though I am messing with song aggregations and
playlist aggregations :)
On Jul 24, 11:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thanks!
>
> All of your workarounds involving filter didn't work,
Thanks!
All of your workarounds involving filter didn't work, erroring with
"Cannot resolve keyword 'song_aggregation' into field", which makes
sense since I really wanted to go the other way around, I think.
Anyways, after some munging with 'extra', as per your suggestion, I
got it working!
> Thanks. Finally I've used PaginatorPag from your link (with some
> changes) and
> Sortable Headers (from djangosnippets) with some changes too, newforms
> to create search form and generic list.
> Changes I had to do were necessary because each of those components -
> sort, filter and
Hey all,
I feel like I may be missing a small thing, but here it is.
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib import auth
def profile(request):
template_name = 'user_profile.html'
obj_list =
81 matches
Mail list logo