Re: How to separate data having the same model but belonging to different users?
As I understand it: (And im fairly new to django too) A model corresponds to a single table (not multiple). The question to you is what is different between User1 and User2 that you need different tables? On Fri, Sep 21, 2012 at 1:35 PM, Rohit Banga wrote: > Hi > > I am a django #n00b. I came across the django model documentation and > found it pretty interesting. ( > https://docs.djangoproject.com/en/dev/topics/db/models/). > > Now my usecase requires I have a set of Models and each model has multiple > tables corresponding to it. > For example when user1 registers I can create a table user1_t1, user1_t2, > user1_t3. > When user2 registers I can create a table user2_t1, user2_t2, user2_t3. > > I really like the Model abstraction but can't find a way to create these > multiple tables conveniently without creating new models. I could not find > clear solutions to this on the internet. > I just want clear separation between t1, t2, t3 for the all users. > Depending on the logged in user, I want to use the relevant table. What is > the cleanest way to achieve this with Django? > > If it is not possible to do this with tables I can think about different > databases one for each user with the same set of tables. Is it possible to > do the same with multiple databases? > > Thanks > Rohit Banga > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/tl8qKhJb-_cJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Mayukh Mukherjee http://www.linkedin.com/in/mayukhmmukherjee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Any good books for learning django?
I'd recommend two scoops of django. It's a little more intermediate level but it's a gem. Sent from my iPhone On Feb 7, 2013, at 12:49, frocco wrote: Hello, Most of what I find are dated, 2008,2009. Are these still good for learning django 1.4? Which books do you recommend? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Django payment gateway with subscription management
Stripe if you're in the us (am not sure which other countries they've rolled out to). On Tue, Mar 5, 2013 at 3:34 PM, Jaimin Patel wrote: > Hello, > > We are evaluating different payment gateways for subscription management > for one of the app which requires the subscription based model (monthly, 6 > months, year). > > I checked different packages available here - > https://www.djangopackages.com/grids/g/payment-processing/ > > Though I am confuse which one I should be using, can someone recommend > which one is actively maintained and most commonly used for subscription > based model where users can signup for free and if they want they can > subscribe later on. We don't required to store the credit card details and > it can be taken care by the payment gateway. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Mayukh Mukherjee http://www.linkedin.com/in/mayukhmmukherjee -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to divide my apps? Good practices?
Just some generic advice -- keep each app focused on one individual task,as a rule of thumb you'd want maybe 5 +/- 2 models per app. Better to have multiple apps that each do one thing well than one large app that does everything. Best On Thu, Jun 20, 2013 at 5:01 PM, galgal wrote: > Hi, > I'm starting my new project. It's sport-connected. > The main part of my app will be league, matches, teams and players. There > will be many relations. > > So, how to make apps and models. I plan to make models: > >- Season >- League (FK to Season) >- Team >- Match (FK to League and 2FK to Teams) >- Players (FK to Team) >- and many more to present teams history in each season etc. > > Is it better, to make it all in 1 app, called for example Game, or divide > it into smaller apps? > Thanks for help. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Mayukh Mukherjee http://www.linkedin.com/in/mayukhmmukherjee -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.