Package a virtualenv to deploy across multiple systems?

2016-09-21 Thread 'Abraham Varricatt' via Django users
Hello, Do we have any standard/recommended way to distribute the python virtualenv used in a django application across multiple servers? I'm able to write a provisioning script to do the following on a server, (for brevity, this is just a high-overview) * Clone the master branch of my django

Sharing apps across sites

2016-09-21 Thread Christophe Pettus
Even experts have basic questions sometimes... :) So, I am starting on a project that is different from my usual Django work. In brief, it will be a single database with three separate sites in front of it. The underlying Django implementation will have a significant number of apps in common,

Re: Basic GenericForeignKey Question

2016-09-21 Thread TheBeardedTemplar
Hey Ludovic, I simplified things a lot to illustrate my particular issue, but our permission system is actually pretty complex - the permissions can apply to any individual object, and they are also hierarchical like those that would apply to a folder system. I found there were decent

Re: Basic GenericForeignKey Question

2016-09-21 Thread ludovic coues
Unrelated, do you have any reason to not reuse the existing django permission system ? 2016-09-21 16:41 GMT+02:00 TheBeardedTemplar : > Hey all, > > I'm just getting started with GenericForeignKeys and I've run into a small > point of confusion. I'm implementing a

Basic GenericForeignKey Question

2016-09-21 Thread TheBeardedTemplar
Hey all, I'm just getting started with GenericForeignKeys and I've run into a small point of confusion. I'm implementing a very general permission system as follows: class Permission(models.Model): """ This stores permissions for a single object. """ #These 3 fields are used to

Re: Cannot find table "..." after django updated from 1.7 to 1.9

2016-09-21 Thread Tim Graham
Please post the full traceback. On Wednesday, September 21, 2016 at 7:12:18 AM UTC-4, ranvir singh wrote: > > Hello there and apologies for asking this silly question here. > Actually I am facing some trouble in a Django app. Here is the link > for that app. > >

Cannot find table "..." after django updated from 1.7 to 1.9

2016-09-21 Thread ranvir singh
Hello there and apologies for asking this silly question here. Actually I am facing some trouble in a Django app. Here is the link for that app. https://github.com/GreatDevelopers/LibreHatti/ Now the basic app was built a long time ago and is based upon Django 1.7.1. Now I want to update it's

Re: Howto to create custom admin commands with subcommands

2016-09-21 Thread Derek
Sorry, I have not done this, but if you look at this section: https://docs.djangoproject.com/en/1.10/howto/custom-management-commands/#accepting-optional-arguments then at the end there is a link from the word "argparse" to this site: https://docs.python.org/3/library/argparse.html#module-argparse

Re: covert julian date to calander date

2016-09-21 Thread Erik Cederstrand
> Den 21. sep. 2016 kl. 02.41 skrev sum abiut : > > Thanks Erik, > > i think that should do the trick.is there a way to covert the date column > straight from the sql query or from the template? If you want to do this from the template, create a custom template tag: