django site using allauth in an iframe inside a wiki

2020-07-24 Thread Anthony Petrillo
We have a django site that we have created, which requires authentication (using allauth). We would love to have that django site in an iframe inside a wiki. We can get other things to show up in the iframe (google docs, etc), but our site refuses to run. Is there a secret we should know, o

Re: How to save multiple model form in one template?

2018-09-07 Thread Anthony Petrillo
Here is an example. I've cut out some of the code, but I this will give you the general idea. Note, I move the data from the Day form in to the Classes table. But you could just save both sets of data to their respective tables if desired. in views.py class ClassesAddView(LoginRequiredMixin,Vi

Re: Multisite strategy

2018-05-24 Thread Anthony Petrillo
Thanks Melvyn. That helps a lot. Anthony On Thu, May 24, 2018 at 1:18 PM, Melvyn Sopacua wrote: > On donderdag 24 mei 2018 16:39:34 CEST Anthony Petrillo wrote: > > > > > So I was thinking that was an option so that I could build one site and > > > then have translati

Re: Multisite strategy

2018-05-24 Thread Anthony Petrillo
I'm new at this Django stuff, so this is more of a question than a suggestion. I keep seeing a references to translating. I found in the manual the following: 3.15 Internationalization and localization 3.15.1 Translation Overview In order to make a Django project translatable, you have to add a

Re: sphinx is showing the django base views instead of my own views.py

2018-05-08 Thread Anthony Petrillo
doc.org/en/stable/ext/autodoc.html#confval-autodoc_mock_imports Anthony On Friday, May 4, 2018 at 11:25:20 AM UTC-4, Anthony Petrillo wrote: > > The view being shown when using Sphinx on a Django site is: > > > <https://lh3.googleusercontent.com/-IyVWh5g

Re: sphinx is showing the django base views instead of my own views.py

2018-05-05 Thread Anthony Petrillo
dy done, unless I'm making a mistake. I have other code that is not part of the django naming scheme and it works fine. I'm hoping my mistake is obvious to you. Thanks so much for your time. On Friday, May 4, 2018 at 11:25:20 AM UTC-4, Anthony Petrillo wrote: > > Th

sphinx is showing the django base views instead of my own views.py

2018-05-04 Thread Anthony Petrillo
The view being shown when using Sphinx on a Django site is: The beginning of my views.py is: import os from django.shortcuts import render, redirect from djan