Re: Serving static files in production

2023-04-26 Thread Brian Odhiambo
@Prosper, I installed whitenoise at some point, but later removed its configuration. On Thu, Apr 27, 2023 at 8:11 AM Prosper Lekia wrote: > Is whitenoise installed and added to MiddleWare? > > On Thu, Apr 27, 2023, 00:37 David Nugent wrote: > >> Ensure that nginx is correctly configured, since

Re: Serving static files in production

2023-04-26 Thread Brian Odhiambo
Thanks for your response @David. Here is my nginx configuration.[image: 1c9b64ec-c74f-4004-8b8d-9a6e7a3d8069.png] Pointed it to staticfiles after running collectstatic files command. On Thu, Apr 27, 2023 at 8:11 AM Prosper Lekia wrote: > Is whitenoise installed and added to MiddleWare? > > On

Re: Serving static files in production

2023-04-26 Thread Prosper Lekia
Is whitenoise installed and added to MiddleWare? On Thu, Apr 27, 2023, 00:37 David Nugent wrote: > Ensure that nginx is correctly configured, since from what you have > provided the django configuration looks correct (although I generally use > /static/ as STATIC_URL - with the leading / but

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Alec Delaney
I love it On Wed, Apr 26, 2023, 11:08 PM Mike Dewhirst wrote: > On 26/04/2023 10:18 am, Julius Chesoni wrote: > > Hi guys, I find programming in the abstract very interesting and full of > intellectual benefits similar to those acquired from Mathematics. However, > when it comes to programming

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Mike Dewhirst
On 26/04/2023 10:18 am, Julius Chesoni wrote:  Hi guys, I find programming in the abstract very interesting and full of intellectual benefits similar to those acquired from Mathematics. However, when it comes to programming languages I find the practice of programming very tiresome since there

Re: Serving static files in production

2023-04-26 Thread David Nugent
Ensure that nginx is correctly configured, since from what you have provided the django configuration looks correct (although I generally use /static/ as STATIC_URL - with the leading / but should work as you have it). Check the nginx error log to try to discover the cause of the 404s. I suspect

Saving data from a post request using nested DRF serializers

2023-04-26 Thread Kimanxo
Here is my problem im gelreat details : https://stackoverflow.com/questions/76112118/django-rest-frameworks-nested-serializers-post-request-foreignkey-error -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Brian Carey
If you want intellectual stimulation start with vanilla python or js. If you want to learn a framework. This is purely subjective. Either way I don't know how you'd do it without reading or a full-time tutor. If you find it too tiresome then maybe a little introspection is in order. ⁣Get

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Khalifa Abdurahman
Practice practice practice On Wed, Apr 26, 2023 at 4:58 PM Julius Chesoni wrote: > Hi guys, I find programming in the abstract very interesting and full of > intellectual benefits similar to those acquired from Mathematics. However, > when it comes to programming languages I find the practice

Serving static files in production

2023-04-26 Thread Brian Odhiambo
Hello everyone, I am deploying a django project to a dedicated server. I have set nginx to find static files in this file "staticfiles". This is the setting in settings.py file: STATIC_ROOT = BASE_DIR / 'staticfiles' STATIC_URL = 'static/' After running collectstatic command, my project can't

Re: Django CORS Headers

2023-04-26 Thread Reddy Tintaya
https://pypi.org/project/django-cors-headers/ django-cors-headers pypi.org This package does the magic for you :) > On 26 Apr 2023, at 07:14, Salman Butt wrote: > > Hello i am using drf to create api for viewing User profile and relevant > information, during Sign up and log in there were

Django CORS Headers

2023-04-26 Thread Salman Butt
Hello i am using drf to create api for viewing User profile and relevant information, during Sign up and log in there were no issues as it didn’t required any headers but now since user is logged in i have created a JWT token for authentication and i am using that token to verify the user, my

Re: python manage.py commonds: AttributeError: 'PosixPath' object has no attribute 'startswith'

2023-04-26 Thread Julius Chesoni
You must be a very good Django programmer. Thank you on behalf of Django community, for such a great answer that even novices like me are able to understand. I had no idea that there were other non default configurations of the variable BASE_DIR. Julius. On Wed, Apr 26, 2023 at 1:15 AM David

Is programming in Django intellectually satisfactory

2023-04-26 Thread Julius Chesoni
Hi guys, I find programming in the abstract very interesting and full of intellectual benefits similar to those acquired from Mathematics. However, when it comes to programming languages I find the practice of programming very tiresome since there are very many functions in the documentations. I

Re: Unpaid Internship

2023-04-26 Thread justice abekah
OK , I will get back to you soon On Tue, Apr 25, 2023 at 10:50 PM kelvin Ace wrote: > > mailto:p...@scom.ca > > >> Pls contact me directly at pa...@scom.ca please have an idea >> >> >> thanks - paul >> >> Paul Kudla >> >> >> SCOM.CA Internet Services Inc. >> 004-1009 Byron Street South >>

Re: Unpaid Internship

2023-04-26 Thread Julius Chesoni
I’m interested in a paid internship so that I could be motivated to work hard. I am from Nairobi in East Africa and I don’t have any job because of poverty and massive unemployment in sub Saharan Africa. Thanks. On Mon, Apr 24, 2023 at 6:57 PM Paul Kudla ( SCOM ) wrote: > Pls contact me