search

Home  >  Q&A  >  body text

python - APP后台的技术栈?

我想做一个app,后台打算用python来写,业务不复杂,也不用考虑性能问题,但之前没怎么接触过后台,不知道需要搭建一个什么样的技术栈,什么服务器跟python搭配得比较好?还是不用考虑,直接来一个简单的http服务器就行?框架只是听过django,但它似乎是个大而全的全栈框架,用这样的框架会不会小题大做?

能不能列一下后台的技术栈?谢谢~

高洛峰高洛峰2887 days ago452

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:56:34

    No. The business is not complicated, and there is no high concurrency requirement. Django is more than enough to write the backend. If using Django, the usual production environment solution:

    Front-end server: nginx. Mainly responsible for sending static resources and forwarding dynamic requests to the backend server;
    Backend server: uWSGI. It is mainly used as a back-end server. To put it bluntly, it is a server that runs Django applications;

    It should be noted that using Django as the backend of the app requires writing a data interface (API), which requires data serialization (json, xml), etc. The serializer data provided by Django is relatively complex and is not suitable for direct output. You may need django-rest-framework or write a serializer yourself. I have written a serialization service before. If you need it, you can take a look: django-simple-serializer

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:56:34

    General apps do not require too much pressure, and they are not projects with millions of daily users

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:56:34

    If the project is not big. It is not recommended to use Python, you can try PHP, development and deployment are very fast.
    Django is a relatively large framework, you can try to follow the tutorials on the official website. The lightweight option flask can be used in at least two hours. You can leave the project address for your reference

    reply
    0
  • Cancelreply