bfrederi wrote:
> It turns out I am having the same issue. I just added on batchadmin
> and I can't seem to override templates across the entire project (I
> wanted to add some JQuery to filters.html). How did you solve your
> problem?
Apologies, I don't clearly remember, but I just checked my se
I have never used ModelForms, but this line as you wrote will not work
form.members.add(request.user) # THIS LINE DOESNT WORK
try instead:
form.managers.add(request.user)
Or you can write your own save() function, that will do all the stuff (no
need to call to saves function
Hi,
I'm writing some tests for a view that sets entries in the session.
Everything works fine, the entries are properly set and the session
seems to work ok (using the default DB SessionStore).
However, I can't seem to find how to clear the session. I've tried the
following, which doesn't work:
if request.method == 'POST':
form = EventForm(request.POST)
if form.is_valid():
form.save()
form.members.add(request.user) # THIS LINE DOESNT WORK
form.save_m2m()
return HttpResponseRedirect('/events/')
else:
form = Ev
On Nov 27, 12:54 am, izzy <[EMAIL PROTECTED]> wrote:
> I still don't get it.
"distinct()" is a queryset method for the "objects" manager, just like
"all()" is. Since author is a link to the "auth.models.User" class,
you would list all unique users with:
users = auth.models.User.objects.distinct
Okay, thanks. That would be my last resort..
But not all users can create reports. I only want to users that have
created a report.. I doubt that django don't support this kind of
query. I hope not.
let me elaborate it again.
Reports have following fields in models.py:
title
category
On Nov 27, 7:17 pm, Julien Phalip <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm writing some tests for a view that sets entries in the session.
> Everything works fine, the entries are properly set and the session
> seems to work ok (using the default DB SessionStore).
>
> However, I can't seem to find
Are you sure, that your django installation is complete? Esp.: Do you
have a db/backends/dummy/base.py and a db/backends/dummy/__init__.py
in
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/
?
-- Horst
On Thu, Nov 27, 2008 at 6:02 AM, jconway <[EMA
hey,
please don't shoot me if i got it wrong. but i would try this:
report = Reports.objects.filter(author__in = [John, Karl, Jens, Sepp]
Maybe you have to create a more suitable list with Author objects.
let me know, if this has solved your issue.
On Nov 27, 9:43 am, izzy <[EMAIL PROTECTED]>
sorry, just got it. that's not the right answer to your question.
On Nov 27, 10:38 am, tom <[EMAIL PROTECTED]> wrote:
> hey,
>
> please don't shoot me if i got it wrong. but i would try this:
>
> report = Reports.objects.filter(author__in = [John, Karl, Jens, Sepp]
>
> Maybe you have to create a
Thanks for the quick reply.
I almost gave up, but I just found something that seems to work for
me.
So I've tried:
---
filename = codecs.BOM_UTF8.decode(postfile['filename'])
---
...which gave a LookupError.
Then I tried casting to Unicode:
---
filename = unicode(postfile['filename'])
---
...whi
forgot to add that I am using django-1.0.1
On Nov 26, 9:43 pm, "frank h." <[EMAIL PROTECTED]> wrote:
> I am writing a simple tag as follows:
>
> -
> from django.template import Library
> from django.utils.safestring import mark_for_escaping
>
> register = Library()
>
> @register.simpl
Wiadomość napisana w dniu 2008-11-27, o godz. 12:21, przez [EMAIL PROTECTED]
:
> Does anybody know of a Python script or Django module that can handle
> address book email importing? For instance, if I type my gmail email
> and password it will then fetch all of the email addresses. I know of
>
does this help
Accessing your Gmail contact list with Python (http://www.holovaty.com/
blog/archive/2004/06/20/0241)
[EMAIL PROTECTED] schrieb:
> Hi guys,
>
> Does anybody know of a Python script or Django module that can handle
> address book email importing? For instance, if I type my gmail ema
Thanks guys, I've had a think about your security points Jarek. I
guess it's a tough decision to make... :-\
On Nov 27, 11:47 am, Brot <[EMAIL PROTECTED]> wrote:
> does this help
> Accessing your Gmail contact list with Python (http://www.holovaty.com/
> blog/archive/2004/06/20/0241)
>
> [EMAIL P
Alex,
Many thanks, that has perfectly fixed my problem.
It's things like this that make me exited about django; for the first
time I feel I'm engineering rather than hacking with a framework.
Cheers,
On Nov 26, 11:14 pm, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> Url patterns can have names
sorry for this, i clicked the wrong link.
On Nov 26, 11:18 pm, "Aljosa Mohorovic" <[EMAIL PROTECTED]>
wrote:
> You will like it.
>
> Click to find out why
>
> You also have the following outstanding friend requests:
>
> Bakheet Harire <[EMAIL PROTECTED]>
>
> You can accept or reject all of these
Hi all,
I would like to implement a data upload feature in admin interface
for my application. A form with file upload field will be show for a
data model.
The file should be a XML file which is generated by another program
and contain more than one record of data.
Anybody implemented simila
I am trying to create a blog using django 1.0 and wan't to know how to
us the forms engine of django 1.
Is there a good tutorial which uses the advantage of the forms
library.
I checked the docs but the example provided is not clear.
--~--~-~--~~~---~--~~
You rece
In contiuation to my previous queries.
As soon as I put this daemonize=false option and run the fcgi
instances, another error is getting printed in the console: The error
is raised by flup, what is this have to do?
File "/repo/django_src/django/core/management.py", line 1666, in
execute_from_
Why don't write {% url delete-quote-page object.id %} ?
HTH
//Thomas
On Nov 27, 2:19 pm, dash86no <[EMAIL PROTECTED]> wrote:
> I'm trying to use a URL tag as following:
>
> delete
>
> my named url is here:
>
> url(r'^quote/delete/(?P\d+)/$',
> 'django.views.generic.create_update.delete_object',
checkout this
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/
> I am trying to create a blog using django 1.0 and wan't to know how to
> us the forms engine of django 1.
> Is there a good tutorial which uses the advantage of the forms
> library.
>
> I checked the docs but the examp
On 27 nov, 14:19, dash86no <[EMAIL PROTECTED]> wrote:
(snip)
> However, when I do :
>
> delete
>
> I get the error:
>
> Caught an exception while rendering: Reverse for 'sam_project.delete-
> quote-page,' with arguments '('',)' and keyword arguments '{}' not
> found.
>
> If anyone has any hints th
John,
Thank you for the kind words and advice.
Also, thanks for pointing out about the template requirements.
My big problem with the method I posted above, ie:
{% block options %} http://localhost:8000/sam/quote/
delete/{{ object.id }}">delete{% endblock %}
is that it violates the DRY prin
I'm trying to use a URL tag as following:
delete
my named url is here:
url(r'^quote/delete/(?P\d+)/$',
'django.views.generic.create_update.delete_object', dict(quote_info,
post_delete_redirect='/sam/'), name="delete-quote-page"),
If I change the code to look like this:
http://localhost:8000/
Hy all!
I'm trying to use Radius to Auth in to Django.
This is the code im using for the auth backend : http://pastebin.com/m57597407
Using Django 1.0.2, Ubuntu Intrepid
This is my error Report :
---
Environment:
Hi guys,
Does anybody know of a Python script or Django module that can handle
address book email importing? For instance, if I type my gmail email
and password it will then fetch all of the email addresses. I know of
plenty of paid PHP scripts around that allow gmail, hotmail, aol etc.
Is there
On Nov 27, 10:43 pm, bruno desthuilliers
<[EMAIL PROTECTED]> wrote:
> On 27 nov, 14:19, dash86no <[EMAIL PROTECTED]> wrote:
> (snip)
>
> > However, when I do :
>
> > delete
>
> > I get the error:
>
> > Caught an exception while rendering: Reverse for 'sam_project.delete-
> > quote-page,' with arg
hello,
I have also installed it and have seen there is this branch:
http://wiki.netbeans.org/Python#section-Python-DjangoBranch
anybody has installed this version of the branch ?
r
On Nov 20, 8:04 pm, ohmi <[EMAIL PROTECTED]> wrote:
> Same results here although other sorts of autocomplete to s
download this file from the internet
Apress.Practical.Django.Projects.Jun.2008.pdf
On Nov 27, 1:06 pm, JDDJ <[EMAIL PROTECTED]> wrote:
> I am trying to create a blog using django 1.0 and wan't to know how to
> us the forms engine of django 1.
> Is there a good tutorial which uses the advantage o
I had the same problem recently in a template that was created for use
in an inclusion_tag. My workaround was to the perform the reverse call
in the templatetag and pass in the resulting url.
If that is not an appropriate workaround for you, perhaps a "with"
will do the trick. If that doesn't wor
More to the point - has anyone figured out how to! I couldn't even
find a dowload or repository link for the Django branch.
On Nov 27, 2:21 pm, Robin <[EMAIL PROTECTED]> wrote:
> hello,
>
> I have also installed it and have seen there is this
> branch:http://wiki.netbeans.org/Python#section-Pyth
2008/11/27 AndyB <[EMAIL PROTECTED]>
>
> More to the point - has anyone figured out how to! I couldn't even
> find a dowload or repository link for the Django branch.
>
> On Nov 27, 2:21 pm, Robin <[EMAIL PROTECTED]> wrote:
> > hello,
> >
> > I have also installed it and have seen there is this br
Graham,
thanks for answering! it still feels odd comapred to the otherwise
wisely designed parts of django... adding a directory AND its parent
to a source path is something i have never experienced in any
framework, in any language before. But then there is something new to
learn every day ;)
i
Just figured out what the problem was.
add to encode "username" to utf-8 to send it to the radius.
username_enc = username.encode('utf-8')
and use it in the server connection.
iGama wrote:
> Hy all!
>
> I'm trying to use Radius to Auth in to Django.
>
> This is the code im using for the au
Hi,
On Nov 27, 2:06 pm, architecture <[EMAIL PROTECTED]> wrote:
> download this file from the internet
>
> Apress.Practical.Django.Projects.Jun.2008.pdf
>
Not trying to be holier than thou here, but suggesting on an official
Django mailing list to pirate a book written by one of the Django core
Thanks for the tips, signals would work except I need access to the
raw password when users are created.
On further inspection it seems I would need to override the
UserManager, I know I can extend it with more methods but I don't
think I can override it.
Paddy
On Nov 27, 12:39 am, sergioh <[EM
On 27 nov, 17:11, Paddy Joy <[EMAIL PROTECTED]> wrote:
> Thanks for the tips, signals would work except I need access to the
> raw password when users are created.
>
> On further inspection it seems I would need to override the
> UserManager,
On even further inspection, you may in fact want to
Hi,
Which is the best/recommended way to modify admin css ?
I know I can copy the admin templates to my templates dir and modify
them as I wish, but that could be a problem in the future if these
templates are updated in a new version and I want to switch to that version.
Thanks in advance.
Yes, the performance would be worse. Would you ever notice it? I'd
seriously doubt it. You mentioned running it in a cron job; you'd
never see the effects of the lowered performance. The lack of added
complexity might be worth it--less code (in this case) means easier to
maintain. If you're w
Hi all,
A little while ago, I needed to write a number of simple static
websites. I would have done everything in pure HTML if it would not
have been for the site navigation: adding a single page would have
forced me to edit the menu of all existing pages. It was clear that
the pure HTML approach
Saurabh,
No problem--happy to help. And I won't ignore your last question.
The server I was referring to was, indeed, a layer of insulation--but
not for Django. Its purpose is to avoid giving the GUI clients direct
access to the database, by delivering objects back and forth across
the network,
On Nov 27, 5:07 pm, Matias Surdi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Which is the best/recommended way to modify admin css ?
>
> I know I can copy the admin templates to my templates dir and modify
> them as I wish, but that could be a problem in the future if these
> templates are updated in a n
I discovered Django when the 0.96 book appeared in the programming
section of reddit and I think it's too bad it is not getting updated
for the 1.0 version. I know that the information in the book is
redundant with the official documentation (which kicks ass) but I like
the way it is structured an
I'm using MySQL and running 1.0.2 and the bug is still there.
This ticket:
http://code.djangoproject.com/ticket/9039
is closed, but the code still hasn't been fixed and the mentioned
patch doesn't seem to work.
Has anyone gotten this to work?
On Nov 24, 8:23 pm, boardman <[EMAIL PROTECTED]> wr
On Nov 28, 2:18 am, Flo Ledermann <[EMAIL PROTECTED]> wrote:
> Graham,
>
> thanks for answering! it still feels odd comapred to the otherwise
> wisely designed parts of django... adding a directory AND its parent
> to a source path is something i have never experienced in any
> framework, in any
Since haven't seen a response to my other questions and with Malcolm's
rebuff to your idea, do I take it you aren't interested any more?
Graham
On Nov 27, 5:19 pm, Brian <[EMAIL PROTECTED]> wrote:
> Malcolm:
>
> Thanks for the reply.
>
> > Whilst I'm all in favour of attempting to solve problems
I would also think that way because if the number won't hit somethin
like 100k+ all could be done on the database level because it would be
easier to maintain. It would be even better if new CVS project can
only be created through django or some other way which would be better
to have a cron job s
It says for requesting username as password to access. Did I miss
anything here?
On Nov 27, 11:14 pm, Ovnicraft <[EMAIL PROTECTED]> wrote:
> 2008/11/27 AndyB <[EMAIL PROTECTED]>
>
>
>
> > More to the point - has anyone figured out how to! I couldn't even
> > find a dowload or repository link for
Hi Graham,
Sorry I didn't respond earlier - for some reason your last reply with
the questions didn't show up until late today. Very odd -- didn't mean
to ignore your question or give the impression that I was ignoring it.
I most certainly am interested in potential solutions.
> I don't know how
Hi all!
I'm just curious if its possible in django to send automatic emails
based on the data in the database?
If its possible how can it be implemented?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
On Friday 28 November 2008 06:46:57 am izzy wrote:
> I'm just curious if its possible in django to send automatic emails
> based on the data in the database?
what do you mean by 'automatic emails"? Do you mean emails at some fixed time,
or emails based on changes in the database? In the first ca
On Thu, 2008-11-27 at 10:03 +0100, Horst Gutmann wrote:
> Are you sure, that your django installation is complete? Esp.: Do you
> have a db/backends/dummy/base.py and a db/backends/dummy/__init__.py
> in
> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/dj
On Thu, 2008-11-27 at 00:43 -0800, izzy wrote:
> Okay, thanks. That would be my last resort..
>
> But not all users can create reports. I only want to users that have
> created a report.. I doubt that django don't support this kind of
> query. I hope not.
So filter on the Users that can create
On Thu, Nov 27, 2008 at 11:21 AM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> I'm keen to try to find some proper ways to fix this, but before I go
> too deep into the bowels of Django's testing framework, I was
> wondering what would be the criticisms you'd have about the "solution"
> I came up
On Thu, 2008-11-27 at 07:33 -0800, Benjamin Wohlwend wrote:
[...]
> but suggesting on an official
> Django mailing list to pirate a book written by one of the Django core
> devs is stretching it a bit, don't you think?
Have you looked at the license under which that book was released?
http://w
On Thu, 2008-11-27 at 02:06 -0800, JDDJ wrote:
> I am trying to create a blog using django 1.0 and wan't to know how to
> us the forms engine of django 1.
> Is there a good tutorial which uses the advantage of the forms
> library.
>
> I checked the docs but the example provided is not clear.
Th
On Nov 28, 1:21 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On Thu, Nov 27, 2008 at 11:21 AM, Julien Phalip <[EMAIL PROTECTED]> wrote:
>
> > I'm keen to try to find some proper ways to fix this, but before I go
> > too deep into the bowels of Django's testing framework, I was
> > wonder
On Nov 27, 9:28 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On Friday 28 November 2008 06:46:57 am izzy wrote:
>
> > I'm just curious if its possible in django to send automatic emails
> > based on the data in the database?
>
> what do you mean by 'automatic emails"? Do you mean emails at
Hi,
I'm using Django 1.0.2, psycopg2 and PgSQL 8.3 on Ubuntu...
I've created a models.py with the following structure to represent a
"party model". The target for this is a simple CRM system.
Structure:
class Party(models.Model):
class Meta:
abstract = True
class Organ
I've tried to run the command "[EMAIL PROTECTED]:/home/mysite$
python manage.py startapp polls" but I recieved the following error
message:
Traceback (most recent call last):
File "manage.py", line 4, in
import settings # Assumed to be in the same directory.
File "/home/mysite/settin
Hi,
I am working for a client who requires their django-powered site to be
read in Dutch (nl) and Flemish (nl_BE) (and other languages). Although
the two languages are very, very similar, there are differences in the
text that has been supplied to me.
I have created a directory under 'locale' ca
On Nov 28, 12:06 pm, Brian <[EMAIL PROTECTED]> wrote:
> > For each account, through what do they login initially? Are you
> > expecting to use Django based login mechanisms for that, or do you
> > front it all with HTTP Basic Authentication. If you are going to
> > somehow switch based on their id
On Thu, Nov 27, 2008 at 8:12 PM, boloris <[EMAIL PROTECTED]> wrote:
> Can you help-me?
The error tells you that some edit you have made to your settings file
caused it to no longer be a valid Python source-code file. Your best
bet is to perhaps try out a Python tutorial to learn the Python
prog
On Thu, Nov 27, 2008 at 5:11 PM, Chris Smith
<[EMAIL PROTECTED]> wrote:
> From experience with other ORM platforms (nHibernate, custom built),
> I'd expect this to flatten out to a table with approximately the
> structure:
You probably want to read the official Django documentation on how
model i
On Thu, 2008-11-27 at 15:11 -0800, Chris Smith wrote:
> Hi,
>
> I'm using Django 1.0.2, psycopg2 and PgSQL 8.3 on Ubuntu...
>
> I've created a models.py with the following structure to represent a
> "party model". The target for this is a simple CRM system.
> Structure:
>
> class Party(models
On Thu, 2008-11-27 at 13:42 -0800, Foundatn wrote:
> Hi,
>
> I am working for a client who requires their django-powered site to be
> read in Dutch (nl) and Flemish (nl_BE) (and other languages). Although
> the two languages are very, very similar, there are differences in the
> text that has be
Maybe you could override the save method in a New User Model Form:
save_model(self, request, obj, form, change)
So you can:
admin.site.unregister(User)
admin.site.register(User, NewModelForm)
http://docs.djangoproject.com/en/dev/ref/contrib/admin/
I hope this could help you!
And finally the
On Nov 26, 4:25 pm, fiedzia <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am trying to achieve the following effect:
>
> A ModelForm containing list of choices and input to possibly add
> another
> element to the list is presented on page.
> If user will not choose any item from list and will type somet
> > This is a good question, and I haven't come to a conclusion. Probably
> > it'll be the Django built-in application-based authentication,
> > particular to each Django instance. There will be a master map of all
> > users to their respective Django instance.
>
> That seems a bit like a chicken
On Thu, Nov 27, 2008 at 3:14 PM, Yanik <[EMAIL PROTECTED]> wrote:
>
> I'm using MySQL and running 1.0.2 and the bug is still there.
>
> This ticket:
> http://code.djangoproject.com/ticket/9039
>
> is closed, but the code still hasn't been fixed and the mentioned
> patch doesn't seem to work.
>
> H
On Fri, Nov 28, 2008 at 9:31 AM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
> On Thu, 2008-11-27 at 07:33 -0800, Benjamin Wohlwend wrote:
> [...]
>
>> but suggesting on an official
>> Django mailing list to pirate a book written by one of the Django core
>> devs is stretching it a bit, don't y
On Fri, 2008-11-28 at 11:16 +0700, Ronny Haryanto wrote:
[...]
> Malcolm, I think the previously mentioned book was Practical Django
> Projects by James Bennett, not the Django Book.
Indeed. My mistake. I apologise.
The pirate bastard should be hung from the yard arm, then. No excuses.
Regards
Horst & Malcolm
Thank you for your suggestions, they helped me determine that the
problem is machine specific.
On Nov 27, 3:03 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote:
> Are you sure, that your django installation is complete? Esp.: Do you
> have a db/backends/dummy/base.py and a db/backe
74 matches
Mail list logo