Re: Why can't Nginx find Django's static files?

2020-02-21 Thread Jody Fitzpatrick
Take a look at whitenoise for django, this should help you. On Thursday, February 20, 2020 at 11:35:51 AM UTC-5, Robert F. wrote: > > I'm trying to understand how static files are served up by Django using a > project I've created on my Mac using Django 3, Gunicorn, and Nginx. The > website

Re: Sending json data to postgres once received from API

2020-02-13 Thread Jody Fitzpatrick
Hello Ilya I would read the following: https://docs.djangoproject.com/en/3.0/topics/db/models/ Essentially, what you do in shell is what you would do in your code. I also believe you might want to look at how you are grabbing the posted data. I would use something like url =

Re: Django server is slow after moving database to remote VM

2020-02-10 Thread Jody Fitzpatrick
Are the VM's within the same network/hosting company? On Mon, Feb 10, 2020 at 8:38 AM Simen Russnes wrote: > Ever since I separated my server running the Django code (2.2.9), and my > MariaDB server (10.3), there has been a significant lag increase in my > application. > > I've tried to limit

Re: micro payments

2020-02-06 Thread Jody Fitzpatrick
PayPal, talk to them about micropayments. It is by far less expensive than the traditional route - at least when i last used it it was. On Thu, Feb 6, 2020 at 7:39 AM Evgeni Petrov wrote: > I am creating a Django platform. I need a solution for micropayments. The > value will be on average 2

Re: JSONField() ordering and removing latest

2020-02-04 Thread Jody Fitzpatrick
I would change the model a bit, instead of having the timestamp as the key, i would set it in the dict. I believe that would be cleaner and would allow you to do a bit more of what you are going for. On Thursday, January 30, 2020 at 10:38:33 AM UTC-5, wagner wrote: > > Hello together, > i have

Re: How to make Django Application more secure

2020-01-02 Thread Jody Fitzpatrick
Hi Balaji It's not necessarily template views. Let's come up with a scenario so you can see. Let's assume you have an order form, and your customers can view that order form by viewing: yoururl.com/orders/?order_id=101 You think it's okay - after all the customer has to login and view their

Re: How to make Django Application more secure

2020-01-02 Thread Jody Fitzpatrick
Django by itself is fairly secure, it's your coding that makes it not secure and the resources you use. 1.) Don't use simple passwords. 2.) Don't use /admin/ as your admin location. Do change it. - install something like honeypot to catch people trying to gain access to admin 3.) Don't forget

Maybe you can help me? Dynamic Admin Cache clearing/restarting?

2019-10-24 Thread Jody Fitzpatrick
I'm working on a project where the admin models are registered dynamically, this is including dynamically adding features like list_display, search_fields etc. The issue I'm having now is that when I make a change ( params are loaded from a database table ) it seems to be caching the response

Re: ElementTree problem saving images

2019-10-24 Thread Jody Fitzpatrick
Would something like XMLTODICT help? https://pypi.org/project/xmltodict/ import xmltodict # Third Party data = "" parsed_data =xmltodict.parse(data) # do your data thing here... -- You received this message because you are subscribed to the Google Groups "Django users" group. To