css not being rendered for api endpoint page when using apache

48 views
Skip to first unread message

Muthukumaran M

unread,
Feb 16, 2021, 8:01:24 AM2/16/21
to Django REST framework
I deployed my django website using drf using apache on aws but the css is not being rendered for the api page but its being rendered for the other parts of the website 

Shaharyar Shamshi

unread,
Feb 16, 2021, 2:18:02 PM2/16/21
to django-res...@googlegroups.com
You need to collect static files from virtual environment run python manage.py collectstatic

shaharyar shamshi
software developer

On Tue, Feb 16, 2021, 18:31 Muthukumaran M <muthukumar...@gmail.com> wrote:
I deployed my django website using drf using apache on aws but the css is not being rendered for the api page but its being rendered for the other parts of the website 

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/bf44a4aa-de8d-4754-b212-e4ffc4f3ea41n%40googlegroups.com.

ifthikkarudheen t

unread,
Feb 19, 2021, 9:01:46 AM2/19/21
to django-res...@googlegroups.com
when  i registered some users and then run the code...it shows the following error...please suggest the solution
self.related.get_accessor_name()
django.contrib.auth.models.User.userprofile.RelatedObjectDoesNotExist: User has no userprofile.

Reply all
Reply to author
Forward
0 new messages