Re: serving over either 80 or 443

2017-07-20 Thread Larry Martell
hen pass the HTML into wkhtmltopdf. Only for that case do we need the 'https://0.0.0.0:443/' - without that the PDF does not render properly. It works over 443, but when on a different non-SSL port it does not work. That is the case I am trying to solve. >> On Jul 19, 2017, at 1:55 PM

Re: serving over either 80 or 443

2017-07-20 Thread Larry Martell
On Thu, Jul 20, 2017 at 1:27 AM, James Schneider wrote: > > > On Jul 19, 2017 1:56 PM, "Larry Martell" wrote: > > This is probably not strictly a Django question, but I'm hoping > someone here has had to solve this before. > > We have a django app that

deploying on windows

2017-08-12 Thread Larry Martell
I have a django app that runs in linux. It uses nginx and uwsgi. I have successfully deployed it with Docker, vagrant/VirtualBox, VMware, kvm, and on bare metal. But now I have prospective client that refuses to run linux, even in a VM. So I am tying to get my app running on Windows Server 2016, pi

Re: deploying on windows

2017-08-12 Thread Larry Martell
help you with that. > > 12.8.2017 21.06 "Larry Martell" kirjoitti: >> >> I have a django app that runs in linux. It uses nginx and uwsgi. I >> have successfully deployed it with Docker, vagrant/VirtualBox, VMware, >> kvm, and on bare metal. But now I have pr

best practices for location of start up code

2017-09-22 Thread Larry Martell
We have some code we want to run 1 time when our django app is started. What is the best place for this? I tried putting it in my app's config function, but from there I get: *** AppRegistryNotReady: Apps aren't loaded yet. -- You received this message because you are subscribed to the Google Gr

Re: best practices for location of start up code

2017-09-23 Thread Larry Martell
On Sat, Sep 23, 2017 at 1:34 PM, James Schneider wrote: > > > On Sep 22, 2017 2:58 PM, "Larry Martell" wrote: > > We have some code we want to run 1 time when our django app is > started. What is the best place for this? I tried putting it in my > app's c

Re: best practices for location of start up code

2017-09-23 Thread Larry Martell
On Sat, Sep 23, 2017 at 2:39 PM, Larry Martell wrote: > On Sat, Sep 23, 2017 at 1:34 PM, James Schneider > wrote: >> >> >> On Sep 22, 2017 2:58 PM, "Larry Martell" wrote: >> >> We have some code we want to run 1 time when our django app is >&g

Re: best practices for location of start up code

2017-09-25 Thread Larry Martell
uld not be part of the server init, so we moved it somewhere else. > On 2017-09-23 21:50, Larry Martell wrote: >> On Sat, Sep 23, 2017 at 2:39 PM, Larry Martell >> wrote: >>> On Sat, Sep 23, 2017 at 1:34 PM, James Schneider >>> wrote: >>>> >>>

Big data

2017-09-28 Thread Larry Martell
Has anyone ever used any big data solutions, such as hbase, with django? -- 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.co

Re: Big data

2017-09-28 Thread Larry Martell
to improve performance. On Thu, Sep 28, 2017 at 9:41 PM Vivek Shrivastava wrote: > Are you asking HBase as database for Django or accessing HBase from > Django? The popular framework Hue http://gethue.com/ is based on Django > only.. > > On Thu, Sep 28, 2017 at 9:34 PM, Larry M

Re: Big data

2017-09-29 Thread Larry Martell
gs (like > work_mem) and improved > > On Fri, Sep 29, 2017 at 4:48 AM, Larry Martell > wrote: >> >> I am taking about using hbase as a db for Django. My use case is that a >> have a Django app and the data in mysql has grown to the point where >> performance has

Re: Channels, daphne, and asgiref, oh my!

2020-02-24 Thread Larry Martell
52 AM Aldian Fazrihady wrote: >> >> I have these working module combinations, but my Python is 3.6.9: >> asgiref==2.2.0 >> channels==2.0.2 >> channels_redis==2.3.0 >> daphne==2.1.0 >> Django==2.2.4 >> django-redis==4.10.0 >> redis==3.3.6 >

