Git Product home page Git Product logo

hello-world-django's Introduction

Photo by Yoksel 🌿 Zok on Unsplash

Kinsta - Hello World - Django

An example of how to set your Django application up to enable deployment on Kinsta App Hosting services.


Kinsta is a developer-centric cloud host / PaaS. We’re striving to make it easier for you to share your web projects with your users. Focus on coding and building, and we’ll take care of deployment and provide fast, scalable hosting. + 24/7 expert-only support.

Dependency Management

Django is a Python-based web framework, so during the build process Kinsta will automatically install dependencies defined in your requirements.txt file.

The python manage.py collectstatic command will also be executed at every build to collect all static files to the directory defined in STATIC_ROOT.

Environment Variables

Note that the SECRET_KEY should not be stored in your repository, but rather set up in an environment variable. Set a random string in your newly created app's Settings > Environment variables section and make it available as both build and runtime variables. Finally, redeploy your application on the Deployments page to make the changes effective.

Web Server Setup

Start Command

When deploying an application Kinsta will automatically create a processes based on the Procfile in the root of the repository. Make sure to use this command to run your server:

web: gunicorn helloworld.wsgi

Watch How to Set Up a Django Application on Kinsta

Watch the video

hello-world-django's People

Contributors

palmiak avatar lpgera avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.