Re: Change label/title from an application added to django admin

2012-12-23 Thread donarb
On Sunday, December 23, 2012 6:02:45 PM UTC-8, Ankush Chadda wrote: > > Hi, > Look at the Meta options verbose_name and verbose_name_plural > > Using these you can change the display name in admin. > > Those are for the displaying the model names, not the app name. -- You received this

Re: Trouble Accessing An Image through ImageField

2012-12-23 Thread Ankush
Hi, I think , first of all, you should have tags around the url. . if you are able to get the image if you direct your browser to http://192.0.0.1:8000/images/photo.jpg ? if yes, then the above is the solution . If not then you should set your image files to be served as setatic files. This

Re: Change label/title from an application added to django admin

2012-12-23 Thread ankush . chadda
Hi, Look at the Meta options verbose_name and verbose_name_plural Using these you can change the display name in admin. Cheers, Ankush Chadda Sent from BlackBerry® on Airtel -Original Message- From: Emiliano Dalla Verde Marcozzi <65647...@gmail.com> Sender: django-users@googlegroups.com

RE: Django asset management and dynamically created databases

2012-12-23 Thread Chad Vernon
Yes the single database was my original and preferred design. I will try to push for that design. I think there was concern about reliability and performance of everything in one database but I don't think that will be an issue given our needs. Thanks, Chad From: Mike Dewhirst Sent: 12/23/2012

Re: Django asset management and dynamically created databases

2012-12-23 Thread Mike Dewhirst
On 24/12/2012 8:10am, Chad Vernon wrote: Hi there, I'm designing a database for an animation studio to track assets across multiple shows. We potentially would want each show to have its own database, however we would want functionality to search for assets across all shows. It would *much*

Re: Change label/title from an application added to django admin

2012-12-23 Thread Mike Dewhirst
On 24/12/2012 9:02am, Emiliano Dalla Verde Marcozzi wrote: Hello, I created an app called 'emp' with the command: django-admin.py startapp emp. Then, i edited my models.py, added an admin.py file to register my clases/models in the django admin. Now, when i login into the django admin, i have a

Change label/title from an application added to django admin

2012-12-23 Thread Emiliano Dalla Verde Marcozzi
Hello, I created an app called 'emp' with the command: django-admin.py startapp emp. Then, i edited my models.py, added an admin.py file to register my clases/models in the django admin. Now, when i login into the django admin, i have a list of Applications, and it says 'Emp' in that list. I

Trouble Accessing An Image through ImageField

2012-12-23 Thread That guy
Hi there, I'm trying to create a photo gallery by storing photos in a gallery database and pulling them out when appropriate. However, I ran into the problem of how to publicly expose the pictures in urls. In my template, I return a the url of the photo which turns out to be

Very Odd Query problem

2012-12-23 Thread Gerald Klein
Hi all, I have a custom model mapped to a view, a join between a UserContact model which carries contacts for users and UserContactEmail which is the emails for the contacts. Very simple join. select concat(`t1`.`id`,'-',`t2`.`id`) AS `id`, `t2`.`usercontact_id` AS `usercontact_id`,

Django asset management and dynamically created databases

2012-12-23 Thread Chad Vernon
Hi there, I'm designing a database for an animation studio to track assets across multiple shows. We potentially would want each show to have its own database, however we would want functionality to search for assets across all shows. I am exploring the use of django as the main framework for

Re: django.db.utils.DatabaseError: (1046, 'No database selected')

2012-12-23 Thread Praveenkumar Venkatesan
Thanks mate. This was a great reply. -Praveen On Sunday, December 23, 2012 8:00:51 AM UTC-8, Ramiro Morales wrote: > > On Sun, Dec 23, 2012 at 12:59 PM, Ramiro Morales > > wrote: > > On Sun, Dec 23, 2012 at 6:45 AM, Praveenkumar Venkatesan > > wrote:

Setting urls from project

2012-12-23 Thread Filipe Manuel
I wish that when from accessing localhost:8000/cadastro he showed a form to register, but all the urls I click redirects to the same page. I wonder how pegging the url with the url of the application. I've Identified the error, all urls design guide for single views of the application, but do

Re: django.db.utils.DatabaseError: (1046, 'No database selected')

2012-12-23 Thread Ramiro Morales
On Sun, Dec 23, 2012 at 12:59 PM, Ramiro Morales wrote: > On Sun, Dec 23, 2012 at 6:45 AM, Praveenkumar Venkatesan > wrote: >> Hey All, >> >> I was walking through the tutorial part 1 on polls. When i executed "python >> manage.py sql polls" i got this

Re: django.db.utils.DatabaseError: (1046, 'No database selected')

2012-12-23 Thread Ramiro Morales
On Sun, Dec 23, 2012 at 6:45 AM, Praveenkumar Venkatesan wrote: > Hey All, > > I was walking through the tutorial part 1 on polls. When i executed "python > manage.py sql polls" i got this stack trace > > Traceback (most recent call last): > [...] >

django.db.utils.DatabaseError: (1046, 'No database selected')

2012-12-23 Thread Praveenkumar Venkatesan
Hey All, I was walking through the tutorial part 1 on polls. When i executed "*python manage.py sql polls*" i got this stack trace * * *Traceback (most recent call last):* * File "manage.py", line 10, in * *execute_from_command_line(sys.argv)* * File