Hello everyone. I've only recently started developing app with Django and in Python as well. I have a fair experience in developing web apps on frameworks in PHP and I'm really trying to make a commitment on doing my first Django app properly (all the good methodologies and practices included)
The first bit I can't figure out are Django applications. I know that they are, in essence, Python modules, but it doesn't say what does Django do once it encounters an application. Does it add it to the sys.path? Does it automatically load certain files, or does that have to be explicitly specified somewhere? Another question I have is with custom settings. I'd like to have each application have it's own settings file. How is this then accessed by the application? Do I have to import /proj/myapp/settings.py in my main /proj/settings.py file? I figure that this would make the settings globally available, so /proj/myapp2 can access the settings from /proj/myapp1, but what if I want to have some application specific settings that I do not wish to be accessed by other applications too? Also I was wondering if there was a Pythonic analogue for the alternative shorthand conditional syntax '(cond) ? true : false'. I wanted to do something like: DEBUG, DATABASE_USER, DATABASE_PORT = if gethostname='development- server' : True, 'dev-user', '1047' else: None, 'prod-user', '3306' Thanks a lot, I appreciate any sort of help :)! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

