On Wed, 2007-06-13 at 13:53 +0800, Nimrod A. Abing wrote:
> Hello,
>
> Regarding very large file uploads, I know this probably gets asked a
> lot and I've found one thread that comes close to what the answer I'm
> looking for:
>
> http://groups.google.com/group/django-users/browse_thread/thread/
Malcolm,
I wasn't very clear in my question. Sorry about that.
It took a bit of trial and error but I found a hack that works the way I
want it to. I use the model and form_for_model/form_for_instance for all
fields except the file uploads. For the file uploads I use FileInput(). That
was what I
Thanks, it worked!
It was my fault to ingore the paragraph about change the variables
names. Maybe if there were modified codes in the page, it will be
better, because codes are much easier to discover.
On 6月12日, 下午12时07分, Kelvin Nicholson <[EMAIL PROTECTED]> wrote:
> On Sat, 2007-06-09 at 23:28
Hello,
Regarding very large file uploads, I know this probably gets asked a
lot and I've found one thread that comes close to what the answer I'm
looking for:
http://groups.google.com/group/django-users/browse_thread/thread/ca95963aaa33ce1e/c69fb3381885f9a7
This thread was posted about a year a
LINK : http://smscity.com/?rid=466899
--~--~-~--~~~---~--~~
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 ema
On Jun 11, 5:26 pm, olive <[EMAIL PROTECTED]> wrote:
> After having click on "Add site" the form displayed again without any
> success or failure message.
Olive,
I haven't had any such issues - the form will redisplay if you have
any issues, but error messages should be shown to you. I've just t
I think that requires more logic in the template than possible.
My brain says tot do exactly what you suggest. But my template looks
similar to this:
{% for p in object.events.all %}
{{ p.event_name }},
{%
[snip
>
> The trouble I'm having is, if someone is not assigned to an event, I
> get nothing displayed (duh, there's not an event); except I'm
> displaying this in a table, and if I don't have any data, then the
> cell formatting doesn't line up correctly.
[snip]
I just quickly perused your em
I am a Django newbie and had a lot of trouble figuring out how to
upload an image. I looked at lots of examples of which no single one
made it clear how to do this. After much effort I came up with
something that works and at least I find to be clear so I wanted to
post it for other newbies to use
If I were you I'd get my hands on pictures of all of the "critters"
and put them next to their names. It'd spice up the UI a bit.
Udi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
On Tue, 2007-06-12 at 20:03 -0500, Vincent Nijs wrote:
> Thanks for the reply Malcolm.
>
> That is too bad. I noticed that the FileFields do have a browse button in
> the admin form btw. Do they not use form_for_model?
>
> As an alternative, is there a way to use FileField 's separately from the
Thanks for the reply Malcolm.
That is too bad. I noticed that the FileFields do have a browse button in
the admin form btw. Do they not use form_for_model?
As an alternative, is there a way to use FileField 's separately from the
the form_for_model fields? I am thinking I could leave the FileFie
On 6/12/07, womble <[EMAIL PROTECTED]> wrote:
> We're a little closer to experimenting with this, and have another question:
> is there any coherency checking/row (table?) locking implemented in
> django's db layer?
Django itself does not implement any locking features, or anything
else designed
On Tue, 2007-06-12 at 17:31 -0700, womble wrote:
> Hi,
>
> in the past I've written to this list re using the django db back-end as
> a db access layer for a test-automation system I work on; we hope to
> re-write the current front-end with django at some point.
>
> We're a little closer to expe
On Tue, 2007-06-12 at 18:50 -0500, Vincent Nijs wrote:
> Hi,
>
> I have a form linked to a model. I am using form_for_model or
> form_for_instance as required.
>
> The only issue is that FileField fields are not displayed with a 'browse'
> button. The function I am using is given below.
>
> I k
On Tue, 2007-06-12 at 13:27 +, Dushyant Sharma wrote:
> i am building single page for logged in users and anonymous users
> where i can use uid for logged in users and show specific things to
> them and for this i want to use session variable in template. i am
> trying request.session.uid in t
Well, now, that is an interesting find.
It seems to me the upcoming prefix attribute should result in a
dotted name, not a dashed one, so that one could make good use of
this utility.
On 07-Jun-10, at 9:35 PM, SmileyChris wrote:
> django.utils.datastructures.DotExpandedDict
--~--~
Not officially launched yet, but I'd appreciate some people banging on
critterwatch.org and telling me what breaks.
It's a site to track how you state senators and congressmen vote. Right
now it only has information for Georgia, but I'm working on adding the
next state (namely, South Carolina)
On Tue, 2007-06-12 at 04:32 -0700, Eugene Morozov wrote:
> Hello,
> What is the correct way to use gettext_lazy with string interpolation?
> Aren't there built-in facilities for this in the Django?
Just using it normally -- using a gettext_lazy proxy object wherever you
would normally use a forma
God's Simple Plan of SalvationMy Friend: I am asking you the most
important question of life. Your joy or your sorrow for all eternity
depends upon your answer. The question is: Are you saved? It is not a
question of how good you are, nor if you are a church member, but are
you saved? Are you sure
On Tue, 2007-06-12 at 05:44 -0400, Andrew R wrote:
> James Bennett wrote:
> > So long as your code is in a location where your code can be imported
> > by Python, there is another way; there are a couple of undocumented
> > functions in the template system which handle the loading of tag
> > libra
Real Income Producer
MAKE $2000 - $4000 A WEEK WITH THIS SOFTWARE!
Stop worrying about money, this software swells up bank accounts.
http://www.tellmemoresite.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
Hi,
in the past I've written to this list re using the django db back-end as
a db access layer for a test-automation system I work on; we hope to
re-write the current front-end with django at some point.
We're a little closer to experimenting with this, and have another question:
is there any co
On Tue, 2007-06-12 at 22:20 +, bahund wrote:
> I have a Searchlog model, and I'm trying to build a queryset of all
> unique searches ('searchstr' field). Using distinct() doesn't seem to
> work because the pk will always be different. Ideally, I'd like to
> use distinct() in a way where I co
On Tue, 2007-06-12 at 21:54 +, schettino72 wrote:
> Hello,
>
> Can I dynamically determine what are the valid lookup types for a
> specified type of model field?
>
> i.e. If you try:
>
> >>> q1 = Entry.objects.filter(blog__startswith="What")
>
> where blog is a 'models.ForeignKey'. you
On Tue, 2007-06-12 at 11:59 -0500, Carl Karsten wrote:
> What are the minimum GRANT options I need for running syncdb
CREATE table privileges (which presumable also includes ALTER
privileges), plus whatever might be needed to support any SQL in the
initial SQL files that you might include in the
On Mon, 2007-06-11 at 23:44 -0500, Jeremy Dunck wrote:
> On 6/11/07, Justin Lilly <[EMAIL PROTECTED]> wrote:
> > For archival purposes, the reason it wasn't working is I had named one of my
> > apps "calendar". After I renamed it to agenda and remapped it appropriately,
> > everything was in worki
On Tue, 2007-06-12 at 17:21 -0400, Forest Bond wrote:
[...]
> My original question, to some extent, has become irrelevent, since QuerySets
> that are the progeny of slice operations are explicitly forbidden further
> QuerySet-like processing (filter, order_by). That was my original desire.
>
> H
I'm having trouble pulling/formatting data into my template.
I have added some Event items into the database. For the example,
we'll say "golfing", "hiking" and "swimming".
In my template, using the generic object_list, I want to list each
member's information (easy enough) and then each event_
Hi,
I have a form linked to a model. I am using form_for_model or
form_for_instance as required.
The only issue is that FileField fields are not displayed with a 'browse'
button. The function I am using is given below.
I know from the documentation that model fields get converted to form fields
I have a Searchlog model, and I'm trying to build a queryset of all
unique searches ('searchstr' field). Using distinct() doesn't seem to
work because the pk will always be different. Ideally, I'd like to
use distinct() in a way where I could pass it the field I want to be
unique, such as:
quer
Thanks a lot guys. After I have changed my code to
sales_person = request.POST['salespeople_dropdown']
it worked perfectly.
On Jun 12, 2:55 pm, strelok31 <[EMAIL PROTECTED]> wrote:
> Thanks Jeremy,
>
> I will try out your suggestions. I am not new to programming, I am new
> to web programming an
Thanks Jeremy,
I will try out your suggestions. I am not new to programming, I am new
to web programming and Django. I have done all four steps that your
suggested before, I have just done #2 wrong. I will correct it now.
Thanks.
On Jun 12, 12:54 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> O
Hello,
Can I dynamically determine what are the valid lookup types for a
specified type of model field?
i.e. If you try:
>>> q1 = Entry.objects.filter(blog__startswith="What")
where blog is a 'models.ForeignKey'. you will get an exception because
"startswith" is not valid for ForeignKey fie
On Mon, Jun 11, 2007 at 09:43:55PM -0400, Forest Bond wrote:
> On Mon, Jun 11, 2007 at 06:18:18PM +1000, Malcolm Tredinnick wrote:
> > On Sun, 2007-06-10 at 15:45 -0400, Forest Bond wrote:
> > > Using the sqlite3 backend, any slice operation on a QuerySet for which
> > > the slice
> > > does not s
On Jun 13, 5:53 am, robo <[EMAIL PROTECTED]> wrote:
> if request.method == 'POST':
> form1 = form_for_model(Order)
> Orders = form1(request.POST, prefix='orders')
This is a bit confusing.
I'd suggest
OrderForm = form_for_model(Order)
order_form = OrderForm(request.POST, prefix='orders')
..
2007/6/12, Jeremy Dunck <[EMAIL PROTECTED]>:
>
> On 6/11/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I just finished a image bundle implementation for django, its a technique
> > used in
>
> I really like this idea, but my needs are different.
>
> I don't need resizing of images i
> It doesn't by default. However, have a look
> athttp://www.djangoproject.com/documentation/templates_python/#django-c...to
> see how to enable that. Generic views are given a RequestContext context, so
> providing you enable the correct middleware processors, this will be possible.
You thoug
On 6/12/07, strelok31 <[EMAIL PROTECTED]> wrote:
>
> Any ideas? I have been stuck on this for a while and I got nobody else
> to ask for help. Thanks again.
If you're really stuck, you need pointers as much as you need a
solution; there really are many sources to find info on how to
accomplish th
request.POST['salespeople_dropdown'] should have your value?
On Jun 12, 3:31 pm, strelok31 <[EMAIL PROTECTED]> wrote:
> Any ideas? I have been stuck on this for a while and I got nobody else
> to ask for help. Thanks again.
>
> On Jun 4, 8:47 am, strelok31 <[EMAIL PROTECTED]> wrote:
>
> > I wante
Le lundi 11 juin 2007 à 13:37 -0700, Tyson Tate a écrit :
> On Jun 11, 2007, at 11:18 AM, Francis wrote:
>
> > So far everything is working fine. But I have founded no working
> > solution to make my /static/css /static/images /static/javascript
> > works.
>
> Read this:
>
> http://www.djangopr
On 6/11/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just finished a image bundle implementation for django, its a technique
> used in
I really like this idea, but my needs are different.
I don't need resizing of images in the bundle, and I don't like the
idea of loading all the orig
Any ideas? I have been stuck on this for a while and I got nobody else
to ask for help. Thanks again.
On Jun 4, 8:47 am, strelok31 <[EMAIL PROTECTED]> wrote:
> I wanted to see if people have any ideas, I am sorry if I was not very
> clear in my explanation.
>
> My task is to add a drop down selec
This is my view code for this implementation:
if request.method == 'POST':
form1 = form_for_model(Order)
Orders = form1(request.POST, prefix='orders')
form2 = form_for_model(Order_Detail)
Orders_Details = form2(request.POST, prefix='order_details')
if Orders.is_valid():
What are the minimum GRANT options I need for running syncdb
and the minimum needed for normal use?
Everything I find on the web does a blanket ALL, some even on all DBs of the
whole server. I couldn't find anything in the docs, and it really should be
spelled out.
Carl K
--~--~-~--~
Also, I'm not sure if this is bug or design, but if you use this method, you
can't save the picture without a rather large hassel.
On 6/12/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
>
> I saw this come through on Django snippets and read the GWT page.
> It's an interesting idea. It's similar to
I saw this come through on Django snippets and read the GWT page.
It's an interesting idea. It's similar to the idea of concatenating
JS or CSS files, but with images.
I was a little disappointed to see how the demo had to load the 1 big
image file before you see any images. I think most people
is it possible to have a label-class with newforms?
e.g., when a field is required, it´d be nice to show that with the
label being bold or red or whatever.
moreover, it´d be possible to style individual labels (which is not a
common use-case, but it gives the designer more flexibility).
than
You need to add an entry in your settings.py for
TEMPLATE_CONTEXT_PROCESSORS, which will basically point to a function
which will put your data in a variable accessible to your template.
I basically have a variable that stores my site root url, so in a
utility file I have, I defined this functio
Yeah...I'm surprised though that iReport hasn't branched off to have a
Save As Report Lab report though. It is a nice report design
package...they shouldn't tie themselves to one report format
On Jun 12, 10:11 am, Joel <[EMAIL PROTECTED]> wrote:
> I went down the exact same path as you. I w
I went down the exact same path as you. I wanted to use Jasper/iReport
with Django. In the end, it ended up being easier just using Report Lab
which has produced some very nice results. I do miss iReport, but for
our purposes we didn't need a graphical editor for the reports on this
project - t
You can see the category model we use in Satchmo here -
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/product/models.py
Here's a template tag we use to build an HTML hierarchy of the categories -
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/
i am building single page for logged in users and anonymous users
where i can use uid for logged in users and show specific things to
them and for this i want to use session variable in template. i am
trying request.session.uid in template where uid is session
variable..
i have set request.sessio
Hello,
another way is to use OpenOffice:
- easy to use and feature reach graphical interface (Text, Draw,
Presentation or Speadsheet)
- Native PDF export (you don't need any Adobe product)
- standard Open Document Format (recommended way to populate data from
a template using LXML for example)
-
Hello,
What is the correct way to use gettext_lazy with string interpolation?
Aren't there built-in facilities for this in the Django?
Eugene
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On 12 июн, 04:53, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Has anyone successfully used Jasper Reports on the server being called
> from a Django view?
I've implemented a Jasper server in Jython. It listens on some network
port and generates Jasper reports based on data incoming from so
On 10 Jun 2007, at 21:05, CarlFK wrote:
>
> I use MySql Workbench for data modeling. It might be a good idea to
> have it create django's model.py. Has anyone done anything like this?
Fantastic idea.
I tried importing a database into it, and all worked great except for
foreign key relations
James Bennett wrote:
> So long as your code is in a location where your code can be imported
> by Python, there is another way; there are a couple of undocumented
> functions in the template system which handle the loading of tag
> libraries.
> [snip]
> So something like
>
> from django.temp
I inherited an online reporting/statistic web-app built with Spring
and Jasper Reports.
After being exposed to that, it is safe to say that I wont vulentarily
use Jasper in any future project, ever.
I haven't followed any of the links here, but iReport is a pretty
horrible program to work with a
2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> I've been playing with the sitemap stuff and am finding it to be quite
> slick. I do, however, have some questions about some unusual cases.
>
> 1)It works beautifully for listing all the detail pages that make up a
> list view, but what about
60 matches
Mail list logo