Re: Encrypt entire Django project and decrypt it in ram when starting server

2023-11-14 Thread Om Khade
Thank you Ahmed for such a detailed information, yes we have a licensing server for managing the encryption keys and licence keys. I tried to find some resources regarding singing the code but couldn't find any available resources. Do you have any references that could be used. On Tue, 14 Nov, 2

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Lutaaya Jamil
I guessed that would be the issue as I normally run into it at times On Tuesday, 14 November 2023 at 18:56:02 UTC+3 David Crandell wrote: > Found the issue. I had a DATABASE_URL defined in my environment variables > for one of my projects and my other project was somehow using this even > thoug

Re: Writing migrations to wrong database entirely

2023-11-14 Thread David Crandell
Found the issue. I had a DATABASE_URL defined in my environment variables for one of my projects and my other project was somehow using this even though settings.py had its own definition under DATABASES. I temporarily changed the DATABASE_URL var to a different name to eliminate it from the

Re: Encrypt entire Django project and decrypt it in ram when starting server

2023-11-14 Thread Ahmed Iftikhar
Obfuscation can make the code less readable, but it won't provide strong security. There are Python tools like *pyobfuscate *that can be used for this purpose. However, keep in mind that this is not encryption, and determined attackers can still reverse engineer obfuscated code. While you can e

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Ahmed Iftikhar
It's possible that there is a migration state issue. Try running the following commands: *python manage.py migrate zeropython manage.py migrate * This will revert all migrations for the specified app and then migrate all apps to the initial state. Be cautious, as this will reset your databas

Re: Writing migrations to wrong database entirely

2023-11-14 Thread Lutaaya Jamil
Are you using the database_url your environment variables? Maybe the file is same On Tuesday, 14 November 2023 at 17:14:22 UTC+3 David Crandell wrote: > > > Howdy, I have been working with Django for about three years now and have > developed

Re: Encrypt entire Django project and decrypt in ram to start server.

2023-11-14 Thread Sebastian Jung
I think this here are a good solution where you can build all files as .so files which i think are c files. https://stackoverflow.com/questions/32577864/cython-for-a-django-app-would-it-work Daniel Martinez schrieb am Di., 14. Nov. 2023, 15:17: > A solution for that is add a IP blocker in your

Re: Django Rest framework

2023-11-14 Thread OSP PRO
using django-cors-headers On Tue, Nov 14, 2023 at 11:52 AM Akorede Habeebullah wrote: > Try using django-cors-headers. It should work. > You can check it's documentation for how to use it. > > On Tue, Nov 14, 2023, 12:13 AM Lutaaya Jamil > wrote: > >> You can correct me if I am wrong, but ther

Re: Encrypt entire Django project and decrypt in ram to start server.

2023-11-14 Thread Daniel Martinez
A solution for that is add a IP blocker in your server to avoid brutal forces attacks that way you can use. Or a tool for monitoring you traffic such Snoft. Happy coding 😎 On Mon, Nov 13, 2023, 6:54 AM Om Khade wrote: > I want to save my Django project on a shared server in encrypted format >

Writing migrations to wrong database entirely

2023-11-14 Thread David Crandell
Howdy, I have been working with Django for about three years now and have developed a couple business grade apps which are deployed and doing great. The other day, I created a new project with a new database, etc. I built out the initial mode

Re: Django Rest framework

2023-11-14 Thread Akorede Habeebullah
Try using django-cors-headers. It should work. You can check it's documentation for how to use it. On Tue, Nov 14, 2023, 12:13 AM Lutaaya Jamil wrote: > You can correct me if I am wrong, but there is something to do with > > Cross-Origin Resource Sharing (CORS) in Django which somehow is set to