Re: Channels, daphne, and asgiref, oh my!

2020-02-24 Thread Larry Martell
;GET / HTTP/1.1", upstream: "http://0.0.0.0:8090/";, host: "xx.xx.xx.xx" Any ideas on what I should have in my config file for this to work? On Mon, Feb 24, 2020 at 4:19 PM Larry Martell wrote: > Thanks Andrew. Upgrading to py 3.7 did the trick. Now struggling to >

Azure AD SSO from django

2020-03-04 Thread Larry Martell
I would the users of my django app to be able to use SSO using their Azure AD creds. To me SSO means if they have already logged in to something using their ADA creds then when they go to my django app they get in without having to enter any creds. I found a few packages that support logging in wit

django_microsoft_auth

2020-04-20 Thread Larry Martell
Anyone here have any experience with django_microsoft_auth? I have some issues and questions. -- 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+unsubs

Re: Watch "Ever Thought How This Games Like PUBG | CALL OF DUTY | Are developed" on YouTube

2020-05-02 Thread Larry Martell
On Sat, May 2, 2020 at 11:30 AM Kasper Laudrup wrote: > > Hi Raj, > > On 02/05/2020 14.10, Anonymous Patel wrote: > > https://youtu.be/kkNXbVFiqjc > > > > How is this in any way related to Django? This guy has spammed many many groups with this same posting. -- You received this message because

Re: How to display pie chart using Django

2020-05-07 Thread Larry Martell
On Thu, May 7, 2020 at 6:39 AM ratnadeep ray wrote: > > Hi all, > > I just started to work on Django and hence have limited knowledge about it. > > Now I need to design an app to display a pie chart based on some sample data. > Can anybody please help me to do so? Is there any sample app existing

Re: Please help me out?

2020-05-31 Thread Larry Martell
On Sat, May 30, 2020 at 11:30 PM meera gangani wrote: > > I want to generate trello-board in my django application > Can anyone tell me the How to do this? > Trello-board is like( to-do and future enhancements and doing ) where there > are 3-4 columns Take a look at https://github.com/riktar/jk

Re: Django IIS windows

2020-06-04 Thread Larry Martell
On Thu, Jun 4, 2020 at 10:05 PM Giovanni Silva wrote: > Hello. > > I need help to set up my Django Project in my IIS server. > > Does anyone has a tutorial or a link to help me to configure it? > I did this once and it was incredibly painful. If there is any way you can deploy on Linux do so. It

Re: urgent

2020-06-19 Thread Larry Martell
On Fri, Jun 19, 2020 at 2:32 PM Awais Ahmad wrote: > > i'm facing this problem and i can't fix it any body please help me or tell me > about this error It should be static not staticfiles. -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: how to fetch data into a template (table)

2020-06-22 Thread Larry Martell
On Sat, Jun 20, 2020 at 11:41 AM Faith Mwai wrote: > > Am having a challenge of displaying data into my template table, the function > is; > > def customers(request): > if request.method == 'POST': > accountno = request.POST['accountno'] > id= request.POST['id'] > Mobi

Re: Invalid syntax on line 16 of manage.py

2020-07-20 Thread Larry Martell
On Mon, Jul 20, 2020 at 5:57 AM Douglas Ii wrote: > > While following the tutorial for creating your first Django app, I run into a > problem when entering the command line "python manage.py runserver" into my > terminal. I am using a mac and I get the Error message: > > > File "manage.py", line

Re: Django dynamic time settings in DB

2020-07-26 Thread Larry Martell
On Sun, Jul 26, 2020 at 1:50 PM adiath...@gmail.com wrote: > > How can you continuously update your DB time field in django without post > request. Use websockets and channels. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: CSS problems

2020-09-16 Thread Larry Martell
On Wed, Sep 16, 2020 at 10:04 AM ‫אורי‬‎ wrote:‬ > > Hi, > > My website, https://en.speedy.net/, the date of birth input is bordered red > with Firefox, and I can't find why the border is red? I checked and there is > nothing red in the CSS and it's not red with Chrome or Edge. Any idea why the

