thanks, great!
--~--~-~--~~~---~--~~
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]
On Thu, 2007-12-20 at 21:33 -0800, Julien wrote:
> Thanks for the hint!
>
> This is not the first time that I stumble on the fact that the
> documentation is ahead of the code. And that's very problematic
> because you spend hours trying to understand why it doesn't work as
> the doc says,
Thanks!
I'll use the intermediary model for my solution.
Best Regards,
Jeff Anderson
Malcolm Tredinnick wrote:
> On Thu, 2007-12-20 at 22:23 -0700, Jeff Anderson wrote:
>
>> I am used to designing relational databases, and I love django's
>> capabilities with the models and its database
Thanks for the hint!
This is not the first time that I stumble on the fact that the
documentation is ahead of the code. And that's very problematic
because you spend hours trying to understand why it doesn't work as
the doc says, while it's in fact a bug in the code or a feature that
hasn't been
On Thu, 2007-12-20 at 21:11 -0800, Julien wrote:
> Hi,
>
> I've been struggling with union-ing querysets. Here's an example:
>
> >>> qs1=User.objects.filter()
> >>> qs1=User.objects.filter()
> >>> qs1
> []
> >>> qs2
> []
> >>> qs1 | qs2
> []
> >>> qs1 or qs2
> []
>
> I thought
I am used to designing relational databases, and I love django's
capabilities with the models and its database APIs.
I have an app with the following models:
Room
Furniture
Room will store records like: "living room", "family room", "kitchen",
etc...
Furniture will store records like: "chair",
Hi,
I've been struggling with union-ing querysets. Here's an example:
>>> qs1=User.objects.filter()
>>> qs1=User.objects.filter()
>>> qs1
[]
>>> qs2
[]
>>> qs1 | qs2
[]
>>> qs1 or qs2
[]
I thought that "|" was equivalent to a "or", as mentioned in the doc:
This is not a very secure thing to do. But if you must, then just use
initial to set the value.
Michael Trier
blog.michaeltrier.com
On Dec 20, 2007 2:32 PM, mike <[EMAIL PROTECTED]> wrote:
>
> Hello, I am looking for a way to auto-populate a newforms field, I
> would like to have the input
> I'll look into it, but before I go too far down one track, could
> anybody give some advice on how to approach it using sessions?
Here's an example:
http://staticallytyped.com/2007/05/17/rails-flash-now-for-django/
It's simply middleware that handles stuffing, retrieving, and clearing.
On Dec 20, 11:49 am, pk <[EMAIL PROTECTED]> wrote:
> Are you using the built-in Group and User classes? If what you are
> quoting is cut-and-pasted from your console, you maybe using your own
> model? Maybe you should show us the actual source code.
>
> FYI -- the built-in classes are
On 21-Dec-07, at 12:59 AM, Waylan Limberg wrote:
> I've worked up the beginnings of a Trac plugin that authenticates
> against Django users. I've since determined that I'm not likely to use
> it.
why are you unlikely to use it?
--
regards
kg
http://lawgon.livejournal.com
On Dec 19, 7:47 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> > As I mentioned in my other post, it doesn't work for the one process.
>
> My previous code snippet missed an important statement. You will need
> to first get an instance of _transactions from trans_real.py before
> you declare it
On Dec 20, 2:58 pm, mike <[EMAIL PROTECTED]> wrote:
> anyone know how to auto assign a variable to my form field?
>
> IssueEntryForm.base_fields['customer'].widget = widgets.HiddenInput()
> IssueEntryForm.base_fields['customer'].widget = HELP
I'm not sure I understand the question; what exactly
{{tuple.0}}
{{tuple.1}}
On 21 дек, 01:30, Julian <[EMAIL PROTECTED]> wrote:
> hi,
>
> i am passing a tuple (1,2) to a template in a variable like this:
>
> render_to_response("template.html",{"tuple":(1,2)})
>
> how can i access the single-values without a for-loop in the template?
Hi guys, thanks for your replies.
What I'm trying to achieve is to give feedback with a quick notice
each time the user accomplishes an action (e.g. create/edit/delete/
send/etc.).
So I need a quite generic and flexible solution.
The "Messages" solution pointed out by James looks very good,
okay, thanks. i think this will bring me to a comfortable 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-users@googlegroups.com
To
Nevermind on this.
--~--~-~--~~~---~--~~
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
On 2007-12-20 14:33:47 -0700, Julian <[EMAIL PROTECTED]> said:
>
> hi there,
>
> I do want to use pagination, but I don't know how to solve a problem.
>
> template-code:
>
> {% for p in paginator.page_range %}
> {{p}}
> {% endfor %}
>
> but obviously it should be:
>
> {% for p in
Hello. I want to use the pytz package. It has a tzinfo objects called
pytz.UTC that it recommends you store as the general timezone. Is
there a way for Django to set the tz to pytz.UTC whenever it deals
with datetimes?
Thanks,
Ryan Kaskel
--~--~-~--~~~---~--~~
You
On Dec 20, 4:38 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote:
> Thanks Rajesh,
>
> I am not sure about Choices, since there are some 12 stages, with condition
> at couple of stages. I do not know how to conditionalize the choice fields.
I just threw in the choices option there as from your
>
> What is the best method to capture, all events happening on a specific day.
>
> The view must give a report
>
> when you try the url calendar/2007/dec/20
> On December 20th 2007
>
> Tender 222 date of announcement
> Tender 243 last date for receiving bids
> Tender 227 date for recieving
anyone know how to auto assign a variable to my form field?
IssueEntryForm.base_fields['customer'].widget = widgets.HiddenInput()
IssueEntryForm.base_fields['customer'].widget = HELP
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hi John,
> My hunch is the answer is "No," but is it possible to do a
> 'date_heirarchy' on a ForeignKey date object? Haven't been able to
> find anything in the archive on the topic. Pointers gratefully
> accepted.
Your hunch is right. The admin date_hierarchy works only with date and
datetime
On Donnerstag, 20. Dezember 2007, Waylan Limberg wrote:
> I've worked up the beginnings of a Trac plugin that authenticates
> against Django users. I've since determined that I'm not likely to use
> it. So, is anyone interested in using and/or maintaining it? If so,
> I'll throw it up on
My hunch is the answer is "No," but is it possible to do a
'date_heirarchy' on a ForeignKey date object? Haven't been able to
find anything in the archive on the topic. Pointers gratefully
accepted.
John
--~--~-~--~~~---~--~~
You received this message because you
Are you using the built-in Group and User classes? If what you are
quoting is cut-and-pasted from your console, you maybe using your own
model? Maybe you should show us the actual source code.
FYI -- the built-in classes are django.contrib.auth.models.Group
and ..User
not Groups nor Users
Don't know why you're getting that (I've never tried 0.96, only svn), but
the easiest thing is just to copy the django subfolder into
C:\Pythong25\lib\site-packages\
To test that it works, enter a python prompt and type:
>>> import django
>>>
- Richard
On Dec 19, 2007 3:55 PM, Trev <[EMAIL
Looks strange, I have never used "install.py" for WinXP, see this
tutorial: http://thinkhole.org/wp/django-on-windows/.
On 19 дек, 23:55, Trev <[EMAIL PROTECTED]> wrote:
> Hi, This should take 2 seconds for an experience Django user.
> I'm trying to install Django on windows XP. I've installed
> The class main_feed is,
>
> def main_feed (Feed):
That should be:
class main_feed(Feed):
-Rajesh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Access this site - Project Management
http://sergiolaranja.blogspot.com/
--~--~-~--~~~---~--~~
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
I am trying to generate a feed.
So I added the following lines to urls.py
feeds = {'latest': main_feed}
urlpatterns += patterns('',
(r'^rss/(?P.*)/$', 'django.contrib.syndication.views.feed',
{'feed_dict': feeds})
)
The class main_feed is,
def main_feed (Feed):
blog =
Yes I am running OS X 10.4.11. I guess I will move up to 2.5. thanks!
On Dec 20, 11:54 am, Jan Rademaker <[EMAIL PROTECTED]> wrote:
> newDjangoer wrote:
> > I am installing pysqlite 2.4.0. I have python 2.3.5 installed and
> > sqlite 3.1.3. When I run the python setup.py build I get this :
>
> >
newDjangoer wrote:
> I am installing pysqlite 2.4.0. I have python 2.3.5 installed and
> sqlite 3.1.3. When I run the python setup.py build I get this :
>
> skcompxp:~/Desktop/pysqlite-2.4.0 sptxk$ python setup.py build
> running build
> running build_py
> running build_ext
> building
On Dec 20, 1:41 am, Gloria W <[EMAIL PROTECTED]> wrote:
> I am boggled. A SELECT from the MySql command line works just fine.
> But within Django, it returns nothing. It doesn't matter what SQL
> statement I issue.
>
> Here is my syntax:
>
> from django.db import connection
> cursor =
On Dec 20, 1:41 am, Gloria W <[EMAIL PROTECTED]> wrote:
> I am boggled. A SELECT from the MySql command line works just fine.
> But within Django, it returns nothing. It doesn't matter what SQL
> statement I issue.
>
> Here is my syntax:
>
> from django.db import connection
> cursor =
I am installing pysqlite 2.4.0. I have python 2.3.5 installed and
sqlite 3.1.3. When I run the python setup.py build I get this :
skcompxp:~/Desktop/pysqlite-2.4.0 sptxk$ python setup.py build
running build
running build_py
running build_ext
building 'pysqlite2._sqlite' extension
gcc
I have an app, and I have added 3 Users in 2 Groups.
How do I get the users that belong to a specific Group??
Using the shell on the built in Django models I get:
>>> G = Groups.objects
>>> U = Users.objects
>>> U.all()
[, ]
>>> G.all()
[, ]
Ok so far? ( the double User: in U.all() concerns me
More info on this: I am connecting to the db via an ssh tunnel. In the
settings-*.py files, I use
DATABASE_HOST = '127.0.0.1'
Works like a charm, except with the connection module. It is probably
not connecting.
Help!
Gloria
On Dec 19, 7:41 pm, Gloria W <[EMAIL PROTECTED]> wrote:
> I am boggled.
On Dec 20, 2007 9:03 AM, GodOfGeeks <[EMAIL PROTECTED]> wrote:
> The problem is that when I set the fields to editable=False then they
> won't be visible in the adminModel
The admin interface is deliberately designed not to have
"display-only" data -- the thinking has been that things which
Hello,
I will start with the code directly which will make it much easier to
explain:)
class ProceedingsEditor( models.Model ):
contact = models.ForeignKey( Contact )
The point here is that the contact table is a 10,000 or so field so a
drop down list is none sense
Hello all,
I have a problem and I have been googling around for many days for the
solution without any hope. It will be great if someone can help me out
with it.
I have a model Called 'Country' with the following fields
male_count = models.SmallIntegerField( null=True, blank=True,
On second thoughts, "sqlall" might be better since it prints out
indexes, initial_data, etc:
python manage.py sqlall
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
I'm not sure what your end goal is here, but since you seem to be
storing settings in a database, you might consider my dbsettings
app[1], designed for exactly that purpose. I can't guarantee it does
what you need, but it's probably worth looking into.
To answer your question specifically
Excellent! Thanks. I think that's what I needed.
--pug
On Dec 19, 11:03 pm, "Eduardo - IdNotFound" <[EMAIL PROTECTED]>
wrote:
> On Dec 20, 2007 1:06 AM, pug2694328 <[EMAIL PROTECTED]> wrote:
>
>
>
> > However, when delving into tutorials they keep referring to the
> > subversion version of
as a part of using generic relations, i got struck up at one point,
where i need to run the sql to have a field:
summary = generic.GenericRelation(Summary)
where Summary is a class defined as:
class Summary(models.Model):
id = models.AutoField(primary_key=True)
content_type =
Hello,
I wrote an my blog about the solution I have chosen perform what is
describes. To put it in a nutshell I am using a middleware to direct
the user to the language requested in the URL. I am not sure this
follow any "Best Practice":
My guess is that you're using 0.96, or if you're using SVN, you're
using a revision before r6269. I've just updated the wiki article to
reflect this requirement.
-Gul
On 12/20/07, worker <[EMAIL PROTECTED]> wrote:
>
> Hi to everybody,
> I need help from those who have already used AuditTrail:
Hello there,
I couldn't find any help on the web or on this forum yet, so here I
am :)
I'd like to hear your advice on the best way to go with displaying
form result notices.
For example, after editing an object via a newform, the following page
displays a notice that says "Object
Hi all,
I want to add the geo tag (with latitude and longitude) to each item
of my feeds:
45.256 -71.92
I am using the feeds framework:
class LatestEvents(Feed):
title = "Latest Events"
link = "/events/"
def items(self):
return
Hello,
I am not sure what you have to do with this list? I could not find anything
to do with Django on your website.
Please do not spam this developer list.
Thanks,
Rahul
--
Srijan Technologies Pvt. Ltd. INDIA
www.srijan.in | [EMAIL PROTECTED]
91-11-2622 5926 / 2622 5931 | Fax: 91-11-4160
Hi to everybody,
I need help from those who have already used AuditTrail:
http://code.djangoproject.com/wiki/AuditTrail
I'm having this problem: : _audit() takes
exactly 3 non-keyword arguments (2 given),
Thanks in advance
--~--~-~--~~~---~--~~
You received this
Title:
Custom Software Solutions Provider
URL:
http://www.tandoninfo.com
Description:
Tandoninfo: Custom Software Solutions Provider - We provide Custom
software development services like application development, web
development, Project management, quality testing. We also provide SAP
Business
James Bennett napisał(a):
>> While this might work for the options I defined by myself, the standard
>> settings options "should not be changed in runtime" (according to docs).
>> Did anybody manage to solve this issue?
>
> Have you looked at Marty's dbsettings project?
>
>
Someone created these cool leopard icons for lighttpd and rails. I
guess it should be quite easy for someone with skills to create green
django icons. Anyone?
And here's the link
http://www.wishingline.com/notebook/2007/12/railslighttpdiconsforleopard/
On Dec 20, 2007 4:55 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> While this might work for the options I defined by myself, the standard
> settings options "should not be changed in runtime" (according to docs).
> Did anybody manage to solve this issue?
Have you looked at Marty's dbsettings
Recently I got a request from Django site operator to be able to modify
some options we had put into settings.py file. Now changes to some
business-related options require server restart (i.e. change to
DEFAULT_FROM_EMAIL, which isn't that exotic). I'd like to give site
admin an option to modify
You can't do this because a model instance isn't pickleable. You can
save the product id instead.
This is documented under:
http://www.djangoproject.com/documentation/sessions/#technical-details
On Dec 20, 2007 4:03 PM, Daniel Austria <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> is there
Hi all,
is there something to bear in mind, if i store a instance of a class
in a django session? e.g. there is a class product and i want to
request.session['CURRENT_PRODUCT'] = myproduct
As far as i know, this should be allowed. Isn't it?
Greets,
Dan
58 matches
Mail list logo