Forums

Help with deployment api and static web

So I have a django project with ember web static pages, so basically i have an api side of the website and the web static pages and i want to deploy everything in a pythoanywhere because of a school project. I already tried on pythonanywhere but i can only deploy the api part. Can someone help me on how to deploy the static part or everything Thanks.

Does this help?

https://help.pythonanywhere.com/pages/DjangoStaticFiles/

Now i can see the code if i go to the link i can see the "code" behind the page but not the page itself

If you're seeing code, it's not a static file. Static files are things that you want to have served up exactly as they are, like CSS or JavaScript.

If you want a template to be processed by your web application and then served up, you'll need to write a Django view to render the template and set up an entry in a urls.py for it.