Re: Passing parameters / attributes to javascript in a template

2015-08-04 Thread Larry Martell
On Tue, Aug 4, 2015 at 9:14 AM, Déborah Leder wrote: > Hello > > I am currently developping a django geolocalisation application. Therefore, > I need both python and javascript. > I would like to give some parameters to a script in a template, that is to > say, in my template, I want to use the sc

Re: Djangocon Costa Rica next year.

2015-08-19 Thread Larry Martell
On Wed, Aug 19, 2015 at 6:37 AM, Russell Keith-Magee wrote: > If you're coming to DjangoCon US in a couple of weeks, make yourself known > to me and I'll introduce you to the team organising that event - I'm sure > they'll have plenty of advice, and maybe even some resources to share. When and wh

can't delete user after removing app

2015-09-09 Thread Larry Martell
I have a django project that has many different apps. We deleted one of the apps, and now when we try and delete a user it fails, complaining about a table from that app not existing. There are no references to that app, or table anywhere. Testing, I found that if I create the table the error goes

Re: App tables are created in db_1 but requests are routed to db_2.

2015-09-14 Thread Larry Martell
On Mon, Sep 14, 2015 at 6:58 AM, Alan Kavanagh wrote: > I'm not sure why the tables are created in the other database. Can anyone > offer insight how I could solve this issue? We would need more info to know. What does your settings file look like. How were the tables created? What the code that

Re: csrf token

2015-09-30 Thread Larry Martell
On Wed, Sep 30, 2015 at 4:15 PM, Bhanu Kathuria <001kathuriabh...@gmail.com> wrote: > What is the use of csrf token in forms? http://lmgtfy.com/?q=CSRF -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: How to add myself as a developer for hire in the wiki?

2015-12-09 Thread Larry Martell
On Wed, Dec 9, 2015 at 7:41 AM, Tim Graham wrote: > You can login using a Trac or GitHub account, then click "Edit this page" at > the bottom of the page. > > On Wednesday, December 9, 2015 at 5:47:42 AM UTC-5, James Lin wrote: A lot of links on that page are bad, and give a 404. -- You receive

ajax POST request being sent as GET

2015-12-15 Thread Larry Martell
I am sending an ajax POST request like this: $.ajax({ url: url, method: 'POST', dataType: "json", data: { recipe: recpie } }) But the request is being sent as a GET: Request URL: http://127.0.0.1/api/update_measbox?recipe=MALBHDPOR Request Method: GET Status Code:200

Re: ajax POST request being sent as GET

2015-12-15 Thread Larry Martell
On Tue, Dec 15, 2015 at 5:45 PM, Daniel Chimeno wrote: > Hello, > > This is more a jQuery issue than a Django one, but it could be because of > the quotes. > > From: http://api.jquery.com/jquery.ajax/ > > var menuId = $( "ul.nav" ).first().attr( "id" ); > var request = $.ajax({ > url: "script.p

Re: ajax POST request being sent as GET

2015-12-16 Thread Larry Martell
On Tue, Dec 15, 2015 at 11:05 PM, Simon Charette wrote: > Hi Larry, > > It's more of a JavaScript question but my first guess would be > you'd need to use the `type` option instead of `method` because > you are using an old version of jQuery? That was it. Thank you so much!! > Le mardi 15 décemb

Re: excel file upload to MySQL database

2016-01-13 Thread Larry Martell
On Wed, Jan 13, 2016 at 9:26 AM, girija sameera wrote: > > Hello, > I am a Django beginner working on a web application wherein I am required > to provide back-end support. I am expected to take an excel file uploaded by > the admin from the template , parse the file using available Django li

Re: How to run an external python script in my Django view

2016-01-15 Thread Larry Martell
On Fri, Jan 15, 2016 at 9:54 AM, wrote: > Hi, > > I have a script which is running fine and giving output in the form of list > of lists. I want to use that data in my Django view. I am not getting, how > to run a script in django view. > I created a folder utils inside which, I have put the scri

