Re: Problem getting django on mac (10.5/Leopard) working

2012-02-05 Thread Peter of the Norse
On Jan 8, 2012, at 8:22 PM, larry.mart...@gmail.com wrote: > On Jan 7, 7:13 pm, "larry.mart...@gmail.com" > wrote: >> On Jan 7, 7:03 pm, David Markey wrote: >> >>> Is there a reason you didnt do easy_install django? >> >> Cause I didn't know about it. I just followed the directions I found >>

Re: django.core.handlers.wsgi not found

2012-02-05 Thread larry.mart...@gmail.com
On Feb 5, 4:05 pm, Dennis Lee Bieber wrote: > On Sun, 5 Feb 2012 14:08:52 -0800 (PST), "larry.mart...@gmail.com" > > wrote: > > >It's exactly the same sys.path I get from command line python, where > >the import works. > >         NO IT ISN'T! > > > > >['/usr/lib/python2.6/site-packages/python_da

Re: django.core.handlers.wsgi not found

2012-02-05 Thread larry.mart...@gmail.com
On Feb 4, 9:52 pm, BlackKnight wrote: > http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives > > have you added this in apache conf, > > > SetHandler wsgi-script > Options ExecCGI > No, I do not have that, but I do have: WSGIScriptAlias / /usr/local/myapp/scripts/myapp.wsgi Which is

Re: django.core.handlers.wsgi not found

2012-02-05 Thread larry.mart...@gmail.com
On Feb 4, 7:47 pm, Brett Epps wrote: > Sometimes it can help to print sys.path in your WSGI file.  (The output > should end up in the apache error log.)  That should tell you where Python > is looking for modules.  If the Django install path is not listed, you may > need to reinstall Django. It's

Re: Filter admin inlines

2012-02-05 Thread NENAD CIKIC
Thanks. So to summarize the solution to filter inlines in admin interface based on userprofile was: define the form on Y model as: class YForm(forms.ModelForm): request=None #NOTE THIS lang=forms.ModelChoiceField(queryset=lang.objects.all()) #first get all def __init__(self, data=N

Re: how to make a small change for apps installed under /site-packages dir

2012-02-05 Thread Daniel Hilton
On 5 February 2012 17:16, Tom Lesters wrote: > hi all, > > I installed an app called idios into python2.6/site-packages/idios dir, > > now I need to make a small change, adding the following line(just for > purpose of explaining this question) > @login_required > to one of the functions defined in

buildout + djangorecipe how to install tools into bin directory

2012-02-05 Thread WIlliam Deegan
Greetings, I'm fairly new to django + buildout. I want to build some data loading tools and install them in the project bin directory. I see the bin/django and bin/test have some automated addition of the path to the buildout installed eggs. Is there a way to have buildout do this for my script

Re: dynamic permissions

2012-02-05 Thread Vittorino Parenti
i looked about django-guardian but i think is not better solution. has nothing had same need? Thanks, Vittorino On 5 Feb, 16:20, Denis Darii wrote: > It seems that you are looking for a "per object permissions" system, so > take a look at django-guardian:https://github.com/lukaszb/django-guardian

how to make a small change for apps installed under /site-packages dir

2012-02-05 Thread Tom Lesters
hi all, I installed an app called idios into python2.6/site-packages/idios dir, now I need to make a small change, adding the following line(just for purpose of explaining this question) @login_required to one of the functions defined in idios/views.py The way I can think of is I can copy all th

Django-Simple-Friends

2012-02-05 Thread coded kid
Hey guys, please how can I go about creating templates for django simple friends? I've been trying my best, yet no success. Really need your help. -- 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@

Re: Help Me With omab/django-socialauth

2012-02-05 Thread coded kid
Okay, will try it. Thanks man! Matías Aguirre wrote: > I was just talking about the hyphen in the app name. > > Now you need a view on that URL, try a view that renders a template similar to > this one > https://github.com/omab/django-social-auth/blob/master/example/templates/error.html > that sh

How to get MacAddress from HttpRequest?

2012-02-05 Thread Hamid Bazzaz
Hello folks, I would like to get the source MAC address of the incoming HTTP request. Yet, I don't see such information being available in HttpRequest.META. dictionary. Does anyone know where I can get the MAC address from? Thanks very much, Hamid -- You received this message because you are su

Re: django.core.handlers.wsgi not found

2012-02-05 Thread BlackKnight
http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives have you added this in apache conf, SetHandler wsgi-script Options ExecCGI On Feb 5, 5:53 am, "larry.mart...@gmail.com" wrote: > I am trying to deploy my django app on a newly setup CentOS box. I > have successfully deployed it o

Re: Help Me With omab/django-socialauth

2012-02-05 Thread Matías Aguirre
I was just talking about the hyphen in the app name. Now you need a view on that URL, try a view that renders a template similar to this one https://github.com/omab/django-social-auth/blob/master/example/templates/error.html that should show the error you have, possible an app misconfiguration.

Re: dynamic permissions

2012-02-05 Thread Denis Darii
It seems that you are looking for a "per object permissions" system, so take a look at django-guardian: https://github.com/lukaszb/django-guardian On Sun, Feb 5, 2012 at 3:59 PM, Vittorino Parenti < vpare...@thundersystems.it> wrote: > i've a model with document'categories and a model with docume

Re: dynamic permissions

2012-02-05 Thread Marc Aymerich
On Sun, Feb 5, 2012 at 3:59 PM, Vittorino Parenti wrote: > i've a model with document'categories and a model with documents. i > want set permissions per categories: add invoices, download invoices > and so on (invoice is an example of category). > Thanks, > Vittorino > Did you mean on Django adm

Re: Filter admin inlines

2012-02-05 Thread Marc Aymerich
On Sun, Feb 5, 2012 at 1:43 PM, NENAD CIKIC wrote: > Hello, > I have three models > X > Lang > Y > where the purpose of Y is to provide X fields in other languages. > So I have Y as > Y > x foreignkey on X > lang ForeignKey on Lang > additionalfields... > > I have created the ModelAdmin for Lang.

Re: dynamic permissions

2012-02-05 Thread Vittorino Parenti
i've a model with document'categories and a model with documents. i want set permissions per categories: add invoices, download invoices and so on (invoice is an example of category). Thanks, Vittorino On 5 Feb, 12:21, kenneth gonsalves wrote: > On Sun, 2012-02-05 at 03:02 -0800, Vittorino Paren

Filter admin inlines

2012-02-05 Thread NENAD CIKIC
Hello, I have three models X Lang Y where the purpose of Y is to provide X fields in other languages. So I have Y as Y x foreignkey on X lang ForeignKey on Lang additionalfields... I have created the ModelAdmin for Lang. For X I have the ModelAdmin and added the inlines = [ YInline,

Re: Django Friends

2012-02-05 Thread coded kid
The app is not well maintained. And no docs in it. Do you know how I can go about it? On Feb 5, 9:56 am, Anoop Thomas Mathew wrote: > Hi, > Pinax is a collection of reusable django apps, and you an use individual > projects as django apps.https://github.com/pinax/django-friends > Another issue I

Re: dynamic permissions

2012-02-05 Thread kenneth gonsalves
On Sun, 2012-02-05 at 03:02 -0800, Vittorino Parenti wrote: > I would like to create dynamic downloading permissions: > - can download invoices > - can upload invoices > - can download contracts what is dynamic about this? -- regards Kenneth Gonsalves -- You received this message because you a

dynamic permissions

2012-02-05 Thread Vittorino Parenti
Hi, I have an application 'documents' where documents are stored according to categories: 'invoices', 'contracts', 'orders', 'etc'. I would like to create dynamic downloading permissions: - can download invoices - can upload invoices - can download contracts and so on Thanks, Vittorino -- You rec

Re: Using redis in django views

2012-02-05 Thread Ashe
Hello, The main reason for my issue, was because I was using two tabs on my browser. If I use two browsers or two different IP, my code works asynchronously (with gevent and apache, not with runserver but this isn't a surprise). I think there is something like: if a unique session asks for the sa

Re: Django Friends

2012-02-05 Thread Anoop Thomas Mathew
Hi, Pinax is a collection of reusable django apps, and you an use individual projects as django apps. https://github.com/pinax/django-friends Another issue I found is, it is not maintained well and make sure that it suits your purpose and works well with latest version of django. Then you can direc

Re: Django Friends

2012-02-05 Thread coded kid
Thanks bro. I'm not using pinax, so how can I go about it? On Feb 5, 8:47 am, Anoop Thomas Mathew wrote: > Hi, > > Check pinax project. There are some apps in > it,http://pinaxproject.com/ecosystem/ > ,  especially, django-friends app, which should be helpful for you. > Thanks, > Anoop Thomas Ma

Re: Views in django

2012-02-05 Thread Sandeep kaur
On Sun, Feb 5, 2012 at 1:33 AM, Peter of the Norse wrote: > You should look into making a foreign key relationship if there actually is > one. That way you can just annotate the the sums. Opted for the same now. > Otherwise you should calculate the sum in the view (NOT the template) and add >

Re: Django Friends

2012-02-05 Thread Anoop Thomas Mathew
Hi, Check pinax project. There are some apps in it, http://pinaxproject.com/ecosystem/ , especially, django-friends app, which should be helpful for you. Thanks, Anoop Thomas Mathew atm ___ Life is short, Live it hard. On 5 February 2012 14:12, coded kid wrote: > Hey guys, please do you k

Django Friends

2012-02-05 Thread coded kid
Hey guys, please do you know of any django package that can be used by users to add friends in django site? Thanks. -- 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 unsubscrib