Re: extending admin interface

2005-09-03 Thread Igor Goryachieff
On Tue, Aug 30, 2005 at 08:13:34PM -0500, Adrian Holovaty wrote: > Regarding the error, you'll need to make sure your __init__.py file > contains "myapp" in its "__all__" variable, assuming "myapp.py" is the > name of your model module. See The issue was resolved after making one change in file d

How to set up a directory for images?

2005-09-03 Thread PythonistL
I have images( that I want to use on my web pages) in a directory C:\Django\Pictures so in main.py ( settings subdirectory ) I changed MEDIA_ROOT = 'C:\Django' MEDIA_URL = '' and in my template index.html I use but it does not work and I do not know what is wrong. Can you please help? Thank y

Re: DB Api, OR queries?

2005-09-03 Thread Adrian Holovaty
On 9/2/05, Milton <[EMAIL PROTECTED]> wrote: > Is it possible to do the following using the DB API or would I be > better off running a manual sql query? from the docs it appears you can > only do AND queries? > > select * from table where col='value' or col='value2' > > It's a simplified exampl

"External" apps

2005-09-03 Thread [EMAIL PROTECTED]
I'm wondering if there is a convention for integrating external apps with Django, or at least for portions of code that will be using the APIs, but aren't directly part of the application. At the moment I have them in a completely separate directly, but I'd like to include them in the same directo

Django at site root

2005-09-03 Thread Darrin Massena
>From what I've read so far in this group what I want probably isn't possible but I'll throw it out there just in case. On a single production Apache server I'd like to host a main Django application, several sub-applications, the Django admin UI, several Trac projects, and a good number of media