Re: How to run an external python script in my Django view

2016-01-16 Thread Larry Martell
On Sat, Jan 16, 2016 at 2:28 AM, wrote: > Thanks Larry for the reply. Nothing is happening after invoking the script(I > think, I am doing something wrong in using the python script in Django > views). I have tried running the script separately which is working fine and > giving the output. I wo

Re: Scaling Django

2016-02-03 Thread Larry Martell
I don't think there is a silver bullet that will fix all issues, nor any one technology stack that will. I have a fairly good size django app I built, and I did not consider performance all that much during initial development. As the user base and dataset started to grow I did see performance issu

Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Larry Martell
Not strictly a django question, but it's something required to get django running. I am trying to get django 1.9 running in RHEL 6. I have installed python2.7 and when I try to install MySQLdb, I get the errors shown below. I have googled and googled and tried many different things, all with no su

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Larry Martell
That failed: # yum install mysql-devel Loaded plugins: dellsysid, product-id, refresh-packagekit, security, subscription-manager Setting up Install Process Package mysql-devel is obsoleted by mysql-community-devel, trying to install mysql-community-devel-5.7.11-1.el6.x86_64 instead Resolving Depen

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Larry Martell
Not really sure what I am looking for or what to do. # yum list installed | grep mysql compat-mysql51.x86_64 5.1.54-1.el6.remi @remi mysql.x86_645.5.44-1.el6.remi @remi mysql-libs.x86_64 5.5.44-1.el6.remi @remi mysql-server.x86_64

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-23 Thread Larry Martell
This is a machine I have inherited and I really know nothing about it. I need to set up django on it, but I don't want to break anything. They use the Semantic Media Wiki, which uses PHP - If I do this could that break that? On Tue, Feb 23, 2016 at 2:12 AM, Kelvin Wong wrote: > You are mixing the

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-23 Thread Larry Martell
an't start the server? On Tue, Feb 23, 2016 at 6:43 AM, Larry Martell wrote: > This is a machine I have inherited and I really know nothing about it. > I need to set up django on it, but I don't want to break anything. > They use the Semantic Media Wiki, which uses PHP - If I do thi

empty request object

2016-02-26 Thread Larry Martell
I just integrated a broken django setup, 1.9, python 2.7, nginx, uWSGI, RHEL 6. First thing I observed, the views are not receiving anything in the request object, e.g.: (Pdb) print request Other django systems I've worked with I always get something, e.g.: (Pdb) print request , POST:, COOKIES:

Re: empty request object

2016-02-27 Thread Larry Martell
Anyone have any insights on this? Is there anything special I need to do get the request structure? The way this 1.9 site is now, it doesn't work at all because the request structure is not getting passed in. On Fri, Feb 26, 2016 at 10:09 PM, Larry Martell wrote: > I just integrated

Re: empty request object

2016-02-27 Thread Larry Martell
On Sat, Feb 27, 2016 at 5:02 PM, James Schneider wrote: > > On Feb 27, 2016 1:55 PM, "Larry Martell" wrote: >> >> Anyone have any insights on this? Is there anything special I need to >> do get the request structure? The way this 1.9 site is now, it doesn&#x

Re: empty request object

2016-02-27 Thread Larry Martell
gt; > On Saturday, February 27, 2016 at 11:09:28 PM UTC+1, larry@gmail.com > wrote: >> >> On Sat, Feb 27, 2016 at 5:02 PM, James Schneider >> wrote: >> > >> > On Feb 27, 2016 1:55 PM, "Larry Martell" wrote: >> >> >> >&g

Re: empty request object

2016-02-27 Thread Larry Martell
page. I'm pretty sure it's empty as when I >> call login(request) I get a blank page with a 200 back. >> >> > >> > On Saturday, February 27, 2016 at 11:09:28 PM UTC+1, larry@gmail.com >> > wrote: >> >> >> >> On S

Re: empty request object

