Re: How to design a new website? (about apps)
If the extra user information will be needed by other apps (forum and poll, etc) then it should be a separate app such that other apps can depend on it (I do not know if there is a formal way in Django to specify such a dependency) The image upload form and browser can be one app, and the forum can (as you mentioned) be a separate app as well. I am somewhat new to Django as well, so these suggestions are from my limited knowledge of Django design. -- Thanks & Regards Parag Shah http://blog.adaptivesoftware.biz On Wed, Jul 22, 2009 at 3:49 AM, Léon Dignònwrote: > > Ok, I have finished the tutorials and learned a lot about Django. I > created a polls application and tuned the admin site, etc. > > Now I want to continue in a bigger application. After some successful > coding I ran into a big problem not covered by any piece of > documentation out there: > > 1. Do I need apps and > 2. when to create them? > > > I plan to create a site where users can basically upload specific > images, rate images of other users and -if they like - to download > them. Any user should have a profile with additional information. > Images are categorized and users can browse them and filter them. > Maybe in future other functions like a forum or stuff will follow. > > Well, the forum is, just like the poll, an application, because it is > not a basic function but a separate and autonomous function. But the > additional user information and the upload form and the image browser > are basic functions which interact with each other little more than > poll and forum. > > I am highly confused … > > These questions I would love to see answered: > - Do I create an app for the additional user information, or do I > create a model.py in the site root because it's a main functionality? > - Do I create an app for the image upload and browser, or do I create > a model.py in the site root because it's a main functionality? > --~--~-~--~~~---~--~~ > --~--~-~--~~~---~--~~ 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: How to design a new website? (about apps)
I found it, it's really really great!! http://www.youtube.com/watch?v=A-S0tqpPga4 On Jul 22, 12:30 am, Javier Guerrawrote: > On Tue, Jul 21, 2009 at 10:19 PM, Léon Dignòn wrote: > > These questions I would love to see answered: > > - Do I create an app for the additional user information, or do I > > create a model.py in the site root because it's a main functionality? > > - Do I create an app for the image upload and browser, or do I create > > a model.py in the site root because it's a main functionality? > > if in doubt, do a separate app. each app should handle one specific > job. if it doesn't go in the same sentence, it's a different app. > > check the djangoCon videos on youtube, there's a lot of insights on > this (don't remember who gave that talk, and i can't access youtube > from work) > > -- > Javier --~--~-~--~~~---~--~~ 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: How to design a new website? (about apps)
On Tue, Jul 21, 2009 at 10:19 PM, Léon Dignònwrote: > These questions I would love to see answered: > - Do I create an app for the additional user information, or do I > create a model.py in the site root because it's a main functionality? > - Do I create an app for the image upload and browser, or do I create > a model.py in the site root because it's a main functionality? if in doubt, do a separate app. each app should handle one specific job. if it doesn't go in the same sentence, it's a different app. check the djangoCon videos on youtube, there's a lot of insights on this (don't remember who gave that talk, and i can't access youtube from work) -- Javier --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to design a new website? (about apps)
Ok, I have finished the tutorials and learned a lot about Django. I created a polls application and tuned the admin site, etc. Now I want to continue in a bigger application. After some successful coding I ran into a big problem not covered by any piece of documentation out there: 1. Do I need apps and 2. when to create them? I plan to create a site where users can basically upload specific images, rate images of other users and -if they like - to download them. Any user should have a profile with additional information. Images are categorized and users can browse them and filter them. Maybe in future other functions like a forum or stuff will follow. Well, the forum is, just like the poll, an application, because it is not a basic function but a separate and autonomous function. But the additional user information and the upload form and the image browser are basic functions which interact with each other little more than poll and forum. I am highly confused … These questions I would love to see answered: - Do I create an app for the additional user information, or do I create a model.py in the site root because it's a main functionality? - Do I create an app for the image upload and browser, or do I create a model.py in the site root because it's a main functionality? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---