Comments (4)
Because it is a preference mostly. And it clearly indicates that this is an app.
There are no other arguments.
from wemake-python-styleguide.
Why "all applications should be named as *_app
"? To not confuse them with non-django modules?
Can you provide an example dir structure where it's useful?
from wemake-python-styleguide.
We try to contain all application specific logic inside app
dirs.
For example, if you have logics that is working with users it goes to:
server
- main_app
- orders_app
- users_app
- - logics
- - - some_module.py # <- the logic goes here
Here's an example:
https://github.com/wemake-services/wemake-django-template/tree/master/%7B%7Bcookiecutter.project_name%7D%7D/server
from wemake-python-styleguide.
Got it about logics, but why _app
? In this example, it looks redundant. Why is it better than
server
- main
- orders
- users
- - logics
- - - some_module.py # <- the logic goes here
Maybe it makes sense if server
dir is cluttered with nondjango modules.
from wemake-python-styleguide.
Related Issues (20)
- WPS508 on negating chain comparison HOT 4
- `self._tokens[1]`: `IndexError: list index out of range`
- Question about WPS324 — Enforce consistent return statements. HOT 2
- How to set up WPS (wemake-python-styleguide) autocheck in PyCharm HOT 1
- Drop `astor` in favour of `ast.unparse`
- Remove usage of deprecated nodes: `ast.Num`, `ast.Str`, `ast.Bytes`, etc
- Better detect literal nodes with `wps_op_eval`
- Do we still need `fix_line_number`?
- Too many exceptions in one `except`
- WPS221 wrong case
- WPS331 should recommend the opposite HOT 2
- Drop the abandoned `flake8-commas` plugin from deps HOT 2
- WPS602 features a dead link
- WPS474 False Positive
- Docstring errors reported on the line after the comment in certain cases
- Flakehean not maintained HOT 1
- Compare with ruff in README.md
- `WPS347` and `N811` rules conflict HOT 1
- IndexError on first run HOT 1
- WPS434 false positive when unpacking
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 wemake-python-styleguide.