2016-02-29 Thread Larry Martell
So does anyone know why there would be a no user attr? I would expect this: (Pdb) request.user But I get this: (Pdb) request.user *** AttributeError: 'WSGIRequest' object has no attribute 'user' On Sat, Feb 27, 2016 at 6:31 PM, Larry Martell wrote: > Yes, you are abs

Re: empty request object

2016-02-29 Thread Larry Martell
teError: 'WSGIRequest' object has no attribute 'user' >> >> On Sat, Feb 27, 2016 at 6:31 PM, Larry Martell >> wrote: >> > Yes, you are absolutely correct. Thanks for directing me away from >> > that red herring. But it s

Django 1.9 Apps aren't loaded yet

2016-03-02 Thread Larry Martell
I am developing a django app. I had the basic site running, but I had not yet created any models. I created a model, and now the server fails to start with "Apps aren't loaded yet" traceback below. Anyone know what I am doing wrong? Traceback (most recent call last): File "./manage.py", line 10

Re: Django 1.9 Apps aren't loaded yet

2016-03-02 Thread Larry Martell
On Wed, Mar 2, 2016 at 7:37 AM, Michal Petrucha wrote: > On Wed, Mar 02, 2016 at 07:05:53AM -0500, Larry Martell wrote: >> I am developing a django app. I had the basic site running, but I had >> not yet created any models. I created a model, and now the server >> fails to st

Re: Django 1.9 Apps aren't loaded yet

2016-03-04 Thread Larry Martell
On Wed, Mar 2, 2016 at 9:34 AM, Michal Petrucha wrote: > On Wed, Mar 02, 2016 at 08:20:44AM -0500, Larry Martell wrote: >> On Wed, Mar 2, 2016 at 7:37 AM, Michal Petrucha >> wrote: >> > On Wed, Mar 02, 2016 at 07:05:53AM -0500, Larry Martell wrote: >> >> I a

Strategies for apps dealing with large interdependent data sets

2016-03-04 Thread Larry Martell
I have to build an app that has many (~15) interdependent selection fields that come from large datasets across multiple different types of databases. For example, field A might have 10 values in a drop down, and when the user selects "FOO", then field B's drop down gets populated with 30 choices

Re: Who known best solution for resolve problem with building chart in Django power by Python3?

2016-03-21 Thread Larry Martell
On Mon, Mar 21, 2016 at 4:57 PM, wrote: > I have method model, that will return pie chart on each instance model. But > I so far not found normal django-apps for solving problem with creating > chart on my data. I use plotly https://plot.ly/ -- You received this message because you are subscr

Re: Migrating older 1.4 project to 1.9

2016-04-02 Thread Larry Martell
On Wed, Mar 30, 2016 at 10:07 AM, Fred Stluka wrote: > Roger, > > Yeah, I too have a large project that I'll hopefully be migrating > from 1.4 to 1.9 soon. > > It's about 3.5 years worth of work, over 200,000 lines of code > in about 1000 Python source file and Django template files. > > So any ti

Re: Migrating older 1.4 project to 1.9

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 2:52 AM, Mike Dewhirst wrote: > On 3/04/2016 11:01 AM, Larry Martell wrote: >> >> On Wed, Mar 30, 2016 at 10:07 AM, Fred Stluka wrote: >>> >>> Roger, >>> >>> Yeah, I too have a large project that I'll hopefully be mi

