hi,
when I open a jpg file directly in firefox, I get a magnifying glass cursor,
which on clicking gives me a bigger more detailed image. The same file when
served through the get_photo_url in a django template does not give this -
how can I achieve this?
--
regards
KG
http://lawgon.livejourna
Hi Karen,
Thank you for your answer, but when i access the _errors att in a
controller methods, and
adds a new array containing a unicode string, it is not rendered like
the other error messages.
I see an output like
[u'Stuff happened']
where I put {{ form.field.errors }} in my template. I expe
John,
Looking at your exclude syntax, that might be the problem. This would be the
correct code (assuming modelform is used):
class OrderForm(ModelForm):
class Meta:
model = Order
exclude = ['number', 'state', 'state_since']
nb: The excluded fields have no null/blank/editab
Hi,
I was testing fill some chinese strings to the text field in the Django
admin page, and I got the Incorrect string value Error. I tried two models
which are defined in my app, and the strange thing is that the "for column"
fields are different in these two errors, one is 'change_message' an
I've seen the docs on how to relate the user with a 1-1 relationship (ie
profile) but is there a way to have another model relate in a 1:many
(ie one company with many users) - this would require user to have a
company field.
--~--~-~--~~~---~--~~
You received
I have a question about the exclude property in ModelForm. When I
have a Model and the ModelForm for it excludes a field from that
Model, shouldn't the ModelForm validation excludes that field as well?
It seems the only way to exclude the field from validation is to make
it blank=True in the Mod
You may also want to post this on djangogigs.com.
Good Luck
James
On Sun, Sep 28, 2008 at 9:38 AM, KnoxvilleDjangoDev <[EMAIL PROTECTED]> wrote:
>
> Apologies if I am not asking this question correctly, but i need some
> assistance. I have a site that was developed in Django and bottom
> line,
is it actually called url.py or urls.py ?
maybe you don't have the urls file in there that you are assuming you
do.
try inserting an egregious syntax error in there just to see if its
even being loaded.
On Sep 27, 8:21 pm, Chuck Bai <[EMAIL PROTECTED]> wrote:
> In my url.py, I define the root
megrez80 wrote:
> Hello,
> I'm currently prototyping a web application using Django which
> must be integrated into an existing PHP-based site. Can anyone comment
> on, or provider a pointer to documentation for, the issues involved.
> In particularly, how to go about inheriting the existing lo
well yes, I have to admit that I've been doing quite a bit of django
and I hadn't yet realized that it must always be the direct parent.
but in this case I was kind of just staring at the problem and not
seeing it.
and I think my dev environment python path is too loose or something.
now that i
Hi everyone,
I have a search results page and need to be able to go to a detail
page for any result. I would like to provide the user a way to return
to their search results and not clutter the querystring with search
parameters.
What's the best approach for this using Django? Should I stuff the
Hello,
I'm currently prototyping a web application using Django which
must be integrated into an existing PHP-based site. Can anyone comment
on, or provider a pointer to documentation for, the issues involved.
In particularly, how to go about inheriting the existing look-and-
feel.
Thanks.
K
On Sun, 2008-09-28 at 17:15 -0700, Brandon Taylor wrote:
> Hi everyone,
>
> I have a search form where I have multi-selects that contain foreign
> key values. When I post to my results page, I get a QueryDict object
> and can get the data out of the post into lists.
>
> My question is, what's t
On Sun, 2008-09-28 at 17:54 -0700, Chuck22 wrote:
> Anyone has any clue? The problem has not been resolved yet. Any
> referrence are welcome. Thanks.
I tried to repeat the problem from the information you provided, but I
couldn't do so. Do you have a small complete example that reliably
replicat
Anyone has any clue? The problem has not been resolved yet. Any
referrence are welcome. Thanks.
chuck
On Sep 27, 2:21 pm, Chuck Bai <[EMAIL PROTECTED]> wrote:
> In my url.py, I define the root my site is like this:
> urlpatterns = patterns('',
> url(r'^$', 'views.index', name="index"),
>
Your solution was what the documentation tells you to do.
I still contend that the documentation could better explain this, but
when I pushed that in the past others felt it was clear enough
already. Despite that, people still have problems, that or people
don't actually read the documentation. :
Hello,
I wrote up this big problem to ask you kind folx for help, and in the
course of that I figured it out.
But I'm still going to post it just to share the experience.
I have an apache config problem, maybe someone can help.
I am setting up the production version on my site :
apache conf
On Sun, 2008-09-28 at 21:25 +0200, Gerard Petersen wrote:
> Russel,
>
> Replies inline ...
>
> > The purpose of admin.autodiscover is to discover all the admin.py
> > files in your project. Each admin.py file will then need to contain
> > the ModelAdmin definitions and site.register() calls req
Hi everyone,
I have a search form where I have multi-selects that contain foreign
key values. When I post to my results page, I get a QueryDict object
and can get the data out of the post into lists.
My question is, what's the best way to go about filtering objects
where the foreign keys are arr
On Mon, Sep 29, 2008 at 7:27 AM, chiggsy <[EMAIL PROTECTED]> wrote:
>
> Just wondering if trunk is still stable? I've been using 1.0 and was
> debating switching back to trunk. What is the best practice?
Best practice depends on your requirements. Our intention is to keep
trunk as stable as it h
thanks.
On Sep 28, 7:28 pm, Ovnicraft <[EMAIL PROTECTED]> wrote:
> 2008/9/28 chiggsy <[EMAIL PROTECTED]>
>
>
>
> > Just wondering if trunk is still stable? I've been using 1.0 and was
> > debating switching back to trunk. What is the best practice?
>
> 1.0 is stable
>
>
>
> --
> [b]question = (t
2008/9/28 chiggsy <[EMAIL PROTECTED]>
>
> Just wondering if trunk is still stable? I've been using 1.0 and was
> debating switching back to trunk. What is the best practice?
1.0 is stable
>
> >
>
--
[b]question = (to) ? be : !be; .[/b]
--~--~-~--~~~---~--~~
Y
Just wondering if trunk is still stable? I've been using 1.0 and was
debating switching back to trunk. What is the best practice?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Since a Company could have multiple Products, it's not really possible
to show the product as well with the way you do the querying.
I would instead do a search on the Product model and then simply
iterate over the resulting products displaying the company for each of
them, too:
def search(
If anyone could have a look it would be much appreciated.
-Tom
On Sat, Sep 27, 2008 at 6:40 PM, Tom MacKenzie <[EMAIL PROTECTED]>wrote:
> http://django.pastebin.com/d1c579dbf
>
> Thanks!
>
>
> On Sat, Sep 27, 2008 at 5:48 PM, Ovnicraft <[EMAIL PROTECTED]> wrote:
>
>> is posible use pastebin? htt
Hi Alessandro,
Thanks for your reply.I know kill command.
But we are developing IDE for Django. So We want to know that how to stop
internal server using any command (example : /etc/init.d/httpd stop in
apache web server ).
Ravi Hingarajiya.
On Sun, Sep 28, 2008 at 1:25 PM, Alessandro R
Jeff :
Thanks for reply.
Ravi Hingarajiya
On Sun, Sep 28, 2008 at 2:41 PM, Jeff Anderson <[EMAIL PROTECTED]>wrote:
> Hingarajiya,Ravi wrote:
> > Hi Alessandro,
> >
> >Thanks for your reply.I know kill command.
> >
> > But we are developing IDE for Django. So We want to know that how
>
On Sun, Sep 28, 2008 at 2:35 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
> Hi all,
>
> Can I in any way add an error to a form field?
> I have a controller method (in views.py) which needs information from
> the session and information from the form (a CharField) to validate
> some logic. If
Hingarajiya,Ravi wrote:
> Hi Alessandro,
>
>Thanks for your reply.I know kill command.
>
> But we are developing IDE for Django. So We want to know that how
> to stop internal server using any command (example : /etc/init.d/httpd
> stop in apache web server ).
/etc/init.d/httpd stop is
okay guys, you've convinced me - it'll do a cronjob!
--~--~-~--~~~---~--~~
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 gr
On Sat, 27 Sep 2008 01:56:53 -0400 (EDT), Faheem Mitha
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just upgraded to Django 1.0, and I've just finished fixing all my unit
> tests. However, streaming file uploads are still broken. The behaviour I'm
> seeing is as follows:
>
> When I start the upload o
Julian wrote:
> hi there,
>
> i have written a middleware-class wich is doing what a cronjob should
> do. it is doing some backup-stuff, and repeats that every 12 hours. it
> is a thread and is placed in the list of middleware-classes, but not
> processing any request or overwriting any typical met
2008/9/28 Alessandro Ronchi <[EMAIL PROTECTED]>:
> 2008/9/28 Hingarajiya,Ravi <[EMAIL PROTECTED]>:
>> Hi All,
>>
>> I am very new in Django Framework.
>>
>> I want to know how to stop internal server without ctrl+c.
>>
>> For start command : python manage.py runserver
>> What is stop command ?
>>
>
2008/9/28 Hingarajiya,Ravi <[EMAIL PROTECTED]>:
> Hi All,
>
> I am very new in Django Framework.
>
> I want to know how to stop internal server without ctrl+c.
>
> For start command : python manage.py runserver
> What is stop command ?
>
> Ravi Hingarajiya
It's a process, so you can stop it like a
Russel,
Replies inline ...
> The purpose of admin.autodiscover is to discover all the admin.py
> files in your project. Each admin.py file will then need to contain
> the ModelAdmin definitions and site.register() calls required.
Ok, so the autodiscover is a recursive functionality that gathers
The obvious solution seems to be use a cron job, instead of trying to
strongarm django/apache into doing something that they aren't for.
There is no reason your cron job couldnt be a python script that uses django
classes/your model etc. if you want.
Tom
On Sun, Sep 28, 2008 at 8:11 PM, Julian <
hi there,
i have written a middleware-class wich is doing what a cronjob should
do. it is doing some backup-stuff, and repeats that every 12 hours. it
is a thread and is placed in the list of middleware-classes, but not
processing any request or overwriting any typical method for a
middleware cla
2008/9/8 Adrian Holovaty <[EMAIL PROTECTED]>:
>
> On Sun, Aug 31, 2008 at 10:07 PM, Benoit <[EMAIL PROTECTED]> wrote:
>> 1) Will The Django Book (online) be updated to comply with Django 1.0
>> API changes?
>
> I'd like for it to be updated, indeed -- but I'm not making any
Maybe you could at lea
Hi all,
Can I in any way add an error to a form field?
I have a controller method (in views.py) which needs information from
the session and information from the form (a CharField) to validate
some logic. If this fails, I want to add an error to the form field
saying its value is invalid, but can
Apologies if I am not asking this question correctly, but i need some
assistance. I have a site that was developed in Django and bottom
line, my developer is nowhere to be found at the last minute. So, I am
looking for a Django developer that can crank out some last minute
tweaks in the code, migr
Hi,
I have the same, so I've decided to live with the following
workaround.
Form.clean() is not reported properly for inlines but
Form.clean_() works fine.
In theory only Form.clean() is recommended for cross field validation
but in fact Form.clean_() can also refer to the other
fields.
However t
But you only have a single comment model to wire to, unless I'm
missing something.
Erik
On 28.09.2008, at 19:03, Benjamin Buch wrote:
> Hi Erik,
>
> thanks for your reply.
> You are right, the comments are not tied to a particular model, but
> to three of them.
> Instead of wiring up all thr
Hi Erik,
thanks for your reply.
You are right, the comments are not tied to a particular model, but to
three of them.
Instead of wiring up all three models, I thought I could do this in
one place.
As I write this reply, I realize that it is perhaps not such a good
idea to do so.
It would be
Hi
Since friday I get this error for EVERY upload on a page. I thought it
was my latest change so reverted, but error stayed. This is, the least
to be said, irritating:
"IOError: image file is truncated (10 bytes not processed)"
The miracle continues: when I Reload my apache, the file is actual
The way I see it is that your comment notification is not tied to any
particular application that has commentable models but instead is more
like a project related thing. So depending on your source layout, I'd
put them somewhere in the project. Basically this relates to the
application reu
Dear List,
thank you Malcolm for your reply. I don't have anything really
specific, but I *think* I know so much now:
We have some static sites, those are already ported to the dcms
(language support) pluggable, so the cms part is pretty much solved.
That is true for Liferay as well, since it has
Steve Holden wrote:
> Paddy Joy wrote:
>
>> I have a model with a 'User' foreign key.
>>
>> class Domain(models.Model):
>> .
>> owner = models.ForeignKey(User)
>>
>> I have a requirement to only allow superuers to change the 'owner'
>> field.
>>
>> I can do this by creating two mod
Paddy Joy wrote:
> I have a model with a 'User' foreign key.
>
> class Domain(models.Model):
> .
> owner = models.ForeignKey(User)
>
> I have a requirement to only allow superuers to change the 'owner'
> field.
>
> I can do this by creating two model forms and excluding the 'owner'
>
Ignore this post. I just realized that this is easily achieved by
overriding admin templates.
On Sep 28, 8:32 am, Walter K <[EMAIL PROTECTED]> wrote:
> I'm wondering if there's a relatively simple way to have an "inline"
> change list in the admin site. I have a parent-child relationship
> wher
I'm wondering if there's a relatively simple way to have an "inline"
change list in the admin site. I have a parent-child relationship
where the children have way too many fields to do inline editing, so
I'd prefer to have an non-editable list of links to the children
instead. It'd be great if t
Hi!
We're trying to build a multi-page form using FormWizard. We need to
authorize the user first. In other views we use the user_passes_test
decorator, however the documented way of using FormWizard is to
include it directly in the urlconf:
(r'^contact/$', ContactWizard([ContactFor
Hi,
I'm using the new comments framework, and I'd like to get notified by
mail when someone posts a comment.
How to di it I think I know, but I'm not quite sure where the code
should live.
The website has several kinds of entries where users can comment on,
so it would feel a little odd to p
On Sep 28, 12:21 pm, Caisys <[EMAIL PROTECTED]> wrote:
> Hi,
> I am new to django and mvc. I have php and asp experience. I followed
> the tutorial and would like to create a site that will act as as a
> sort of city guide. to Simplify things I will assume the site will
> have 5 types of informati
Caisys wrote:
> Hi,
> I am new to django and mvc. I have php and asp experience. I followed
> the tutorial and would like to create a site that will act as as a
> sort of city guide. to Simplify things I will assume the site will
> have 5 types of information:
>
> 1-Hotels
> 2- Monuments
> 3-Venue
Hi,
I am new to django and mvc. I have php and asp experience. I followed
the tutorial and would like to create a site that will act as as a
sort of city guide. to Simplify things I will assume the site will
have 5 types of information:
1-Hotels
2- Monuments
3-Venues
4-Peformers
5-Concerts (have
On Sep 28, 10:47 am, Jeremy Sandell <[EMAIL PROTECTED]> wrote:
> On Sep 26, 1:25 pm, David Zhou <[EMAIL PROTECTED]> wrote:
>
>
>
> > I've also heard good things about WSGI -- though I haven't heavily
> > tested its stability compared to, say,mod_python.
> > ---
> > David Zhou
> > [EMAIL PROTEC
On Sun, Sep 28, 2008 at 4:39 PM, Gerard Petersen <[EMAIL PROTECTED]> wrote:
>
> Russell,
>
> Is it correct to say that the admin.autodiscover statement should register
> the models in 'myapp', and therefore I don't need the individual
> admin.site.register statement for each model?
No - that is
i the same problem the other day... i was using the name "search" for my
named url. i dropped in the the python interpreter and tried it there,
failed. i tried some other named urls in the same urls.py, and they
worked. i didn't look at it long and just moved onto another piece of the
project..
Russell,
Is it correct to say that the admin.autodiscover statement should register the
models in 'myapp', and therefore I don't need the individual
admin.site.register statement for each model?
Without the register statements I don't see the group of models (for myapp) and
myapp itself in th
Malcom,
This seems so obvious, I'm working on an invoice system and already passed the
chapter on rounding decimals. I still am somewhat overwhelmed I guess by all
that Django does. Nevertheless, it's impressive how good Django keeps to
(python) conventions.
Thanx a lot.
Regards,
Gerard.
I have a model with a 'User' foreign key.
class Domain(models.Model):
.
owner = models.ForeignKey(User)
I have a requirement to only allow superuers to change the 'owner'
field.
I can do this by creating two model forms and excluding the 'owner'
field from one:
class DomainForm
61 matches
Mail list logo