Project Organization.

2021-12-19 Thread J A
I have an idea for an application where users submit json files that represent different data that needs to be parsed and put in a DB. I believe there may be many many different types of this input data over time so I had this idea that I would break down the different models by applications.

Re: Project Organization

2009-08-10 Thread Malcolm Tredinnick
On Mon, 2009-08-10 at 20:51 -0700, MattR wrote: > Are there any best practices documents to organizing large Django > projects? > > Should the view code be in a file called views.py? It seems like this > file could get rather large and hard to manage, is there some > suggested way to break it up

Re: Project Organization

2009-08-10 Thread Torsten Bronger
Hallöchen! MattR writes: > [...] > > Should the view code be in a file called views.py? It seems like > this file could get rather large and hard to manage, is there some > suggested way to break it up? I have a subdir "views", with roughly one module per model, each typically containing "show

Project Organization

2009-08-10 Thread MattR
Are there any best practices documents to organizing large Django projects? Should the view code be in a file called views.py? It seems like this file could get rather large and hard to manage, is there some suggested way to break it up? Should the files with views even be called views.py, or s

Re: Project organization and decoupling

2007-01-18 Thread Michel Thadeu Sabchuk
Hi Guillermo! But what would happen in this case if two sites use very different templates for the same app? My templates used to have the same skeleton, the diference could be the base_site.tmpl, I can replace the base_site.tmpl on the project/templates/appname, I can use stylesheets to defi

Re: Project organization and decoupling

2007-01-17 Thread Guillermo Fernandez Castellanos
I place my templates inside the "app_name/templates/app_name" directory. It seems template search path look for the template on this directory first. So, to decouple the app, templates should be inside it I think. But what would happen in this case if two sites use very different templates for

Re: Project organization and decoupling

2007-01-17 Thread Michel Thadeu Sabchuk
Hi, Yeah. And conversely, it's weird that in other places django smooshes together what ought to be separate namespaces. For example, a template can refer to the templatetags of any app without qualification. Is there even a way to add qualification to disambiguate? If I have two apps with

Re: Project organization and decoupling

2007-01-17 Thread David Abrahams
"Doug Van Horn" <[EMAIL PROTECTED]> writes: You would put parent_folder and parent_folder/spam_website into your python path. So when you need a model from the foo application, you do: from foo.models import Eggs and if you need something from the settings module in the project, you do:

Re: Project organization and decoupling

2007-01-17 Thread David Abrahams
cumentation I can find doesn't really give any clues about best practices for project organization. One problem is that the name of the Django project folder (and thus root module) always seems to creep into the code in the app-specific directories. Any insight you can offer would be apprec

Re: Project organization and decoupling

2007-01-16 Thread Doug Van Horn
David Abrahams wrote: ...One problem is that the name of the Django project folder (and thus root module) always seems to creep into the code in the app-specific directories. IANADE (django-expert), but from what I've gleaned you can put the path of each individual application into the python

Re: Project organization and decoupling

2007-01-16 Thread Stefan Foulis
any clues about best practices for project organization. One problem is that the name of the Django project folder (and thus root module) always seems to creep into the code in the app-specific directories. Any insight you can offer would be appreciated. in most cases (all for me so far) you ca

Project organization and decoupling

2007-01-16 Thread David Abrahams
For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the documentation I can find doesn't really give any clues about best practices for project organiza

Project Organization

2006-05-05 Thread Miles
Hi - I'm relatively new to Django, and have a question about site & project organization. I have several sites that I'd like to develop using Django. Some of these sites are "top-level" (site1.domain.com, site2.domain.com) and some that fall under an existing hostname (