Re: django template {% url %}

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 11:50 AM, 颜刚 wrote: > > > i have this code in my template: > > {% for action in actions %} > > {{ action.name_short }} > > {% endfor %} > > but that's error: > > Exception Type: TemplateSyntaxError > Exception Value: > Could not parse the remainder: '{{' from '{{' > >

Re: Migrating older 1.4 project to 1.9

2016-04-04 Thread Larry Martell
On Sun, Apr 3, 2016 at 7:31 PM, Mike Dewhirst wrote: > On 4/04/2016 12:58 AM, Larry Martell wrote: >>> >>> I import models in the top level of each app so I can say "from app >>> import >>> >this, that, other" and it works fine. Django 1.8.

Re: Dedicated pages for specific group members

2016-04-07 Thread Larry Martell
On Thu, Apr 7, 2016 at 3:56 AM, Luca Brandi wrote: > Hi > is there a possibility to create some group members and let them have some > secific url pages accessible to? > I am thinking to a kind of "if staff is member of group"open link page.. A quick google for this came up with: http://stac

odd crash

2018-06-08 Thread Larry Martell
I have an app that uses 1.9. It will work fine for weeks and weeks, and then out of the blue a page that has just worked will crash with this: Request Method: GET Request URL: Django Version: 1.9 Python Version: 2.7.5 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django

Re: odd crash

2018-06-13 Thread Larry Martell
error, not just get it intermittently. I still think there is another higher up error, and I tried to find it by setting a breakpoint and running the devel server, but with that the error never occurs. On Fri, Jun 8, 2018 at 4:16 PM, Larry Martell wrote: > I have an app that uses 1.9. It will w

Re: How to update if user exist instead of create?

2018-09-18 Thread Larry Martell
On Tue, Sep 18, 2018 at 8:13 AM, Django Lover wrote: > How i can update model when Key exist else create a new one?? > > > My code is- > > **Form.py** > > class UserSettingForm(forms.ModelForm): > class Meta: >model = StUserSetting >fields = ( 'default_language', 'prim

Password reset from address

2018-12-14 Thread Larry Martell
Is there a way to set the from address used in the password reset email? -- 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.co

Re: Password reset from address

2018-12-17 Thread Larry Martell
reset in the django.contrib.auth package. You > can add the form_email by creating a class that inherits the > PasswordResetView and sets the from_email property on that view. > > Regards, > > Andréas > > > Den fre 14 dec. 2018 kl 19:02 skrev Larry Martell : >> >>

Django on IIS

2018-12-17 Thread Larry Martell
Anyone have any experience setting up a Django app to work with IIS? I have inherited what I was told is a working system, but it's not working. Before I post details of my issues and questions I wanted to see if anyone here has successfully got a Django app to run with IIS. -- You received this

Re: Django on IIS

2018-12-18 Thread Larry Martell
ly consider myself an expert on the subject. All I can > > say is that it is possible. > > I once had to implement a web service on a Windows server and eventually > installed Apache. That worked brilliantly although it wasn't a heavy > duty application. Django works well on

Re: Django on IIS

2018-12-18 Thread Larry Martell
specifically > you are probably missing CGI. > The PS line to install that seems to be:- > > Enable-WindowsOptionalFeature -Online -FeatureName IIS-CGI > > > Hope this helps a little. > > > On Tue, 2018-12-18 at 10:40 -0500, Larry Martell wrote: > > I am followi

Re: Django on IIS

2018-12-18 Thread Larry Martell
Get-WindowsFeature shows that web-cgi is installed but not iis-cgi. Are these the same? On Tue, Dec 18, 2018 at 12:07 PM Larry Martell wrote: > > Thanks. I ran that command, and I checked the settings and CGi is > installed and enabled. I have the CGI icon in the IIS config page, but &

Re: Django on IIS

2018-12-19 Thread Larry Martell
) > > Which is the command line version of point 2 above. > > IIS also a has a tendency to read a web.config XML in the IIS site root; from > which I think a lot of this can be set from. You can certainly set > environment variable there (such as PYTHONPATH , or DJANGO_SET

No module named context_processors

2019-01-02 Thread Larry Martell
I am having an odd interment problem. I have an app which is deployed at 30 different sites. At one site only, and only intermittently, user will get the error 'No module named context_processors'. It may happen on a page that was previously accessed with no error and upon refreshing the same page

Re: forloop.counter

2020-10-15 Thread Larry Martell
On Thu, Oct 15, 2020 at 7:32 AM luca72.b...@gmail.com wrote: > > i have this : > {% if forloop.counter < {{ variable }} %} > i have this error: > > Could not parse the remainder: '{{' from '{{' > > how i can solve it? You don't need {{ }} inside of a {% %} -- You received this message because

Re: Admin help class CSS

2020-12-11 Thread Larry Martell
If you have a pure CSS question, this list can be very helpful: https://www.css-discuss.org/mailman/listinfo/css-d/ On Fri, Dec 11, 2020 at 4:56 PM Mike Dewhirst wrote: > > Joash > > By all means. If I wasn't entirely clear, I am using html inside model.field > help_text - which works nicely in

Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-22 Thread Larry Martell
I have an app deployed in many places and it uses Django Microsoft Authentication Backend. Starting yesterday when we deploy the app the auth is now not working. We get back Failed to authenticate you for an unknown reason. Please try again later. We can see in the azure logs that the login was suc

Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-23 Thread Larry Martell
rsion of python and all python packages. There are some minor revision differences in a bunch of OS level packages. Could that be a factor? > > On January 22, 2021 2:51:30 PM CST, Larry Martell > wrote: >> >> I have an app deployed in many places and it uses Django Mi

Re: How can I use my Company SSO(Single sign On ) for login into my django application ??

2021-01-27 Thread Larry Martell
On Wed, Jan 27, 2021 at 6:02 AM Kumar Gaurav wrote: > > Hii , > > My users come to my django application after authenticated from company SSO. > Now , I don't want to create my own authentication model. I just want to > login the users who come to my page from the requests storing the details. >

Re: Static Folder not loading

2021-01-28 Thread Larry Martell
On Thu, Jan 28, 2021 at 10:16 AM hari49pf wrote: > > Hi, > > I am trying to load static file to my project its not loading, > I have changed the path of static in settting.py still its not loading static > file. > tryed to check the file is loading by using > manage.py findstatic test.css > PLZ h

Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-29 Thread Larry Martell
On Sat, Jan 23, 2021 at 7:41 PM Ryan Nowakowski wrote: > > On Sat, Jan 23, 2021 at 11:05:14AM -0800, Larry Martell wrote: > > On Sat, Jan 23, 2021 at 8:14 AM Ryan Nowakowski wrote: > > > > > > A couple of places to look: > > > > > > 1. Different

Re: How to protect Python Source Code

2021-02-25 Thread Larry Martell
On Thu, Feb 25, 2021 at 11:10 AM Kommula Kavitha wrote: > > Hi Team, > > We have application developed using Python. Want to know how to protect > source code? There is pyinstaller (http://www.pyinstaller.org/). I tried to use it 4 or 5 years ago and it could not handle all the dependencies I ha

Re: Management command scheduling options

2023-10-25 Thread Larry Martell
On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst wrote: > > Ahmedrufai > > I looked at APScheduler and like Celery it is too much of a sledgehammer for > my tiny problem. > > I ended up using cron to launch the command each day. It works perfectly. > > My task now is to find a way to automate establ

Re: auth_user' doesn't exist

2023-12-02 Thread Larry Martell
On Sat, Dec 2, 2023 at 9:00 AM Nurlanbek Musaev wrote: > hello everyone > I get an error when I do makemigrations. I tried many things. It didn't > happen > django.db.utils.ProgrammingError: (1146, "Table 'prodb1.auth_user' doesn't > exist") Have you run the initial migrations that would have c

logging admin accesses

2023-12-14 Thread Larry Martell
Is there a way to capture all admin changes (add, change, delete). I have some middleware that gets called on any admin add, change, or delete, but I have not figured out a way to capture specifically what was done, something like: model, PK, action, e.g. user, 12, change, first name changed user,

Re: logging admin accesses

2023-12-14 Thread Larry Martell
On Thu, Dec 14, 2023 at 5:49 PM Mike Dewhirst wrote: > Top posting because of phone email client. > > Have you seen the Admin history? Might be already logged for you. > Is that programically accessible? I want to record it in the database. > Original message ---

Re: logging admin accesses

2023-12-15 Thread Larry Martell
---+-+-+ Shows an add, but not what was added. So my questions are: -how can I get it to show the details of what was added or changed -why are updates to UserInfo and UserExtendProduct shown, but updates to UserRole are n

Help with DRF error

2023-12-16 Thread Larry Martell
I have a DRF API. It is throwing an error that I have not been able to fix. Here is my view and serializer: class CreateNotations(CreateAPIView): permission_classes = [IsAuthenticated] serializer_class = NotationListSerializer def post(self, request, *args, **kwargs): return

Re: Help with DRF error

2023-12-16 Thread Larry Martell
On Sat, Dec 16, 2023 at 1:10 PM Reddy Tintaya wrote: > Can't you just use > workitem = serializers.PrimaryKeyRelatedField( > queryset=WorkItem.objects.all()) > instead of workitem_id? > No because workitem_id is what is sent in the request. > > On Sat, Dec

Re: logging admin accesses

2023-12-18 Thread Larry Martell
'mirror' tables for only the critical information and > automate data collection for others in a plain text field for archival. > > It can be quite open ended and might reward very aggressive specification. > > Cheers > > Mike > > > > -- > (Unsigned mail

Re: logging admin accesses

2023-12-18 Thread Larry Martell
can be quite open ended and might reward very aggressive specification. > > Cheers > > Mike > > > > -- > (Unsigned mail from my phone) > > > > Original message > From: Larry Martell > Date: 16/12/23 01:47 (GMT+10:00) > To: django-users@googlegroup

Re: logging admin accesses

2023-12-18 Thread Larry Martell
Larry Martell wrote: > > No, I have not see django-simple-history - thanks for the pointer - will > check it out. > > On Fri, Dec 15, 2023 at 9:02 PM Mike Dewhirst wrote: >> >> Just thinking about it again ... you could look at the Admin source to see >> how it

Re: logging admin accesses

2023-12-19 Thread Larry Martell
On Mon, Dec 18, 2023 at 7:23 PM Mike Dewhirst wrote: > > On 19/12/2023 9:51 am, Larry Martell wrote: > > Hmmm, in my case I do not see any models for those in any of my models.py > files. Where would I expect to find them? > > > You have to write them yourself. Yeah, tha

Re: logging admin accesses

2023-12-19 Thread Larry Martell
I got this working. I had to add history = HistoricalRecords(m2m_fields=[products]) to the models with the M2M relationships. Did not see that in the docs anywhere. On Tue, Dec 19, 2023 at 2:17 PM Larry Martell wrote: > After creating the models for the m2m tables the changes to them are &g

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
On Tue, Sep 24, 2019 at 4:15 AM Andréas Kühne wrote: > > Official access isn't denied - and python 2 will probably be available. The > problem is that you don't get any security fixes or any updates at all. That > in itself is a major problem. If someone is saying that you need to use > python

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
companies will maintain there own version of > Python programming language which will continue to be maintained as long as > they have paid users for Python 2? I seriously doubt that. Or may be I am > understanding it all wrong. > > > -- > Regards > Deep L Sukhwani > >

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
nity itself. > > -- > Regards > Deep L Sukhwani > > > On Tue, 24 Sep 2019 at 17:53, Larry Martell wrote: >> >> Anaconda, Enthought, ActiveState, Red Hat and maybe others as well. >> Also large companies can do their own support. >> >> On Tue, Sep 24

Re: convert python 3 to python2

2019-09-24 Thread Larry Martell
Ha! How about perl? ;-) On Tue, Sep 24, 2019 at 8:33 AM Nick Sarbicki wrote: > > I'm not convinced anyone could pay me enough to go back to Python 1... > > > On Tue, Sep 24, 2019 at 1:32 PM Larry Martell wrote: >> >> You can get anyone to do anything for enough m

Re: Could not parse the remainder: '='dashboard'' from 'section='dashboard''

2019-11-22 Thread Larry Martell
== -- 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 view this discussion on the web visit https://groups.google.com

Channels, daphne, and asgiref, oh my!

2020-02-21 Thread Larry Martell
I am in a bit of version hell. Not fun on a Friday afternoon. Django 2.0.4, python 3.5.2 Trying to get channels, websockets, daphne, and asgiref working. When I installed the latest channels it did not work with my version of mysqlclient and some googling led me to install 2.0 of channels. That

<    1   2   3   4   5   6