Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4555360
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:12:52+00:00 2026-05-21T17:12:52+00:00

I couldn’t find a real andwer for what i need. I have a king

  • 0

I couldn’t find a real andwer for what i need.
I have a king of complex project to build and decided to take the huge task of doing it for the first time while learning django in the proccess (Yes, I know it is not the smartest thing to do, but I think that in the long run it will prove it self…Hope so…LOL)

Any way, In past projects, Using .NET, when designing my DB, I just used followd the UML and made sure that all the rulls are followd. and every thing was OK, as there is not OneToOne corelation between the DB and the project…building the DB i need and then creating the project to talk with with what i need from there….just talking with the right SP….

No, With DJANGO it seem kind of the other way around, and i don’t know if the programming model (logic) I used to follow until now is still valid.

And to the point:

I’m building two systems in the same time. The system in general is for a Voluntary rehabilitaion association. There is the front for the public and users and The CMS/backoffice for the CEO and stuff (many more things then what in the site, but ofcourse, the website gettes the data from the backoffice, like user othentication for login, user name for publictaions and so on…).

So, what I am trying to say, this is kind of User based Project, most the tabels (models?) in one way or the other connect to the user (I wrote models with a questien mark becouse when representing a DB is every thing around the user table, but not sure when changing it to MTV, what really it should look like – becouse of the connection and inheritance and reverse connections between the models)…

I’ve read all the DJANGOPROJECT docs I could find about it, but as we all know, all the examples over there are very simple, two, three models and i couldn’t find a complex example for a project this size….

I would love to do it with django, The learning curve is really really steep, but hopefully, I will open my eyes and world for better things (allready did, and every day i’m falling inlove with it more and more…LONG LIVE OPEN SOURCE (FROM A LONG TIME MICROSOFT JUNKY)…LOL)

Just to show part of the DB tables (as they are in a ms-sql DB, i’m preaty sure it is not the right thing for DJANGO as it doesn’t seem logic to me to keep it like that, but for pure SQL this is the way to go): The arrows point to the table where the primary key is in.

putTypes <- committeePubs -> committees <- committeeMemebers -> Users

ArticleGenres <- ArticleInGenres -> Articles -> Users

ImageTypes <- Images -> Galleries ->Users

Disabilities <- users

And so on….Every thing is connected to the Users in one way or the othere, wether the User are the primary table or the data provider table….

Now, Can any one help me with this, I know it is a masive request, And ofcourse i am not looking for any one to hold my hand and take me step by step, just looking for a big/comples example so i could learn from there, with a complex set of tables(models) and where and when to build a new app and when to do things in the same app. And also if posible, how to connect the Users table to all the other tables (I know about i import and and just using it, but this is much more complicated then that).

Last thing, Sorry for the grammer mistakes, not my native language…trying to catch them, but I don’t always can….

P.S. Another matter, my Users models is much more complicated then the django one, I have many more fields that need to be there, what to do with that?
10x for reading and for helping and any one can….And any way, if not, also 10x 🙂

Erez

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:12:53+00:00Added an answer on May 21, 2026 at 5:12 pm

    There’s nothing particularl wrong with the way you’ve pictured it there. A couple of points though.

    • Django models are usually given singular names – Committee rather than Committees.

    • The committeeMembers and ArticleInGenres appear to be linking tables in many-to-many relationships. If they’re just that, and don’t store any information of their own other than the two foreign keys, you can leave them out completely – just define a ManyToManyField on Committee, pointing at User, and Django will create and manage the intermediate table for you.

    • The link from User to Disability is more complicated. You shouldn’t really modify the built-in User model. Along with your final point about extra fields on User, it seems that your best bet is to define a separate UserProfile model with a OneToOneField to User, on which you can store the extra information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I couldn't find this in the documentation. If I have a complex object in
I couldn't find anything similar to this anywhere. I have an array of pointers
I couldn't find a straight answer to my question and need to know it
I couldn't find enough resource about this subject and i need to learn how
Couldn't find this directly on the NHAML project page, so i was wondering if
Couldn't find a function for this. I'm assuming I need to use regex? I'm
Couldn't find any real answers on google.
Couldn't find an answer to this one. I have a WPF ListView control that
couldn't find my solution. hope you can help. I want to have a url
Couldn't find anything about this topic. I have a Windows TCP C++ server application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.