Re: Make changes to model...

2008-07-03 Thread Malcolm Tredinnick


On Thu, 2008-07-03 at 17:09 +0200, TiNo wrote:
> The Meta class is to change the Model name, but Chris wants to change
> the app name, not?
> I don't think you can do that.

You're right. I misread the mail.

Changing the app name in the admin requires editing the template.

Malcolm

> 


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Make changes to model...

2008-07-03 Thread TiNo
The Meta class is to change the Model name, but Chris wants to change the
app name, not?I don't think you can do that.

On Thu, Jul 3, 2008 at 2:53 AM, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:

>
>
> On Wed, 2008-07-02 at 11:49 -0700, [EMAIL PROTECTED] wrote:
> > Thanks guys. I know how to do it via the admin, wasn't sure if I was
> > "missing" something within Django to handle it :)
> >
> > Kind of off topic, but say myapp is named myapp, then in the heading
> > the admin will be displayed Myapp with the model items below it. Other
> > than customizing the admin template is there a way to change that?
>
> Yes. Read about the Meta inner-class in the model-api documentation.
>
> Malcolm
>
>
>
> >
>

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Make changes to model...

2008-07-02 Thread Malcolm Tredinnick


On Wed, 2008-07-02 at 11:49 -0700, [EMAIL PROTECTED] wrote:
> Thanks guys. I know how to do it via the admin, wasn't sure if I was
> "missing" something within Django to handle it :)
> 
> Kind of off topic, but say myapp is named myapp, then in the heading
> the admin will be displayed Myapp with the model items below it. Other
> than customizing the admin template is there a way to change that?

Yes. Read about the Meta inner-class in the model-api documentation.

Malcolm



--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Make changes to model...

2008-07-02 Thread mccomas . chris

Thanks guys. I know how to do it via the admin, wasn't sure if I was
"missing" something within Django to handle it :)

Kind of off topic, but say myapp is named myapp, then in the heading
the admin will be displayed Myapp with the model items below it. Other
than customizing the admin template is there a way to change that?


On Jul 2, 10:27 am, TiNo <[EMAIL PROTECTED]> wrote:
> You can use the output of "python manage.py sql myapp" to see what the sql
> ought to be and compare it with the curent state.
>
> On 7/2/08, Oscar Carlsson <[EMAIL PROTECTED]> wrote:
>
>
>
> > Unless you use django-evolution (
> >http://code.google.com/p/django-evolution/, which I don't know much
> > about) you have to make these changes yourself, but usually it isn't that
> > hard.
>
> > There is information on how to make these changes in the django book,
> > chapter 5:
> >http://djangobook.com/en/1.0/chapter05/("Making Changes to a Database
> > Schema")
>
> > Oscar
>
> > On Wed, Jul 2, 2008 at 2:49 PM, <[EMAIL PROTECTED]> wrote:
>
> >> Hello all,
>
> >> I'm using MySQL with Django, I setup my models and installed
> >> everything, got into the admin panel and realized I left a field out.
> >> I went back into my models file, added it, and it gives me an error
> >> because while I guess the code realized it's there, that field wasn't
> >> created in MySQL. Is there a way to do this, other than going in
> >> through phpMyAdmin to do it?
>
> >> Thnx,
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Make changes to model...

2008-07-02 Thread TiNo
You can use the output of "python manage.py sql myapp" to see what the sql
ought to be and compare it with the curent state.

On 7/2/08, Oscar Carlsson <[EMAIL PROTECTED]> wrote:
>
> Unless you use django-evolution (
> http://code.google.com/p/django-evolution/ , which I don't know much
> about) you have to make these changes yourself, but usually it isn't that
> hard.
>
> There is information on how to make these changes in the django book,
> chapter 5:
> http://djangobook.com/en/1.0/chapter05/ ("Making Changes to a Database
> Schema")
>
> Oscar
>
> On Wed, Jul 2, 2008 at 2:49 PM, <[EMAIL PROTECTED]> wrote:
>
>>
>> Hello all,
>>
>> I'm using MySQL with Django, I setup my models and installed
>> everything, got into the admin panel and realized I left a field out.
>> I went back into my models file, added it, and it gives me an error
>> because while I guess the code realized it's there, that field wasn't
>> created in MySQL. Is there a way to do this, other than going in
>> through phpMyAdmin to do it?
>>
>> Thnx,
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Make changes to model...

2008-07-02 Thread Oscar Carlsson
Unless you use django-evolution
(http://code.google.com/p/django-evolution/, which I don't know much
about) you have to make these changes yourself,
but usually it isn't that hard.

There is information on how to make these changes in the django book,
chapter 5:
http://djangobook.com/en/1.0/chapter05/ ("Making Changes to a Database
Schema")

Oscar

On Wed, Jul 2, 2008 at 2:49 PM, <[EMAIL PROTECTED]> wrote:

>
> Hello all,
>
> I'm using MySQL with Django, I setup my models and installed
> everything, got into the admin panel and realized I left a field out.
> I went back into my models file, added it, and it gives me an error
> because while I guess the code realized it's there, that field wasn't
> created in MySQL. Is there a way to do this, other than going in
> through phpMyAdmin to do it?
>
> Thnx,
> >
>

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Make changes to model...

2008-07-02 Thread mccomas . chris

Hello all,

I'm using MySQL with Django, I setup my models and installed
everything, got into the admin panel and realized I left a field out.
I went back into my models file, added it, and it gives me an error
because while I guess the code realized it's there, that field wasn't
created in MySQL. Is there a way to do this, other than going in
through phpMyAdmin to do it?

Thnx,
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---