Adding Checkbox to django-tables2 - Key Error

2016-11-08 Thread Thorsten Grahl
Hi, Django noob here, am stuck and can not find an example to help me past my error. Using the tutorial (https://django-tables2.readthedocs.io/en/latest/pages/tutorial.html) have managed to display the table. Could now like to add a checkbox to each row, so the user can select multiple rows a

strategies for adding a custom group permission

2016-11-08 Thread Larry Martell
I posed a question yesterday asking how to separate the group editing permissions from the permission to edit a new custom group permission that I added. I did not get any replies to that and in researching it I am thinking perhaps that is not possible. So I want to pose the question differently -

RE: strategies for adding a custom group permission

2016-11-08 Thread Matthew Pava
Hi Larry, I would just write my own custom view using my own custom forms to do this. I would add my own custom permissions to apply to my custom view. I would avoid using DjangoAdmin to handle such a customized use case. -Original Message- From: django-users@googlegroups.com [mailto

Admin - saveasnew to another database

2016-11-08 Thread Mike Dewhirst
I'd like to use the [Save as new] infrastructure to transfer records and their children to a different database. Can anyone give me some advice on whether this is a reasonable project to attempt? Would it be valuable for anyone else? My alternative is to build a separate mechanism for my own

Re: Admin - saveasnew to another database

2016-11-08 Thread Tim Graham
Interesting idea. I'd be interested to here more about the use case. How would it work for entities with a foreign key? Django assumes foreign keys can't be cross-database since the constraint can't be enforced. On Tuesday, November 8, 2016 at 4:29:48 PM UTC-5, Mike Dewhirst wrote: > > I'd like

Python call Java causes Error: Could not find or load main class

2016-11-08 Thread Ronaldo Bahia
down votefavorite Hi, I am having issues to use the java program https://github.com/antonydeepak/ResumeParser/ in Django project in a localserver in MAC OS. I have installed Resume

Canonical way of handling multiple types of users? (Profiles vs subclassing django.contrib.auth.models.AbstractUser)

2016-11-08 Thread Victor Hooi
Hi, What is the current canonical way to handle multiple user-profiles in Django? For example - say you have "Teachers", "Students", "Parents" - you may have slightly different fields for each one and/or different behaviour. Students will have things like grades, Parents may have 1-to-many Stu

Re: Admin - saveasnew to another database

2016-11-08 Thread Mike Dewhirst
On 9/11/2016 9:13 AM, Tim Graham wrote: Interesting idea. I'd be interested to here more about the use case. Simple. I permitted my users to "play" on the staging site and now one of them wants to transfer their work to the production site. If I can get it going it becomes a nice-to-have feat

Re: Canonical way of handling multiple types of users? (Profiles vs subclassing django.contrib.auth.models.AbstractUser)

2016-11-08 Thread Mike Dewhirst
On 9/11/2016 11:54 AM, Victor Hooi wrote: Hi, What is the current canonical way to handle multiple user-profiles in Django? For example - say you have "Teachers", "Students", "Parents" - you may have slightly different fields for each one and/or different behaviour. Students will have thing

Best practices for directories in which to store stuff in production

2016-11-08 Thread Antonis Christofides
Hello, I was thinking about using this scheme: /usr/local/lib/projectname Program files (i.e. repository) /usr/local/lib/projectname-virtualenv Virtualenv /var/lib/projectname/media Media files /var/cache/projectname/static Static files, collected with collectstati

Re: Best practices for directories in which to store stuff in production

2016-11-08 Thread ludovic coues
If I had to use such scheme, I would put the django application in a package for the target system. Like a .deb file for exemple. If your primary way of deploying is a git push from test/QA to production, split directory will cause plenty of headaches. Also, with an installation like this, I would