Comments (2)
Providing a normal console command that doesn't require instantiating the Django stack thats analogous to the Django shell command would probably be the best thing to do here. The caveat is that you wouldn't be able to build a context to render a template off Django's realized stack (i.e. no DB stuff) - but that use case is suspect to begin with.
Users would then be free to incorporate runs of that command into their test/packaging/release routines w/o requiring the Django stack to be initialized.
from django-render-static.
You can already render static files at package time using either this tool or others.
The use case here is really about is there a role for render_static outside of a realized Django stack. Given that the predominate use case for render_static is to render static files using the override/extension capability provided by the precedence of a Django app stack this issue needs more consideration.
from django-render-static.
Related Issues (20)
- Allow enum class writer to_string parameter to be the name of a property to return from toString()
- deepEqual generated code in ClassURLWriter has an error
- deepEqual should only be included by ClassURLWriter when Django version is less than 4.1
- Support Django 5.0
- Refactor renderstatic command using TyperCommand
- Install django-stubs when running static type checks.
- Switch README and CONTRIBUTING to markdown.
- Custom URL converts may expect reversal kwargs to be of a given type.
- CommandError: Error rendering template to disk HOT 2
- Support django-typer version 2.1
- Switch to ruff for formatting and linting
- Remove imports in __init__.py HOT 1
- Allow context import path to also point to a module.
- Remove wrapped dependency required mishegoss and replace with jinja2 module level imports HOT 1
- Move tests into top level directory.
- Does urls_to_js support locale urls?
- Support Django 5.1
- Support a no-render copy operation where the path may be a template.
- __pycache__ dirs should be ignored during batch rendering.
- BatchLoaders should not try to load pycache files.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-render-static.