Monday, June 1, 2020

Re: Issue with serving angular with django

Hi Kasper,

Thanks for the response.
I serve my static file by running python manage.py collectstatic on the built file I get from the frontend angular guy 
AJAYI Sunday 
(+234) 806 771 5394



On Mon, Jun 1, 2020 at 2:55 PM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
Hi Sunday,

On 01/06/2020 15.48, Sunday Iyanu Ajayi wrote:
>
> Please What am I doing wrong? Or are there better ways of serving
> angular build files on django?
>

You haven't described how you are currently serving static files with
Django. I suggest you start by reading this:

https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/

You definitely shouldn't use DEBUG in production and you definitely
should serve static files with your web server of choice.

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/12912d74-160c-547a-5cb5-0275432e751d%40stacktrace.dk.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKYSAw3vLNZ5RDLav-WuUO1kH4rn%3DF%3DcDLFdteK%2BM_4d9rR9HA%40mail.gmail.com.

No comments:

Post a Comment