Comments (4)
@Diaoul I like to treat me projects as Python packages and install them with pip. This was you can take advantage of the features available with setuptools. I've even gone so far as to setup devpi to run my own private Python package index.
from overholt.
That changes the layout of the project then, doesn't it?
For example, the alembic folder must be moved under the overolt
package and to leverage on setup.py test
you also need to move the tests
package too right?
Do you use the console_scripts
entry point in setuptools to run the manage.py from the command line?
from overholt.
@mattupstate: sorry for being pushy but I'd like to know how you do it because I think I'm doing it wrong. Thanks 🍰
from overholt.
Generally, I don't make migrations part of the package because migrating a database isn't always necessary when deploying and sometimes requires maintenance specific downtime and DBA level access control. However, in some cases I have made migrations part of the package and an entry point into Alembic to upgrade the database. There is a certain level of Python zen I appreciate in making the migrations as part of the package. But it isn't always necessary to make the package that "complete". Sometimes its just a matter of taste. Other times a matter of user experience.
from overholt.
Related Issues (20)
- requirements.txt == versus >= HOT 1
- A question for core.Service HOT 7
- Authentication for Api HOT 1
- Cookies seem to contain successive registration emails. HOT 3
- Thoughts on imports HOT 3
- Where to discuss? Also next steps... HOT 2
- Where would I put signals? HOT 2
- How to use one service from another? HOT 1
- Overholt how to send the flask-security emails via Celery? HOT 4
- Test suite hangs and never finishes successfully
- Service Objects vs Service Mixins HOT 4
- Trouble overriding default Flask-Security Forms
- How is the circular import of celery tasks handled? HOT 1
- decorative view function two times HOT 2
- celery context
- How to use Flask-Restful with this structure HOT 1
- Flask Principal within Overholt
- how to init database HOT 2
- potential decorator issue
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 overholt.