Comments (2)
Hi,
Are you sure you have read the docs, because it's all there, you missed several steps from the docs that is why you don't see any difference in your database structure.
Here is a summary:
- Create a Django model and run
syncdb
to create the table in the database - Add
architect.install
decorator to the model - Run the following command
export DJANGO_SETTINGS_MODULE=mysite.settings
where mysite.settings is your settings module - Finally, run the following command
architect partition --module path.to.the.model.module
that will create the needed triggers in the database
That's it
from architect.
Thanks! I just figured out that.
from architect.
Related Issues (20)
- Postgresql 11 - Trigger for declarative partitioning HOT 1
- syntax error is coming when creating partition of my table HOT 1
- wrong Check constraints
- Missing Contributor License Agreement
- Can I use this library for flask_sqlalchemy? HOT 4
- Examples HOT 3
- Foreign keys to partitioned tables and postgres 12 support
- Still maintained? HOT 2
- How to check if your ORM is supported! (Django + others) HOT 1
- Deleting a field from a table only deletes that field from Parent but not its Child?
- Peewee 3.x HOT 1
- Modern Django not supported HOT 1
- failed when import FieldDoesNotExist from django.db.models.fields HOT 1
- Automatically partition the table with bulk_create() method in Django HOT 1
- architect.exceptions.ORMError: Unsupported ORM "django" requested for class "{MyModel}", available ORMs are: django, peewee, pony, sqlalchemy, sqlobject
- when I want to updated partitioning field occurs error
- Model class app_name.models.MyModel doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS
- What does "architect partition" do to the table?
- Alembic downgrade; single qoutes in postgresql
- Is this maintained? HOT 1
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 architect.