Re: Lost in the Admin section...

2006-08-23 Thread Sean Schertell

On Aug 23, 2006, at 5:32 PM, Reinhard Knobelspies wrote:

Thanks for all your help so far everyone. So I'm still in search of  
answers to these questions:

(2) The 24 hour clock widget doesn't work for me. This is a nightclub
so shows are almost always listed as 7:00pm or 12:30am etc. (am/pm).
Is there a way for me collect this information more naturally in the
admin form and then convert it for mysql storage? (note: it needs to
be stored as a time object so it can be sorted chronologically)

(3) I'm using a pull-down menu for the event status -- using the
"choices=( ('1','blah'), ('2', 'blahblah'), )" format. I've also got
a sensible default selection.  But the menu still displays this
option: "". How can I remove this option from the list?

(5) Nine times out of ten, the user is going to want to edit or add
events immediately after logging into the admin section. Can I set
the events list page as the index?





--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Lost in the Admin section...

2006-08-23 Thread Reinhard Knobelspies

Regarding (7) and (8) you might want to have a look at
http://www.vonautomatisch.at/django/filebrowser/


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Lost in the Admin section...

2006-08-22 Thread Burhan

Finally, something I do know about because I struggled with the same
problem!

> (1) My model includes an Event class. Events should be displayed
> using the date as their name. So the name of the event might be
> "August 25th, 2006". But if I add a def(self): __str__(self.date) to
> the class, I get an error "__str__ returned non-string (type
> datetime.date)" -- how can I make it a pleasantly formatted date string?

def __str__(self):
  return self.date.strftime("%b %d %Y")

You can see the reference for the time module (
http://docs.python.org/lib/module-time.html ) to get all the formatting
codes for stftime().

I'll try to see if I figure out the rest, as I have run into similar
problems (especially wrt the 24 hour clock thing).


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Lost in the Admin section...

2006-08-22 Thread Bryan Murdock

On 8/22/06, Sean Schertell <[EMAIL PROTECTED]> wrote:
> (4) I don't want to use Users/Groups/Sites at all. What's the best
> way to make it completely go away?

I think if you remove them from your INSTALLED_APPS setting they will
probably go away.  I haven't tried it yet, you might need to
./manage.py sqlcear  for each of them too.

> (6) I meticulously followed instructions for overwriting the admin/
> base_site.html template. It worked before when I went through the
> tutorial but now I can't get it to work for some mysterious reason.
> I've checked all the obvious stuff and don't know where to go from
> here. Any tips for troubleshooting this?

I had this problem once, and if I remember right it's because I
changed something in settings.py, TEMPLATE_DIRS or TEMPLATE_LOADERS
maybe.  Anyway, check those.

> Sorry to overwhelm the list with noobie questions -- I promise to
> help out other noobs once I get a handle on Django :-)

Bryan, another noob trying to pay it forward.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Lost in the Admin section...

2006-08-22 Thread Sean Schertell

Hi Guys,

A few things I'm trying to figure out -- any pointers would be great!

(1) My model includes an Event class. Events should be displayed  
using the date as their name. So the name of the event might be  
"August 25th, 2006". But if I add a def(self): __str__(self.date) to  
the class, I get an error "__str__ returned non-string (type  
datetime.date)" -- how can I make it a pleasantly formatted date string?

(2) The 24 hour clock widget doesn't work for me. This is a nightclub  
so shows are almost always listed as 7:00pm or 12:30am etc. (am/pm).  
Is there a way for me collect this information more naturally in the  
admin form and then convert it for mysql storage? (note: it needs to  
be stored as a time object so it can be sorted chronologically)

(3) I'm using a pull-down menu for the event status -- using the  
"choices=( ('1','blah'), ('2', 'blahblah'), )" format. I've also got  
a sensible default selection.  But the menu still displays this  
option: "". How can I remove this option from the list?

(4) I don't want to use Users/Groups/Sites at all. What's the best  
way to make it completely go away?

(5) Nine times out of ten, the user is going to want to edit or add  
events immediately after logging into the admin section. Can I set  
the events list page as the index?

(6) I meticulously followed instructions for overwriting the admin/ 
base_site.html template. It worked before when I went through the  
tutorial but now I can't get it to work for some mysterious reason.  
I've checked all the obvious stuff and don't know where to go from  
here. Any tips for troubleshooting this?

(7) For each band that gets displayed, there's an associated photo.  
The admin section displays the filepath -- any way to get it to  
display the actual photo instead?

(8) Any way to make the file upload a little nicer? Like to give you  
some indication that something is happening (ideally a progress bar)?

Sorry to overwhelm the list with noobie questions -- I promise to  
help out other noobs once I get a handle on Django :-)

Sean


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---