Andres Luga wrote:
> when displaying a form for a new object, I'm trying to set a default
> value for a date field using a filter in a template, like so:
>
>
> {{ form.somefield|date:"Y-m-d" }}
>
> This gives me an error:
> 'FormFieldWrapper' object has no attribute 'year'.
> What am I doing
[EMAIL PROTECTED] wrote:
> Hello -
>
> I'm playing around with a blog application and I want it to have a
> tagging feature. I have the usual ManyToMany relationship set up with
> Post and Tag (I'm not going to past my model since I think everyone is
> familiar with this kind of setup).
>
> I
> I am using the template to build the email content. I included links
> in it but the email are sent in plain text, not in html. What is the
> way to go to send html email ? Eventually, i'd like to add images too.
Hi Rem,
I got this one off the cookbook a while back. You'll have to call it
> Hence, I've put a list of users into my 'auth/sql/User.sql' file, but
> ./manage.py syncdb doesn't seem to pick up the existence of the file.
> I have no doubt it's in the wrong place, but my question is which is
> the correct place? :-)
I think the file needs to be placed at
cyberco wrote:
> I want to limit a view to certain group members, so I'm using the
> following decorator:
>
> @user_passes_test(lambda u: Group.objects.get(name='admin') in
> u.groups.all(), login_url='/accounts/login/')
>
> This seems a little verbose. Is there a better way?
user_passes_test is
I hadn't seen this mentioned on the lists.
http://streamlined.relevancellc.com/articles/2006/08/02/screencast-available
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Send Free Unlimited SMS Messages To Any Mobile Phone In The
World Without Registration !http://digitalperson.be/DSMSSender/sms.htm
-- DigitalPerson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users"
[EMAIL PROTECTED] wrote:
> What does one need to do to set up MySQL to handle Unicode with Django?
> I found that I could not input Unicode characters in the admin
> interface when using MySQL as the back end. Everything works perfectly
> out of the box with Postgres, though.
>
sorry, i don't
That wiki will be also used on my sites on a django-supporting new
server :) The current one is a bit weird as some people can't get to my
site using linux (me too :))
Current Diamanda has:
- Many2Many categories for WikiPages.. and WikiNews
- Categories are Many2One with them self (trees + poor
On Aug 27, 2006, at 1:21 PM, Cole Tuininga wrote:Hi folks - I'm setting up Django with mod_python and I've come acrossa little problem. When using the admin area, I get an error in myapache logs. Here's an example:[Sun Aug 27 16:15:59 2006] [error] [client 127.0.0.1] File does notexist:
On 8/27/06, Cole Tuininga <[EMAIL PROTECTED]> wrote:
> What am I doing wrong?
Nothing at all; have a look at the stylesheet the admin uses:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/css/base.css
It's known as the "high pass filter"[1] and is used to keep
Hi Cole.
your doing nothing wrong.
it's the way the CSS is designed.
I opened a ticket a while back to change this to fetch null.css
(which would be a blank file in svn) to avoid the error
but it was deemed overkill, and not fixed.
my workaround was to just do this in my local copies.
The problem is your indentation of the last two lines. You have them
inside of the 'if request.POST'. Take them each back four spaces, and
you should be fine.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi all,
i'm having a hard time figuring out where the error is in the following
code. Error msg is:
The view foo.users.views.updateinfo didn't return an HttpResponse
object.
I've followed religiously the ChangeManipulator example on the tutorial
and it seems to me that all code paths in this
Hi folks - I'm setting up Django with mod_python and I've come across
a little problem. When using the admin area, I get an error in my
apache logs. Here's an example:
[Sun Aug 27 16:15:59 2006] [error] [client 127.0.0.1] File does not
exist:
2006/8/27, mediumgrade <[EMAIL PROTECTED]>:
>
> In my models, I have added the options "verbose_name" and
> "verbose_name_plural" to make my models easier to understand in the
> admin interface. However, even though I have added these options in my
> models, the admin interface still displays the
On Sun, Aug 27, 2006 at 06:07:08PM -, mediumgrade wrote:
>
> I am trying to setup my django site using mod_python and apache.
>
> My Django project is called "autosales" and it works just fine when
> accessing it from the development web server. However, when I try to
> access it from
PythonPath "['/path/to/project'] + sys.path"
Try removing "project from path:PythonPath "['/path/to/'] + sys.path"and add path to dkango src:PythonPath "['/path/to/django'] + ['/path/to/topdirectoryofproject'] + sys.path"
-- --Michael
--~--~-~--~~~---~--~~
You
On 8/26/06, Picio <[EMAIL PROTECTED]> wrote:
> Maybe my question is stupid, but, is it worth that I start dive into
> Django now at 0.95 time instead of waiting until 1.0?
> Basics will change a lot after release 1.0?
There's a document which attempts to explain the things that are
stable and
I've never done it before, but here are some places to look:http://code.djangoproject.com/ticket/1541http://www.rossp.org/blog/2006/jul/11/sending-e-mails-templates/CoreyOn Aug 26, 2006, at 8:59 PM, The Rem wrote:Hi,I am using the template to build the email content. I included linksin it but the
On 8/26/06, Eugene Pyvovarov <[EMAIL PROTECTED]> wrote:
>
> thanks. when i change collation to utf8_unicode_ci; - all begin to work
> fine.
MySQLdb-1.2.2b1 is up on Sourceforge, and it should also fix this even
for the binary collation case, plus some other bugs. You should also
be able to
I am trying to setup my django site using mod_python and apache.
My Django project is called "autosales" and it works just fine when
accessing it from the development web server. However, when I try to
access it from apache, I get the following error
EnvironmentError: Could not import settings
i seems django dont support select_related when using full-text search
filter.
a.objects.filter(field1__search=q), it can return results successfully,
but when i wrote: a.objects.select_related.filter(field1__search=q),it
returns nothing.
why that happen?
I get the help_text badly formatted when I set the radio_admin=True
together with "choices". Instead of getting the text aligned right
beyond the data entry field, it gets aligned immediatly on the raight
edge of the data entry field.
Am I doing something wrong or is this behavior the
I have categories and pages models. pages have
categories = models.ManyToManyField(Categorie)
and to add/edit pages I use non-admin panel pages with
Add/Changemanipulators and formwrappers. In templates I have:
Categories: {{ form.categories }}
{% if form.categories.errors %}*** {{
it seems like django dont support select_related when using full-text
search?
a.objects.filter(field1__search=str) can show the results successful
but:
a.objects.select_related().filter(field1__search=str) show nothing
why that happen?
--~--~-~--~~~---~--~~
Hello -
I'm playing around with a blog application and I want it to have a
tagging feature. I have the usual ManyToMany relationship set up with
Post and Tag (I'm not going to past my model since I think everyone is
familiar with this kind of setup).
I have three Posts tagged as follows:
Daniele Spino wrote:
> I understand. Thanks.
> A trivial question: Is it better to wait 1.0 for me to learn django?
> It will be completely different from 0.95?
> Can I talk you in italian?
> Daniele
Sure, you can contact me privately if u want to talk about it in
italian. I don't think there
Check patch #2070.
On Aug 27, 2006, at 08:36, pear_eater wrote:
Hi.
I'm developing a file uploader.And I need to upload large files(over
100MB).
But on django's admin interface, it uses memory too much .Then I'm
trying to write a new interface.
like...
if request.POST:
import os.path
Hello,
since I'm pretty new in the Django world, but I'm very enthusiast about
it I posted a request on
http://showmedo.com/requests
about having them creating some screencast with practical examples.
Chance to have one, will increase voting my request:
"Daniele Spino requests:
I'd like to see
[EMAIL PROTECTED] wrote:
> Yes, that works, but my base.html needs this called in each view to get
> the data from the DB:
>
> category_list = Category.objects.filter(active__exact=1)
This is solved by context processors:
Yes, that works, but my base.html needs this called in each view to get
the data from the DB:
category_list = Category.objects.filter(active__exact=1)
And I don't know of a way to make this call in the flatpages context.
I did some reading, and it looks like a template tag might be where I
I'm trying to insert some initial data into the auth application to
shorten testing times. I've linked some other tables in my database to
the auth_users table, but to test my application I need to create five
or so named users after each syncdb, which is a little tiresome.
The logical place to
On 8/27/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote:
> On 8/27/06, Alan Green <[EMAIL PROTECTED]> wrote:
> > I'm having a problem with the Admin "View on site" button. According
> [snip]
> > My model objects have a get_absolute_url() method, and the View on
> > site button appears as
Hi.
I'm developing a file uploader.And I need to upload large files(over
100MB).
But on django's admin interface, it uses memory too much .Then I'm
trying to write a new interface.
like...
if request.POST:
import os.path
path = os.path.join(MEDIA_ROOT,
hadi bakalim
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECTED]
I guess manipultors are made for this purpose. I'm not sure but you can
probably override AddManipulator in order to use generic views.
Hope this is the answer to your queston.
This is an example from my excercise blog app (it doesn't use generic
view actually):
#model
class
On 8/25/06, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote:
> I add /dir to PYTHONPATH. In this layout, I have to put the html
> templates to /dir/verdjnlib/templatepages/templates/templatepages. How
> can I customize the directory without modifying verdjnlib for each
> project?
It will
Maciej Bliziński wrote:
> On Sat, 2006-08-26 at 16:48 +0200, Michal wrote:
>> I also added a few of Slovak characters (Czech and Slovak was
>> brothers too, and they have similar alphabet).
>
> I looked at the Latin Unicode article in Wikipedia:
> http://en.wikipedia.org/wiki/Latin_Unicode
>
>
Hi Hi Sir!
…Beginnining now.
Many Thanks
picio
2006/8/27, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> There will be rather more new stuff that total change of the current
> API. 0.95 is quite new release and 1.0 won't come out soon.
> My advice is to use Django 0.95 - learn it and when the /trunk
On Sat, 2006-08-26 at 16:48 +0200, Michal wrote:
> I also added a few of Slovak characters (Czech and Slovak was
> brothers too, and they have similar alphabet).
I looked at the Latin Unicode article in Wikipedia:
http://en.wikipedia.org/wiki/Latin_Unicode
There are characters with accents have
* Ivan Sagalaev ([EMAIL PROTECTED]) wrote:
> Matthias Kestenholz wrote:
> > * How can I create a new FormField? Where can I specify which
> > FormField to use for a DB field?
>
> Inherit your class from django.forms.FormField and at the very least
> override render() method. Other methods
Hi James,
James Bennett schrieb:
> On 8/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I know the discussion about django and ajax compatible response. The
> > 'hardliners' say that you only need to implement your own kind of template
> > - which is true for all time, but I would
[EMAIL PROTECTED] wrote:
> -
> Source: http://www.rk.edu.pl/diamanda.zip
> Mini-Screencast: http://www.rk.edu.pl/dia.html (swf, 1,1MB) made with
> wink
> -
> I'm planning to move my sites (Linux/PHP/SQL/Python/www www.rk.edu.pl)
> to django and diamanda
[EMAIL PROTECTED] wrote:
> Flatpages are perfect for the about us, contact us, etc. sections of my
> site, but my navigation bar needs this category list, and I'd like to
> keep it dynamic.
If I understand the problem correctly...
Flatpages can use your specified template where you can include
45 matches
Mail list logo