Giter Club home page Giter Club logo

Comments (4)

rdegges avatar rdegges commented on July 28, 2024

Hi there!

The wsgi.py file isn't included as django-skel is opinionated for deployment / etc. The preferred webserver to deploy django-skel projects with is gunicorn, which can run things fine without any wsgi.py file (which is why it isn't included).

The requirements.txt file is a standard python convention in web apps. Basically, you throw all your production requirements in there (in this case, it simply includes the reqs/prod.txt requirements), that way new users wanting to install all production stuff can simply run 'pip install -r requirements.txt' at the top-level to have everything work.

Heroku also uses the top-level requirements.txt file, but that's really for standards.

Hope that helps explain!

from django-skel.

LucianU avatar LucianU commented on July 28, 2024

I don't know what you mean by requirements.txt being a standard python convention in web apps. I know that every Python package should have one if it has dependencies outside of the standard library, but that's it. From my point of view, having the reqs directory is enough in this case, because you can specify the path.

from django-skel.

rdegges avatar rdegges commented on July 28, 2024

So, the convention for python libraries (reusable stuff) is to put all dependencies in your setup.py script--this way when you download stuff from PyPI it'll automatically install all your dependencies nicely.

For web apps, the tradition is to put all your requirements to run the web app inside a top-level file named requirements.txt. Since django-skel provides different requirements files (one for development-specific stuff, one for testing, one for production), I tried to stay true to the standard by the top-level file continue to exist, but just pull in the production requirements.

from django-skel.

LucianU avatar LucianU commented on July 28, 2024

Ok, I haven't heard of this standard for Python web apps and I think it's weird that it exists. I don't see the reason why you need to have the requirements at the root of the packages in a single file, especially since in the case of web apps it's common to have different deployment environments and, as such, different files for each environment.

from django-skel.

Related Issues (20)

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.