Hello,
I've created a Feed subclass to export a simple feed of news
http://paste.pocoo.org/show/248193/. As you can see (L45-46), the Feed
subclass' items() method returns the first 15 objects in
News.objects.order_by('-time'):
def items(self):
return News.objects.order_by('-time')
As mentioned in the IRC channel, the feed did indeed display two
items, but because it was invalid markup (based on W3) Safari didn't
show them properly.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django
On Aug 10, 1:34 am, Martin Tiršel wrote:
> Hello,
>
> I can do:
>
> {% for image in gallery.image_set.all %}
> ...
> {% endfor %}
>
> but my image model has:
> is_thumbnail = models.BooleanField()
>
> and I want to limit displaying only these images which have
> is_thumbnail=True. I can create a
My feeling is that you are now hitting a bug from your app & not a
django / python / mac / ... issue.
A stupid gess from me ...
You use a Custom Profile for the User and it is an upgrade from Django
1.1 and ... you need to adapt the minor details about it .
If you code is in a SVN server I can do a
On Tue, Aug 10, 2010 at 09:47, Tomi Pieviläinen wrote:
> As mentioned in the IRC channel, the feed did indeed display two
> items, but because it was invalid markup (based on W3) Safari didn't
> show them properly.
I noticed, but has this issue (i.e., invalid RSS markup) been
fixed in 1.2 or
My code is based on Pinax: http://pinaxproject.com/
and the Profile comes from there.
On Tue, Aug 10, 2010 at 5:33 AM, tsmets wrote:
> My feeling is that you are now hitting a bug from your app & not a
> django / python / mac / ... issue.
> A stupid gess from me ...
> You use a Custom Profile fo
ahh... and my code is in github
if someone wanna test it: http://github.com/danielfranca/Tint
2010/8/10 Daniel França
> My code is based on Pinax: http://pinaxproject.com/
> and the Profile comes from there.
>
>
> On Tue, Aug 10, 2010 at 5:33 AM, tsmets wrote:
>
>> My feeling is that you are no
On Aug 10, 9:04 am, Federico Maggi wrote:
> On Tue, Aug 10, 2010 at 09:47, Tomi Pieviläinen wrote:
> > As mentioned in the IRC channel, the feed did indeed display two
> > items, but because it was invalid markup (based on W3) Safari didn't
> > show them properly.
>
> I noticed, but has this
On Sun, Aug 8, 2010 at 10:14 PM, Michael P. Soulier <
msoul...@digitaltorque.ca> wrote:
> Hi,
>
> I saw the deprecation warning on using admin.site.root in my urlconf for
> the
> admin site, so I moved to include(admin.site.urls) instead. Unfortunately
> after I logged-in, every click in the admin
Define a custom ModelForm for your model that sets the appropriate
queryset parameter (either altering the field in __init__, or just
defining the field in the class as a ModelMultipleChoiceField). Then
register that ModelForm for use in the admin (via a ModelAdmin class).
On Aug 9, 7:51 pm, Marti
On Mon, Aug 9, 2010 at 1:49 AM, yangmin...@gmail.com
wrote:
> Hi All,
>When I was reading django document, I also viewed the source code
> of the framework to help me understand,
>but I found one inconsistent place about urls attribute of
> Django's AdminSite object.
>
># in djangoproj
On Mon, Aug 9, 2010 at 8:23 AM, Tomi Pieviläinen wrote:
> (Using formset_factory, if that makes a difference)
>
> If the user fills a form in formset incompletely and then marks it for
> deletion, my form handling dies horribly. The deleted forms prevent
> formset.cleaned_data from working as the
It is definitively an issue in your code.
syncdb won't run without complaining about the timezone field in your account
model.
Once commented, syncdb continues but at some point will fail because it expects
a site to be configured but at this point, the site table is not garanteed to
be there..
> What version of Django? This sounds a lot like:
Latest (installed by making pip require django>=1.2).
> http://code.djangoproject.com/ticket/11801
It isn't. The problem is not that I'm not getting
formset.deleted_forms, I am. The problem is that these deleted forms
also go to the cleaned_data
the log files are for tests purposes only.
I'm inserting the site table myself.
is it a bug in pinax profiles? accounts? I didn't get the point.
On Tue, Aug 10, 2010 at 9:10 AM, Xavier Ordoquy wrote:
> It is definitively an issue in your code.
>
> syncdb won't run without complaining about the
On Tue, Aug 10, 2010 at 13:38, Daniel Roseman wrote:
> This was actually an issue with the OP's get_absolute_url method,
> which has been diagnosed on StackOverflow.
could you please be more specific (e.g., a URL would be useful).
Thanks!
-- Fede
--
You received this message because you ar
Hi all,
I am using an abstract base class called "profile" for the extension of
my user models. I implemented several profiles like "standard, premium,
staff" and so on.
Now I realised that I would like to check the permission of a certain
user on a certain project without having to know abo
I used rosetta to translate strings. How can I switch language of my
site and see the result?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, sen
Actually I have pinax (trunk) running with the social template and django 1.2
without issue using sqlite on OSX.
I can change my profile timezone in this application without any issue,
everything seems to be working fine.
Somehow, the changes you made seem to have messed up something or you don'
I'll try to update my code.
On Tue, Aug 10, 2010 at 10:06 AM, Xavier Ordoquy wrote:
> Actually I have pinax (trunk) running with the social template and django
> 1.2 without issue using sqlite on OSX.
> I can change my profile timezone in this application without any issue,
> everything seems to
It's very useful Andy, sympathy is welcome =)
I was programming under linux, and I guessed that would be really straight
forward port my project to OSX, I was wrong :(
> 2010/8/10 AndyB
>
> I haven't got anything useful to add other than some sympathy. I
>> vented my incoherent rage on Twitter a
Have a read about how Django chooses the language to display here
http://docs.djangoproject.com/en/1.1/topics/i18n/deployment/#how-django-discovers-language-preference
Also have a read about how you can change the user's language
preference on the site here
http://docs.djangoproject.com/en/1.1/top
On Aug 10, 1:35 pm, Federico Maggi wrote:
> On Tue, Aug 10, 2010 at 13:38, Daniel Roseman wrote:
> > This was actually an issue with the OP's get_absolute_url method,
> > which has been diagnosed on StackOverflow.
>
> could you please be more specific (e.g., a URL would be useful).
>
> Thanks
Le 10 août 2010 à 15:10, Daniel França a écrit :
> It's very useful Andy, sympathy is welcome =)
> I was programming under linux, and I guessed that would be really straight
> forward port my project to OSX, I was wrong :(
You know you are unfair. Unless you have strong evidence, you shouldn't
I'm not blaming OSX.
I just said that it was working on Linux, and now it's not working on Mac.
and even if my code is wrong that shouldn't be that dificulty to find the
error, doesn't agree? A more clear error message would help.
The problem isn't the error, but we are about a month arguing about
my settings.py:
LANGUAGE_CODE = 'uk'
#multilingual
LANGUAGES = (
('en', 'English'),
('ru', 'Russian'),
('uk', 'Ukrainian'),
)
I've created under myproject/locale folder two translations uk and ru
and translated with rosetta.
I reloaded web server and browser.
Nothing happene
Actually, it doesn't work on Linux either with the same settings.
Please update django-timezones to 0.2.dev2 which is what pinax uses (pip
install --extra-index-url=http://dist.pinaxproject.com/dev/
django-timezones==0.2.dev1). The latest stable doesn't seem to work with django
1.2.
I bet you i
*I bet you installed pinax on your linux box but not on your osx one (or not
in the same virtual env).*
*hmmm, I just copied the code from Linux to OSX, is it what you mean? I
should have "install" Pinax, that's it?*
On Tue, Aug 10, 2010 at 12:05 PM, Xavier Ordoquy wrote:
>
> Actually, it doesn't
It is a bit trickier.
Pinax application gets all their dependancies through pip installation and
requirement files.
If you have a pinax application, take a look in the requirements directory.
You'll find two files (base.txt and project.txt) that tell exactly what
application to get and what vers
On Fri, 2010-08-06 at 18:35 -0100, Joshua Russo wrote:
>
>
> Nope, still no dice. Below is what I did. I modified the worker()
> function from one of the Stackoverflow examples. Let me know if I'm
> using flush properly. Keep in mind that everything you see here is
> already running in a separat
I'm seeing the same symptoms. The rate is much lower than 1 in 5 -
maybe 1 in 100 - but definitely the same error. Were you guys able to
make any progress on a solution?
On Aug 4, 1:17 am, hcarvalhoalves wrote:
> Now that someone else mentioned, yes, I believe we have the same
> problem.
>
> I
I've got a form with a multi checkbox that contains static choices.
Using the forms.MultipleChoiceField with the CheckboxSelectMultiple
widget worked fine for display. However, when displaying an edit form,
the checkboxes did not hold state (all items were unchecked). To
handle this I created a cus
There are some lengthy discussions and lots of links on setting up
Django with WHM/cPanel here:
http://forums.cpanel.net/f5/django-python-cpanel-71229-p2.html
And this thread:
http://forums.cpanel.net/f145/django-support-146541.html
is the "official" Django-on-cPanel feature request -- weigh in
Docs and djangobook useless in question of translation. Any other
guide to read is available?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, sen
Well, IMO any way that works and you feel comfortable supporting is
"okay". I can tell you what I did, but I don't know if it's any
better.
If I understand you correctly, you want to bring up the options a user
made previously and start from there instead of a blank slate. What I
did to accompli
Dear Friends,
I'm using django in a project and I'm having a scary/strange problem.
So, the problem is regarding the cache. I have some variables which
are extracted from the database, with an exact value.
However, some times this variable is extracted from the data base and
show a different val
On Tue, Aug 10, 2010 at 6:55 PM, Felipe wrote:
> So, when I erase the cache, the value is corrected, and the variable
> turns showing the real value which is stored in the database.
what do you mean when you say cache? browser cache, memcached or something else?
> Could this to be a problem with
>From djangobook: "If all you want to do is run Django with your native
language, and a language file is available for your language, all you
need to do is set LANGUAGE_CODE."
This is not true! Unfortunately(
--
You received this message because you are subscribed to the Google Groups
"Django u
My base.html has a header:
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
http://www.w3.org/1999/xhtml"; lang="{{ LANGUAGE_CODE }}"
xml:lang="{{ LANGUAGE_CODE }}">
...
The LANGUAGE_CODE in settings is:
LANGUAGE_CODE = 'ru'
#multilingual
LAN
you should include {% load i18n %} tag in every file you use translation
On Tue, Aug 10, 2010 at 8:13 PM, kostia wrote:
> My base.html has a header:
>
> {% load i18n %}
>
> {% get_current_language as LANGUAGE_CODE %}
>
>
>
> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> http://www.w3.org/19
So,
I'm using a filesystem caching and I'm using cache.get and cache.set
to set and get the cache.
But sometimes django shows a different value of the stored value in
the database.
Ex: the system show a variable in a template: 487.000 entries. And
sometimes, due cache problems, when I update the
Have you set USE_I18N = True in your settings.py file?
On Aug 10, 6:13 pm, kostia wrote:
> My base.html has a header:
>
> {% load i18n %}
>
> {% get_current_language as LANGUAGE_CODE %}
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>
> http://www.w3.org/1999/xhtml"; lang="{{ LANGUA
I did everything. The latest my code is here http://github.com/vaxXxa/projector
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
dj
On Tue, Aug 10, 2010 at 7:17 PM, Felipe wrote:
> So,
>
> I'm using a filesystem caching and I'm using cache.get and cache.set
> to set and get the cache.
>
> But sometimes django shows a different value of the stored value in
> the database.
cache is not updated automatically, if value in databas
Of couse I included a {% load i18n %} tag and then used {% trans %}
tags in each file.
Still no solution
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from thi
I can't see anything wrong. Maybe someone else will. Maybe just create
a really simple one page web site from scratch and see if you get the
same issues?
On Aug 10, 6:27 pm, kostia wrote:
> Of couse I included a {% load i18n %} tag and then used {% trans %}
> tags in each file.
>
> Still no sol
Disappointed.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit t
Can you describe your problem as i have recently done the django
Internationalisation and i was able to do so .
On Tue, Aug 10, 2010 at 11:05 PM, cootetom wrote:
> I can't see anything wrong. Maybe someone else will. Maybe just create
> a really simple one page web site from scratch and see if y
Hi,
I am using Django 1.2.1
I have a model called Project that contains a char field and an image
field.
My project used Modeltranslation so i can have an English and French
version of the 2 fields.
When i try and add a project in the admin i get the error: 'unicode'
object has no attribute '_
I have a web site. It is www.projector.net.ua. Sometimes it is down.
I have the latest code here http://github.com/vaxXxa/projector of it.
I have installed rosetta module to translate the English version of my
site into Russian and Ukrainian. I did this. You may see it in
projector/locale folder.
I
I just set up a site that uses nginx to server static media and Apache/mod_wsgi
to deal with the Django stuff.
How would I go about dealing with SSL? Would the setup be on the nginx end or
the Apache end? Could I still use SSLRedirect middleware?
Thanks,
-Colleen
--
You received this message
I just set up a site that uses nginx to server static media and Apache/mod_wsgi
to deal with the Django stuff.
How would I go about dealing with SSL? Would the setup be on the nginx end or
the Apache end? Could I still use SSLRedirect middleware?
Thanks,
-Colleen
--
You received this message
On Tue, Aug 10, 2010 at 2:49 PM, Colleen A Josephson wrote:
> I just set up a site that uses nginx to server static media and
> Apache/mod_wsgi to deal with the Django stuff.
>
> How would I go about dealing with SSL? Would the setup be on the nginx end
> or the Apache end? Could I still use SSLRe
I don't know if it will help you, but reading the chapter of
internationalization in the book "The Definitive Guide To Django" I saw this
paragraphs:
LocaleMiddleware tries to determine the user's language preference by
following this alghorithm:
- First it looks for a django_language key i
> When i try and add a project in the admin i get the error: 'unicode'
> object has no attribute '_committed' . I'm quite certain it's an issue
> with the image field.
Well, not to be coy, but you have a unicode string somewhere whose
_committed value you are trying to access. Problem is, the un
Thanks for the reply, below is my Project model
from django.db import models
class Project(models.Model):
title = models.CharField(max_length=100)
path = models.CharField(max_length=100,help_text='This should be
the folder name')
image = models.ImageField(upload_to='/images/projects/'
Hi,
When using reportlab trying to import a file which contains the
following line, I get an error.
from reportlab.platypus import Paragraph
The error says:
ViewDoesNotExist at /
Tried book in module book.address.views. Error was: 'module' object
has no attribute 'instancemethod'
The trace is b
What is the code that you are using to save instances of the model
with?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-us
Hi,
I'm trying to use django-tables to display the output in a grid-like
view. I'd like a user to be able to choose a row and send it to a
detail page.
I've tried to look for a way to pass the ID across, but I can't seem
to find much about it. Is it possible, and if so, how? Is there
something
I am doing it in the admin area, so i dont have any custom code.
The issue might be with the Modeltranslation module. It creates extra
columns for the different translations, so, for example, title has
title, title_en, title_fr as rows in the DB. This applies to the image
field too.
Thanks for an
I just found out Modeltranslation does not support ImageField :-(
http://code.google.com/p/django-modeltranslation/issues/detail?id=30
On Aug 10, 10:01 pm, grimmus wrote:
> I am doing it in the admin area, so i dont have any custom code.
>
> The issue might be with the Modeltranslation module. I
I 'm trying to create a form dynamically. This works just fine, but
there's no way for the form to offer any customized validation, by way
of the clean() method.
def get_dept_weight_form(store):
fields = {}
s = Store.objects.get(pk=store.id)
for d in store.department_set.all():
Hello list. I have a problem. I'm a newbie in Django using his first
formset.
I have this:
class BaseFormFormato_habilitar(BaseModelFormSet):
def __init__(self, *args, **kwargs):
super(BaseFormFormato_habilitar, s
I'll try running under Cherokee + uWSGI and see if the problem shows
up again. Something tells me this is related to FCGI...
It's still hard to separate the false positives though. If a user
stops a upload, you see the exact same traceback.
On Aug 10, 12:47 pm, Roger wrote:
> I'm seeing the same
You could just write the table out in full in the template and use
JavaScript to sort the rows.
On Aug 10, 2:55 pm, "Mike W." wrote:
> Hi,
>
> I'm trying to use django-tables to display the output in a grid-like
> view. I'd like a user to be able to choose a row and send it to a
> detail page.
Unfortunately I'm not very well versed in proxying and SSL, etc.
I'm not sure I understand how mod WSGi eliminates the need for SSLRedirect.
I implemented the Lincoln Loop setup, but if I go to the http:// admin page I
am not redirected to https:// as I would like to be.
anyone?
On Aug 6, 2:42 pm, Support Desk wrote:
> I'm trying to setup Webshell in one of my Django Password protected pages.
> Webshell is a python script which starts its own server and your designated
> port it displays a shell on ava enabled web browser that connect to
> localhost. It tests goo
On Aug 9, 5:01 pm, cootetom wrote:
> Using the language files is the solution here. Even if your site only
> supports the English language, it still means that you can have .po
> files for just English. Once you understand how it all hangs together
> you'll be away.
Thanks alot.
Did a test run o
On Tue, Aug 10, 2010 at 5:00 PM, Colleen A Josephson wrote:
> Unfortunately I'm not very well versed in proxying and SSL, etc.
> I'm not sure I understand how mod WSGi eliminates the need for SSLRedirect.
>
> I implemented the Lincoln Loop setup, but if I go to the http:// admin
> page I am not re
That does exactly what I need, thank-you!
From: django-users@googlegroups.com [django-us...@googlegroups.com] On Behalf
Of Michael [newmani...@gmail.com]
Sent: Tuesday, August 10, 2010 5:25 PM
To: django-users@googlegroups.com
Subject: Re: SSL with Django,
You could try using the set_language redirect view to set your
language
http://docs.djangoproject.com/en/1.1/topics/i18n/internationalization/#the-set-language-redirect-view
On Aug 10, 8:12 pm, Renne Rocha wrote:
> I don't know if it will help you, but reading the chapter of
> international
Bjorn,
I got this working. The way I fixed it was..
I downloaded jqGrid again and selected all the libraries to be
included. My guess is that navGrid isn't bundled with the core grid. I
dont know this for sure. Its working for me now.
Tom
On Jun 19, 3:59 pm, Bjørn Høj Jakobsen wrote:
> Hi
>
>
I have an application that's similar to the typical Q&A system.
A user asks a question. other users submit answers to that question:
- Each user is allowed to submit up to N answers to each question,
where N > 1 (so, say each user can submit no more than 3 answers to
each question)
- A user can e
Sorry for the non-descriptive title..
This is somewhat of an odd issue. First off, I am working with django
1.1.1 with apache proxing to CherryPY WSGIServer. Here is all of the
code in question - http://pastie.org/1084870.
When I access the wsgiserver directly everything works as expected.
Howeve
Hi Xavier,
I had dropped my tables earlier, so this wasn't the problem.
Everything
was being created afresh, although there were existing tables in the
DB
that had nothing to do with my models. All my existing tables had
different names
than the ones in my models.
On Aug 7, 2:55 am, Xavier Ordoq
On Aug 11, 7:43 am, Colleen A Josephson wrote:
> That does exactly what I need, thank-you!
>
> From: django-users@googlegroups.com [django-us...@googlegroups.com] On Behalf
> Of Michael [newmani...@gmail.com]
> Sent: Tuesday, August 10, 2010 5:25 PM
> To
Python 2.4 is the default version that ships with RHEL / CentOS 5.x.
On Aug 9, 4:27 pm, Boguslaw Faja wrote:
> why are you using python in version 2.4? It's a bit old.
--
Scott Hebert
http://slaptijack.com
--
You received this message because you are subscribed to the Google Groups
"Django us
The point of a relational database is to distribute everything into
normalized tables, then perform set operations on multiple tables.
Given an Order model with many order_items, other ORMs allow me to
query them like this (in a hypothetical notation):
Order.objects.filter(pk=42).join('order_it
I have internationalisation working in 1.1.1. When I logout and get re-
directed to the login screen, the language code is always 'en'
regardless of settings.language_code. Is this the expected behaviour?
I realise I'm using an older version but I have no control over the
server.
--
You received
On 08/10/10 18:39, Phlip wrote:
The point of a relational database is to distribute everything
into normalized tables, then perform set operations on
multiple tables.
Given an Order model with many order_items, other ORMs allow
me to query them like this (in a hypothetical notation):
Order.obje
I need a reporting library for web based (HTML) reporting with support
for standard features
1) header
2) footer
3) pagination
4) Totals/summary
Reportlab is too low level for my needs and their pro version license
does not work for me.
Is there any other good python based reporting library.
My
> orders = Order.objects.filter(
> pk=42,
> order_items__product='whiteboards'
> )
>
> Is this not what you want?
We made a feeb attempt at that and gave up. Thanks! I will try it next.
The next question, if it works, will be how to values_list() a field
from a child record; it might fo
On 10/08/10 Karen Tracey said:
> does not work properly. You also have to change the first element of the
> tuple:
>
> (r'^admin/', include(admin.site.urls)),
*sigh* Thanks, that was it.
Mike
--
Michael P. Soulier
"Any intelligent fool can make things bigger and more complex... It takes a
tou
thanx, I'll look at that =)
On Tue, Aug 10, 2010 at 12:31 PM, Xavier Ordoquy wrote:
> It is a bit trickier.
> Pinax application gets all their dependancies through pip installation and
> requirement files.
> If you have a pinax application, take a look in the requirements directory.
> You'll find
thanks
On Tue, Aug 10, 2010 at 8:04 PM, Karen Tracey wrote:
> On Mon, Aug 9, 2010 at 1:49 AM, yangmin...@gmail.com > wrote:
>
>> Hi All,
>>When I was reading django document, I also viewed the source code
>> of the framework to help me understand,
>>but I found one inconsistent place ab
On Aug 11, 2:28 am, Phlip wrote:
> > orders = Order.objects.filter(
> > pk=42,
> > order_items__product='whiteboards'
> > )
>
> > Is this not what you want?
>
> We made a feeb attempt at that and gave up. Thanks! I will try it next.
>
> The next question, if it works, will be how to valu
I dont think they do.
The only time i use raw sql + joins is for performance... eg:
When you have a model and for each instance of that model it has a
reverse foreignkey relationship where you would have to call:
_set.all()
in a for loop thus making heaps of sql queries.
There are 3rd party addo
On Wed, Aug 11, 2010 at 02:43, kostia wrote:
> Docs and djangobook useless in question of translation. Any other
> guide to read is available?
I would recommend you use Firefox, go to Edit->Preferences->Content,
choose the language of choice at the bottom.
You can't just translate the site and e
88 matches
Mail list logo