티스토리 수익 글 보기
How to deploy Django¶
Django is full of shortcuts to make web developers” lives easier, but all those tools are of no use if you can’t easily deploy your sites. Since Django’s inception, ease of deployment has been a major goal.
There are many options for deploying your Django application, based on your architecture or your particular business needs, but that discussion is outside the scope of what Django can give you as guidance.
Django, being a web framework, needs a web server in order to operate. And since most web servers don’t natively speak Python, we need an interface to make that communication happen.
Django currently supports two interfaces: WSGI and ASGI.
- WSGI is the main Python standard for communicating between web servers and applications, but it only supports synchronous code.
- ASGI is the new, asynchronous-friendly standard that will allow your Django site to use asynchronous Python features, and asynchronous Django features as they are developed.
You should also consider how you will handle static files for your application, and how to handle error reporting.
Finally, before you deploy your application to production, you should run through our deployment checklist to ensure that your configurations are suitable.
- Πως να ανεβάσετε το site σας χρησιμοποιώντας το WSGI
- Πως να χρησιμοποιήσετε το Django με το Gunicorn
- Πως να χρησιμοποιήσετε το Django με το uWSGI
- Πως να χρησιμοποιήσετε το Django με τον Apache και το
mod_wsgi - How to authenticate against Django’s user database from Apache
- Το
applicationobject - Παραμετροποιώντας το module των ρυθμίσεων
- Εφαρμόζοντας ένα WSGI middleware
- How to deploy with ASGI
- Λίστα ελέγχου για το Deployment
Πρόσθετες πληροφορίες
Support Django!
Περιεχόμενα
Μέρη για βοήθεια
- FAQ
- Δοκιμάστε τα FAQ — περιέχουν απαντήσεις σε αρκετές συνηθισμένες ερωτήσεις.
- Ευρετήριο, Ευρετήριο Module, or Πίνακας περιεχομένων
- Χρήησιμο όταν αναζητείτε συγκεκριμένες πληροφορίες.
- Django Discord Server
- Join the Django Discord Community.
- Official Django Forum
- Join the community on the Django Forum.
- Ticket tracker
- Αναφέρετε τυχόν bugs του Django ή του Django documentation στον ticket tracker.
Κατέβασμα:
Εκτός σύνδεσης (Django 4.2):
HTML |
PDF |
ePub
Από το Read the Docs.