Re: file manager options for user home directory

2012-01-18 Thread Mike Dewhirst
On 19/01/2012 2:10pm, Brian Schott wrote: Looking for some expert advice. I need to provide an upload and file browse capability for a user's home directory. It doesn't have to be a full blown file explorer necessarily, just a basic upload, download, rename, delete. What's the best way to deal

file manager options for user home directory

2012-01-18 Thread Brian Schott
Looking for some expert advice. I need to provide an upload and file browse capability for a user's home directory. It doesn't have to be a full blown file explorer necessarily, just a basic upload, download, rename, delete. What's the best way to deal with the userid issues on Linux? The f

Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-18 Thread Chen Xu
Hi, everyone: Could someone please give some suggestions about how to set up email sending settings on production. I know on local, you can do either: python -m smtpd -n -c DebuggingServer localhost:1025 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'localhost' EMA

ANN: Releasing Django Media Tree, a media file management application for the Django admin

2012-01-18 Thread Samuel Luescher
Today I am publicly releasing Django Media Tree, a state of the art media file management application for the Django admin. Django Media Tree is a Django app for managing your website’s media files in a folder tree, and using them in your own applications. It has been in the works for over two

Re: Having Headache With LoginForm

2012-01-18 Thread coded kid
Thanks bro. Don't you think I should import Login in urls.py? What about / in before the $ in urls.py? Or I should just place it like that? Mark Furbee wrote: > This is my login process. > > urls.py: > url(r'^login$', 'views.Login'), > url(r'^logout$', 'views.Logout'), > > > views.py: > def Login(

Re: Missing something obvious? Question about forms

2012-01-18 Thread kenneth gonsalves
On Wed, 2012-01-18 at 09:42 -0500, Jeff Heard wrote: > but there is no "ListField" How is this normally handled? > multiplechoicefield? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

SOPA middleware

2012-01-18 Thread Gabriel Gunderson
Django peeps, I know it's a little late to make much use of the code, but I thought I'd mention it anyway... See the SOPA middleware in action (will auto-heal tonight): http://izeni.com/ Download it: http://dl.dropbox.com/u/47654226/sopa_protest.tar.gz It was quickly hacked together and no doub

Re: pre_remove and post_remove "actions" not sent via m2m_changed signalling?

2012-01-18 Thread Jeff Blaine
Answering my own question: https://code.djangoproject.com/ticket/16073 :( Thanks to IRC #django-users : carljm and domguard -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/

Re: Using VideoLibrary from web2py appliances

2012-01-18 Thread Russell Keith-Magee
On Wed, Jan 18, 2012 at 6:24 PM, Hassan wrote: > Dear all , > > how can i use the  VideoLibrary from web2py appliances  , i installed > the pack to my web2py but its not converting any videos !! , how can i > fix it  and is this application can be used in in a website and i can > deploy it ?? I t

ImageField filename

2012-01-18 Thread Mike Dewhirst
How do I get the actual filename of the uploaded image? The docs mention ... FileField.upload_to A local filesystem path that will be appended to your MEDIA_ROOT setting to determine the value of the url attribute. ... and presumably the widget which uploads the image knows the filename to t

A problem with a solution, but is it the right one?

2012-01-18 Thread Jeff Heard
My basic problem is this: I have multiple kinds of requests that come in, and some of them share parameters and valid values and default values. I cannot expect my users to pass all form values on the URL line, but unpassed parameters must be set to appropriate defaults, not merely None. These sha

How can I run multiple django sites with celery?

2012-01-18 Thread mongoose
Hi there, I have one website using celery just fine but now when I try with a second website it's tasks don't seem to do anything. In my celeryd conf under /etc/default I've set some lines like this: # Name of nodes to start, here we have a single node CELERYD_NODES="w1" # or we could have three

Re: tutorial 2 admin site problem

2012-01-18 Thread Sandro Dutra
'Cause you only reproduce the steps and don't try to understand what's happening. In URLS file you'll see the administration is pointed to '^admin/', so you'll acess the administration via www.yoursite.com/admin, in your case, running on localhost and port 8000 localhost:8000/admin, it's obvious yo

