Hierarchical User Groups

2014-12-11 Thread Wellington Cordeiro
I'm building a project where we need to have a hierarchical system of Users.

The gist of it is this, there needs to be way to create Companies with 
permission groups within them. How would you implement this?

For example:

Company: Foo has admins, managers and users
Company Bar has admins, managers and users

Then you could query for employees of foo, or admins of foo and get only 
those users.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/70774376-a50d-49c7-916f-a43ac283feb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Wellington Cordeiro
Use Atom if you want a Sublime like editor that's open source, free and
extendable. https://atom.io/

-Wellington Cordeiro


On Wed, Sep 24, 2014 at 11:08 AM, anton  wrote:

> Wellington Cordeiro wrote:
>
> > If you're doing serious development $70 for a very extensible editor is
>
> I know this very well, but with my question I wanted
> to find out if there is an open source solution.
>
> Anton
>
> > chump change. IDE's are in my opinion too much for Django and rarely do
> > all the things you wish they would. If paying isn't for you, I would get
> > Vim or Emacs.
> >
> > On Wednesday, September 24, 2014 3:47:47 AM UTC-6, anton wrote:
> >>
> >> Jorge Andrés Vergara Ebratt wrote:
> >>
> >> > I actually use a text editor, I love Sublime Text 2 with the Djaneiro
> >> > Plugin.
> >> >
> >> hmm this is shareware not opensource as I see :-(
> >>
> >> > As far as IDEs go, I used to work with NINJA IDE, it's a Python IDE
> and
> >> > it's pretty cool.
> >> >
> >>
> >> I will have a look ... but I do not see django & django template
> support.
> >>
> >> But thanks anyway
> >>
> >>  Anton
> >>
> >> > 2014-09-24 4:36 GMT-05:00 anton >:
> >> >
> >> >> Hi,
> >> >>
> >> >> actually I use Aptana Studio 3.4.1 (http://www.aptana.com/)
> >> >> to develop Django apps (on Windows and Linux).
> >> >>
> >> >> What I (personally) need from an ide:
> >> >>  1. ability to debug (python code)
> >> >>  2. support for django templates
> >> >>  3. support for django (start a new project, adding a django app)
> >> >>  4. support for refactoring (like rename and so on)
> >> >>  5. support for mercurial
> >> >>  6. multi plattform (at least windows/linux)
> >> >>
> >> >> Starting with *django 1.7*, aptana marks some line
> >> >> as errors which are not errors (undefined variables from import ..)
> >> >>
> >> >> Now I have the following problem:
> >> >>
> >> >>  - I tried the actual aptana 3.6.0, but it is buggy and does not work
> >> >>(no idea if and when it will be fixed, the development
> >> >>speed is actually slow)
> >> >>
> >> >>  - if I use eclipse + actual pydev 3.7.1 I have
> >> >>no support for *django templates*
> >> >>
> >> >>  - all other ides like PyCharm are commercial (the free pycharm does
> >> >>not support django and django templates, only python)
> >> >>
> >> >> Now the question: does somebody know a solution?
> >> >>
> >> >> Thanks
> >> >>
> >> >>  Anton
> >> >>
> >> >>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> Groups
> >> >> "Django users" group.
> >> >> To unsubscribe from this group and stop receiving emails from it,
> send
> >> an
> >> >> email to django-users...@googlegroups.com .
> >> >> To post to this group, send email to django...@googlegroups.com
> >> .
> >> >> Visit this group at http://groups.google.com/group/django-users.
> >> >> To view this discussion on the web visit
> >> >>
> >>
> https://groups.google.com/d/msgid/django-users/lvu3as%24pba%241%40ger.gmane.org
> >> >> .
> >> >> For more options, visit https://groups.google.com/d/optout.
> >> >>
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/3QxT3n5myLQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/lvutr2%2493o%242%40ger.gmane.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADNjH_5jMGNPT3LoZGZ%2BajKv6Afg6AR%3Dfch1duYtBncuRNyp_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Wellington Cordeiro
If you're doing serious development $70 for a very extensible editor is 
chump change. IDE's are in my opinion too much for Django and rarely do all 
the things you wish they would. If paying isn't for you, I would get Vim or 
Emacs.

On Wednesday, September 24, 2014 3:47:47 AM UTC-6, anton wrote:
>
> Jorge Andrés Vergara Ebratt wrote: 
>
> > I actually use a text editor, I love Sublime Text 2 with the Djaneiro 
> > Plugin. 
> > 
> hmm this is shareware not opensource as I see :-( 
>
> > As far as IDEs go, I used to work with NINJA IDE, it's a Python IDE and 
> > it's pretty cool. 
> > 
>
> I will have a look ... but I do not see django & django template support. 
>
> But thanks anyway 
>
>  Anton 
>
> > 2014-09-24 4:36 GMT-05:00 anton >: 
> > 
> >> Hi, 
> >> 
> >> actually I use Aptana Studio 3.4.1 (http://www.aptana.com/) 
> >> to develop Django apps (on Windows and Linux). 
> >> 
> >> What I (personally) need from an ide: 
> >>  1. ability to debug (python code) 
> >>  2. support for django templates 
> >>  3. support for django (start a new project, adding a django app) 
> >>  4. support for refactoring (like rename and so on) 
> >>  5. support for mercurial 
> >>  6. multi plattform (at least windows/linux) 
> >> 
> >> Starting with *django 1.7*, aptana marks some line 
> >> as errors which are not errors (undefined variables from import ..) 
> >> 
> >> Now I have the following problem: 
> >> 
> >>  - I tried the actual aptana 3.6.0, but it is buggy and does not work 
> >>(no idea if and when it will be fixed, the development 
> >>speed is actually slow) 
> >> 
> >>  - if I use eclipse + actual pydev 3.7.1 I have 
> >>no support for *django templates* 
> >> 
> >>  - all other ides like PyCharm are commercial (the free pycharm does 
> >>not support django and django templates, only python) 
> >> 
> >> Now the question: does somebody know a solution? 
> >> 
> >> Thanks 
> >> 
> >>  Anton 
> >> 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups 
> >> "Django users" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an 
> >> email to django-users...@googlegroups.com . 
> >> To post to this group, send email to django...@googlegroups.com 
> . 
> >> Visit this group at http://groups.google.com/group/django-users. 
> >> To view this discussion on the web visit 
> >> 
> https://groups.google.com/d/msgid/django-users/lvu3as%24pba%241%40ger.gmane.org
>  
> >> . 
> >> For more options, visit https://groups.google.com/d/optout. 
> >> 
> > 
> > 
> > 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/81acf960-9f56-4b73-ac74-d6e2559b932a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is super in python.

2014-07-22 Thread Wellington Cordeiro
Tom Evans gave you a good answer but if you have questions that are general 
to the language I suggest you ask it on the language's group. 
https://groups.google.com/forum/#!forum/comp.lang.python

On Tuesday, July 22, 2014 4:52:15 AM UTC-6, Akshay Mukadam wrote:
>
> What is super in python django I referred 
> http://stackoverflow.com/questions/576169/understanding-python-super-and-init-methods
>  
> link I was unable to get it can anyone please tell me in simple words what 
> does it mean
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/68f9e5ac-b858-408f-8512-dd3866de5a73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to install psycpg2 in virtual enviroment with help easy_install.

2014-06-12 Thread Wellington Cordeiro
Just out of curiosity what OS are you on? 

On Thursday, June 12, 2014 7:48:43 AM UTC-6, Віталій Лисенко wrote:
>
> Thank you.
>
> I am not have more questions. Thank.
>
>
> On 12 June 2014 16:11, Lachlan Musicman > 
> wrote:
>
>> Yep, "pip install" should be enough. Pip install is your friend in
>> virtual environments.
>>
>> Jump into your environment ("workon ENV" or
>> "./path/to/ve/ENV/bin/activate"), and then
>>
>> pip install Django postgresql_psycopg2
>>
>>
>>
>> Is that what you were asking?
>>
>>
>>
>> On 12 June 2014 22:09, Віталій Лисенко > 
>> wrote:
>> > Hi.
>> >
>> > 1. I installed easy_install
>> > 2. I installed virtual enviroment with help easy_install
>> > 3. I activated this enviroment
>> > 4. after this I created django project
>> > 5. Now I am need create database with help Postgresql:
>> >
>> > So, I am need to install backend namely postgresql_psycopg2
>> >
>> > --
>> > You received this message because you are subscribed to the Google 
>> Groups
>> > "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an
>> > email to django-users...@googlegroups.com .
>> > To post to this group, send email to django...@googlegroups.com 
>> .
>> > Visit this group at http://groups.google.com/group/django-users.
>> > To view this discussion on the web visit
>> > 
>> https://groups.google.com/d/msgid/django-users/e2cc84df-5296-40f7-ad0d-009f64de34ad%40googlegroups.com
>> .
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> The idea is that a beautiful image is frameable. Everything you need
>> to see is there: It’s everything you want, and it’s very pleasing
>> because there’s no extra information that you don’t get to see.
>> Everything’s in a nice package for you. But sublime art is
>> unframeable: It’s an image or idea that implies that there’s a bigger
>> image or idea that you can’t see: You’re only getting to look at a
>> fraction of it, and in that way it’s both beautiful and scary, because
>> it’s reminding you that there’s more that you don’t have access to.
>> It’s now sort of left the piece itself and it’s become your own
>> invention, so it’s personal as well as being scary as well as being
>> beautiful, which is what I really like about art like that.
>>
>> ---
>> Adventure Time http://theholenearthecenteroftheworld.com/
>>
>> --
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/django-users/W6T_BoWks1A/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAGBeqiPvMxJktE58H1TaYGkdnbCWiqhp3ogPt2i%3DbpYV1gRkZw%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Best regards Vitaly Lisenko from village Markove (Ukraine)
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0db81e1c-7623-4ba4-8e2c-d44eaac59cf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Wellington Cordeiro
Missed my link to Jeet which is at http://jeet.gs

On Thursday, May 22, 2014 10:25:47 PM UTC-6, Wellington Cordeiro wrote:
>
> Cal,
>
> I don't have it installed in my static folder, I have the gem installed 
> and I was under the impression that Sass could find the installed 
> libraries, which I guess I was mistaken.
>
> What would be your recommended tool? Django-Pipeline or Compressor? Or 
> maybe another? I was trying Compressor at first and had the same issue and 
> thought it might have been related to the way it handled Sass. I have the 
> newest version of Node installed on my vagrant environment but I'm 
> considering taking a look into nodeenv. I'm trying to use three libraries 
> in particular Bourbon, Compass and Breakpoint with Django (and I've heard 
> of Neat and chose to use Jeet[1] instead.)
>
> Thanks for the help,
>
> Wellington
>
> On Thursday, May 22, 2014 8:08:42 AM UTC-6, Cal Leeming [Simplicity Media 
> Ltd] wrote:
>>
>> Hi Willy,
>>
>> Do you have Bourbon installed in your static folder? If not, you'll need 
>> to install the bourbon/compass/sass node packages (see below), or you can 
>> download a precompiled dist from the source of each, for example see [1]. 
>>
>> If you go down the node packages route, be aware, not even the latest 
>> bleeding edge version of Ubuntu will allow to use the most up to date 
>> bourbon/compass/sass node packages. You will almost certainly want to use a 
>> local node install, either through a tool such as nodeenv [2] which re-uses 
>> your existing virtualenv, or manually patch your .bashrc to use a locally 
>> installed node binary [3].
>>
>> It's also worth mentioning that although django-pipeline is quite 
>> awesome, it can also be quite limited.
>>
>> One last thing, check out Bourbon Neat [4].
>>
>> Hope this helps
>>
>> Cal
>>
>> [1] https://github.com/thoughtbot/bourbon/tree/master/dist
>> [2] https://github.com/ekalinin/nodeenv
>> [3] https://github.com/creationix/nvm
>> [4] http://neat.bourbon.io/
>>
>>
>>
>> On Thu, May 22, 2014 at 7:29 AM, Willy  wrote:
>>
>>> I'm trying to use Sass and Sass Libraries with Django-Pipeline but my 
>>> @import directives always error out saying they can't find the libraries I 
>>> have installed.
>>>
>>> Here is my settings file https://gist.github.com/43b0e4d5c93b943d9760
>>>
>>> Then I have my scss file trying to do
>>>
>>> @import 'bourbon';
>>> @import 'compass';
>>> @import 'breakpoint';
>>>
>>> and it will fail showing this error. 
>>> https://gist.github.com/28e617581fa198a8690d
>>>
>>> Has anyone setup a Django project that's been able to properly import 
>>> Sass libraries and if so how would you best do that?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/a7fa8151-f216-4e2c-9b23-2f5628a63e8a%40googlegroups.com<https://groups.google.com/d/msgid/django-users/a7fa8151-f216-4e2c-9b23-2f5628a63e8a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/23176e70-39f6-4cb7-8a6c-872b7bdcb370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Wellington Cordeiro
Cal,

I don't have it installed in my static folder, I have the gem installed and 
I was under the impression that Sass could find the installed libraries, 
which I guess I was mistaken.

What would be your recommended tool? Django-Pipeline or Compressor? Or 
maybe another? I was trying Compressor at first and had the same issue and 
thought it might have been related to the way it handled Sass. I have the 
newest version of Node installed on my vagrant environment but I'm 
considering taking a look into nodeenv. I'm trying to use three libraries 
in particular Bourbon, Compass and Breakpoint with Django (and I've heard 
of Neat and chose to use Jeet[1] instead.)

Thanks for the help,

Wellington

On Thursday, May 22, 2014 8:08:42 AM UTC-6, Cal Leeming [Simplicity Media 
Ltd] wrote:
>
> Hi Willy,
>
> Do you have Bourbon installed in your static folder? If not, you'll need 
> to install the bourbon/compass/sass node packages (see below), or you can 
> download a precompiled dist from the source of each, for example see [1]. 
>
> If you go down the node packages route, be aware, not even the latest 
> bleeding edge version of Ubuntu will allow to use the most up to date 
> bourbon/compass/sass node packages. You will almost certainly want to use a 
> local node install, either through a tool such as nodeenv [2] which re-uses 
> your existing virtualenv, or manually patch your .bashrc to use a locally 
> installed node binary [3].
>
> It's also worth mentioning that although django-pipeline is quite awesome, 
> it can also be quite limited.
>
> One last thing, check out Bourbon Neat [4].
>
> Hope this helps
>
> Cal
>
> [1] https://github.com/thoughtbot/bourbon/tree/master/dist
> [2] https://github.com/ekalinin/nodeenv
> [3] https://github.com/creationix/nvm
> [4] http://neat.bourbon.io/
>
>
>
> On Thu, May 22, 2014 at 7:29 AM, Willy  >wrote:
>
>> I'm trying to use Sass and Sass Libraries with Django-Pipeline but my 
>> @import directives always error out saying they can't find the libraries I 
>> have installed.
>>
>> Here is my settings file https://gist.github.com/43b0e4d5c93b943d9760
>>
>> Then I have my scss file trying to do
>>
>> @import 'bourbon';
>> @import 'compass';
>> @import 'breakpoint';
>>
>> and it will fail showing this error. 
>> https://gist.github.com/28e617581fa198a8690d
>>
>> Has anyone setup a Django project that's been able to properly import 
>> Sass libraries and if so how would you best do that?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a7fa8151-f216-4e2c-9b23-2f5628a63e8a%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/335c90d4-d8ca-4d26-b0b7-255ae73b1d22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.