Django module - include dependencies

2017-10-22 Thread Pablo Camino Bueno
Hi, I'm building my own Django package to publish it to PyPI. It has some JS dependencies. Some are mine, and some are external. What is the best way to include them? I can keep the js files within the plugin. I think this is something that other django packages do, although it's not very clean

Django settings - customize attributes per Site from admin

2017-06-06 Thread Pablo Camino Bueno
Hi, I'm using django sites framework. I've a model with a OneToOneField to Site model. This way the admin users can customize each site attributes from the admin panel. class CustomSite(models.Model): site = models.OneToOneField(Site) email_host_user = models.EmailField() ... S

Keep logged in accross Sites

2017-06-30 Thread Pablo Camino Bueno
Hello, I'm using Django Sites framework to hadle different sites, with the same users. I'd like to add a link to switch between my sites, but I don't want to get redirected to login view. What is the best way? should I add a view that logs the user in the destination site and redirect? -- Y

Re: Keep logged in accross Sites

2017-07-05 Thread Pablo Camino Bueno
UTC+2), Constantine Covtushenko escribió: > > Hello Pablo, > > +1 to your solution > > Regards, > Constantine C. > > On Fri, Jun 30, 2017 at 9:06 AM, Pablo Camino Bueno > wrote: > >> Hello, >> >> I'm using Django Sites framework to hadle different sit