Re: Missing something obvious? Question about forms

2012-01-18 Thread Jeff Heard
There is no presentation layer, actually. I mean, theoretically the forms could be rendered, but I really just want them to validate input data AND.. and this is the kicker, AND I need them to provide default values, which Forms as I understand, don't do, except for presentation. As in, when I pu

pre_remove and post_remove "actions" not sent via m2m_changed signalling?

2012-01-18 Thread Jeff Blaine
Hi all, http://dpaste.org/1vhf6/ With the following models.py, and the output seen further down, can anyone explain why pre_remove and post_remove "actions" are not happening when I remove an item from a M2M relation? class Interface(models.Model): name = models.CharField('Interface',

Re: Having Headache With LoginForm

2012-01-18 Thread Mark Furbee
This is my login process. urls.py: url(r'^login$', 'views.Login'), url(r'^logout$', 'views.Logout'), views.py: def Login(request, next=None): """ Used to log into the application. """ # If the user is authenticated pass them through to the homepage. if request.user.is_a

Re: url name to generic class-based views with parameters?

2012-01-18 Thread Mark Stahler
Aha, thanks guys. Very simple now that it was pointed out. -- 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 django-users+unsubscr..

Re: Having Headache With LoginForm

2012-01-18 Thread Mark Furbee
Is that template mainpage.html? I'm not sure exactly what you mean is happening. When you open the login page it takes you back to the home page? Also, I would add in the my_login view that if they are already logged in to redirect them to another page besides the login page. As your view is now,

Re: Missing something obvious? Question about forms

2012-01-18 Thread Tom Evans
That would probably do it. You may also need to give it a different widget, I'd guess that a is not how you would present this to the user - although maybe you are just using the form for processing and not to generate a presentation layer. Cheers Tom On Wed, Jan 18, 2012 at 4:01 PM, Jeff Heard

Re: Missing something obvious? Question about forms

2012-01-18 Thread Jeff Heard
Sadly these strings are arbitrary, yes... I suppose I could subclass MultipleChoiceField and kill the validator. On Wed, Jan 18, 2012 at 10:54 AM, Tom Evans wrote: > On Wed, Jan 18, 2012 at 3:51 PM, Andre Terra wrote: > > https://docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield > > >

Re: Missing something obvious? Question about forms

2012-01-18 Thread Andre Terra
In this case, I think he can subclass it and override the validate method[0] and simply allow any choice to pass, right? Cheers, AT [0] https://code.djangoproject.com/browser/django/trunk/django/forms/fields.py#L780 On Wed, Jan 18, 2012 at 1:54 PM, Tom Evans wrote: > On Wed, Jan 18, 2012 at

Re: url name to generic class-based views with parameters?

2012-01-18 Thread Andre Terra
https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#url # template.html {% load url from future %} {% url videos pk=video.pk %} # While we're at it, consider defining a more verbose name to the url, such as 'video-detail'. I personally like t

Re: Missing something obvious? Question about forms

2012-01-18 Thread Tom Evans
On Wed, Jan 18, 2012 at 3:51 PM, Andre Terra wrote: > https://docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield > https://docs.djangoproject.com/en/dev/ref/forms/fields/#django.forms.MultipleChoiceField > > That is how I almost replied, but a MultipleChoiceField constrains the submitted

Re: url name to generic class-based views with parameters?

2012-01-18 Thread Tom Evans
On Wed, Jan 18, 2012 at 3:46 PM, Mark Stahler wrote: > Can someone explain how to link using url names to class-based views > that include parameters? > > Example: > > url(r'^video/(?P\d+)/$', VideoView.as_view()), > > works but all my links have to manually have "/video/{{ video.id }}/" > or simi

Re: Missing something obvious? Question about forms

2012-01-18 Thread Andre Terra
https://docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield https://docs.djangoproject.com/en/dev/ref/forms/fields/#django.forms.MultipleChoiceField Cheers, AT On Wed, Jan 18, 2012 at 12:42 PM, Jeff Heard wrote: > I have a largish API I have to implement from a standard, and it requires

Re: url name to generic class-based views with parameters?

2012-01-18 Thread J. Cliff Dyer
You need to use {% url videos video.id %} or {% url videos pk=video.id %} On Wed, 2012-01-18 at 07:46 -0800, Mark Stahler wrote: > Can someone explain how to link using url names to class-based views > that include parameters? > > Example: > > url(r'^video/(?P\d+)/$', VideoView.as_view()), >

url name to generic class-based views with parameters?

2012-01-18 Thread Mark Stahler
Can someone explain how to link using url names to class-based views that include parameters? Example: url(r'^video/(?P\d+)/$', VideoView.as_view()), works but all my links have to manually have "/video/{{ video.id }}/" or similar. I cannot get {% url videos %}{{ video.id }} to work with the fol

Re: Any way to not create default Django permissions?

2012-01-18 Thread Stodge
Awesome - thanks for the description. On Jan 18, 9:45 am, Tom Evans wrote: > On Wed, Jan 18, 2012 at 1:50 PM, Stodge wrote: > > I have a particular use case where the default permissions don't work > > for me. I know I can create a custom auth backend, but if I do that, > > is there a clean, leg

Re: Any way to not create default Django permissions?

2012-01-18 Thread Tom Evans
On Wed, Jan 18, 2012 at 1:50 PM, Stodge wrote: > I have a particular use case where the default permissions don't work > for me. I know I can create a custom auth backend, but if I do that, > is there a clean, legal way to not create the default model > permissions? Thanks > If you have the djang

Case insensitive query dictionaries

2012-01-18 Thread Jeff Heard
I have a standard that requires that HTTP parameter names be case-insensitive, and while I thought for awhile I could ignore that requirement, I've found that clients use all kinds of case structures on their parameters, so I need case insensitivity. Is there a standard way to ignore the case of p

Missing something obvious? Question about forms

2012-01-18 Thread Jeff Heard
I have a largish API I have to implement from a standard, and it requires very complex HTTP processing. I'd like to use django.forms.Form for that, but I can't figure out how to use a form to store a list of parameters. So while my homemade code might be: foo = int(request.get('foo', '1')) bar =

Any way to not create default Django permissions?

2012-01-18 Thread Stodge
I have a particular use case where the default permissions don't work for me. I know I can create a custom auth backend, but if I do that, is there a clean, legal way to not create the default model permissions? Thanks -- You received this message because you are subscribed to the Google Groups

Re: tutorial 2 admin site problem

2012-01-18 Thread Denis Darii
You can replace: url(r'^admin/', include(admin.site.urls)), > with: url(r'^/', include(admin.site.urls)), > in your *urls.py* if you really want to have the admin at /. But are you aware of what this implies? On Wed, Jan 18, 2012 at 12:31 PM, Krondaj wrote: > Hi, > > I have just started tutori

tutorial 2 admin site problem

2012-01-18 Thread Krondaj
Hi, I have just started tutorial part 2 and in part 2.4.1. I have added django.contrib.admin to the INTALLED_APPS part of mysettings.py I syncd the db I uncommented the requierd three lines from urls.py in mysite folder I ran the runserver, and go to 127.0.0.1:8000, using chromium This is what

Using VideoLibrary from web2py appliances

2012-01-18 Thread Hassan
Dear all , how can i use the VideoLibrary from web2py appliances , i installed the pack to my web2py but its not converting any videos !! , how can i fix it and is this application can be used in in a website and i can deploy it ?? -- You received this message because you are subscribed to th

Meetup.com/EventBrite/SmallCommunities equivalent in Django?

2012-01-18 Thread Alec Taylor
Is there an equivalent to Ruby's SmallCommunities, Meetup.com or EventBrite in Django? I've been looking at the features of Symposion and of a few Pinax and handstand projects, but I've yet to find something workable for a Meetup.com/EventBrite style event repository project. Do you know of one?

Please help with complex aggregation/annotation issue

2012-01-18 Thread Salvatore Iovene
Hi, I apologize for the lousy title, but I really didn't know how to summarize the problem I'm facing. I have the following model: class MessierMarathon(models.Model): messier_number = models.IntegerField() image = models.ForeignKey(Image) nominations = models.IntegerField(default = 0