Quantcast
Channel: Understanding how to create django Models - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Joe J for Understanding how to create django Models

Nothing prevents you from making relationships to models in other apps. Apps are simply are a way to group code in logical places. Here is an example of how you might reference one model located in a...

View Article



Answer by Jacinda for Understanding how to create django Models

Yes. See this SO question: Foreign key from one app into another in DjangoYou can use Django's built-in auth app and User object for this. It's one of the "batteries included" features. See here and...

View Article

Understanding how to create django Models

I followed some examples on the Django website and I understand the idea that Django wants you to separate pieces of the project into 'apps'. Each 'app' has its own models. So if I want to create an...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images