Code Monkey home page Code Monkey logo

Comments (4)

ZeiP avatar ZeiP commented on August 17, 2024 1

Joo, yleensä suositellaan että tuotantoasennuksissa tiedostot palveltaisiin suoraan HTTP-palvelimella. Itselläni on tästä ajossa tuotantoversio jossa on Nginx edessä, mutta toki monet varmaan ajavat kisakohtaisia virtuaali- tms. ympäristöjä joissa tuo ei ehkä ole relevanttia. Dokumentaatiota on ehdottomasti ainakin syytä parantaa ja tehdä mahdollisimman helpoksi tiedostojen palveleminen suoraan Djangon kautta. Mietin että pitäisikö tuolle luoda oma asetus sen sijaan että käyttää DEBUGia, jolla on myös muita vaikutuksia, ja laittaa vaikka sen oletuksena päälle?

from kipa.

pholm avatar pholm commented on August 17, 2024

Ilmeisesti johtuu /web/urls.py configuraatiosta, jossa staattiset tiedostot tarjoillaan eri tavalla debug-tilassa. Imo tämän voisi tehdä myös tuotannossa samalla tavalla: jossain lähteissä suositellaan staattisille tiedostoille erillistä palvelinohjelmaa, mutta se ei liene relevanttia Kipan kohdalla.

image

from kipa.

villevuor avatar villevuor commented on August 17, 2024

Joo, hyvä löytö. Joka tapauksessa asennusohjeisiin voisi tarkentaa, miten pitäisi tehdä

from kipa.

ZeiP avatar ZeiP commented on August 17, 2024

Tämä tulikin näemmä nyt samalla korjattua, eli nyt on SERVE_MEDIA-asetus erikseen joka määrittää palveleeko Django tiedostot. Docker-versiossa tuo on päällä jolloin koko homma toimii oletuksena paketista.

from kipa.

Related Issues (17)

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.