Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Collin Grady

On Aug 14, 8:39 am, "Rob Hudson" <[EMAIL PROTECTED]> wrote:
> Is it odd that I don't see an error?  Just the admin page without the
> models I'm looking for?

Nope.


--~--~-~--~~~---~--~~
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: Why isn't my app appearing in the admin?

2007-08-14 Thread Rob Hudson

On 8/14/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Unless that something is forgetting the inner Admin class, I'll wager
> you've bumped into #1796. I *really* need to get myself into gear and
> work on that some more. It's embarassing.
>
> At the moment, there's no known reliable workaround (although some of
> the comments in the ticket provide things that might work). One of the
> last comments is almost certainly the key to the issue; I need to
> implement a fix. Probably time to move that to the top of the stack.

Yes, there is an inner admin class.

1796 looks like it's related to M2M, which I don't have.  I am using
TagField, which another person mentions.  It looks like a really
slippery bug.

Is it odd that I don't see an error?  Just the admin page without the
models I'm looking for?

Thanks,
Rob

--~--~-~--~~~---~--~~
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: Why isn't my app appearing in the admin?

2007-08-14 Thread Rob Hudson

On 8/14/07, Paul Rauch <[EMAIL PROTECTED]> wrote:
> inside the model class, add the class Admin.

I forgot to check that explicitly on the server but only because the
admin was working locally.  That would have been embarrassing though.
:)

Thanks,
Rob

--~--~-~--~~~---~--~~
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: Why isn't my app appearing in the admin?

2007-08-14 Thread Malcolm Tredinnick

On Tue, 2007-08-14 at 00:41 -0700, Rob Hudson wrote:
> OK, this is baffling.  Tonight I've been working locally adding a new
> app to my project.  I got enough of it going and wanted to publish to
> my server.  So I updated via SVN on my server, ran validate to check
> for errors, then ran syncdb, the models got installed, I reloaded
> Apache and logged into the admin and the new app and models aren't
> showing up.

[...]
> (I have a feeling I'm missing something amazingly stupid.)

Unless that something is forgetting the inner Admin class, I'll wager
you've bumped into #1796. I *really* need to get myself into gear and
work on that some more. It's embarassing.

At the moment, there's no known reliable workaround (although some of
the comments in the ticket provide things that might work). One of the
last comments is almost certainly the key to the issue; I need to
implement a fix. Probably time to move that to the top of the stack.

Malcolm

-- 
If Barbie is so popular, why do you have to buy her friends? 
http://www.pointy-stick.com/blog/


--~--~-~--~~~---~--~~
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: Why isn't my app appearing in the admin?

2007-08-14 Thread Paul Rauch

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rob Hudson schrieb:
> OK, this is baffling.  Tonight I've been working locally adding a new
> app to my project.  I got enough of it going and wanted to publish to
> my server.  So I updated via SVN on my server, ran validate to check
> for errors, then ran syncdb, the models got installed, I reloaded
> Apache and logged into the admin and the new app and models aren't
> showing up.
> 
> To troubleshoot, I've done all of the following:
> 
> * Check my settings.py to see that the app is listed there.
> * Reload and restart Apache multiple times.
> * Clear my browser cache.
> * Try a different browser.
> * Check validation again.
> * Check database tables exist by using ./manage.py dbshell (it's
> there)
> * Use ./manage.py shell and import the app from the command line (it
> works)
> * Create a new record in the shell and save it (that worked too)
> * Tested closing the shell, opening it again, and pulling out the
> record I just added (that works)
> * Tried going to where it should be "/admin/appname/modelname/" and
> get a 404.
> 
> But for the life of me I can't figure out why the app isn't appearing
> in the admin.  What's left to check?  What's the process Django goes
> through to determine if something shows up in the admin?
> 
> (I have a feeling I'm missing something amazingly stupid.)
> 
> Thanks,
> Rob
> 
> 
inside the model class, add the class Admin.

class model(models.Modell):
 (...your model...)
 class Admin():
  pass
  #or special adminoptions

greetz Paul Rauch
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iQIVAwUBRsFeTRG67lyyQrltAQLgTA/+PywQ12wklumBCuLNP5OeoEq6z8DhidBJ
lNzvFxx+lUQcBDiA+ubVnULZy7NnaT8u1KoXVUTpkEPboymoXOjDfuh+4C00YOep
iwPMfDF2q5QFNjR15N7kFR5h/klG8Y/jnyXcLIfyou/gS2GH0/edWYcagDXXrpzo
qYb1H4J9nifp4vwLF7v2hHCiz80s2AlyA5ZlfHfW1ngNujVxIWtPvXNP3tTafGqx
hH07C3JVCcr3KYXFjxvUdLQOUx5bBc/ermwEWoFUCWUFPovS8FWh/tRdCRmS1RuM
YdGniQ/FFzMU7VJvcbypsiJXvhPpRjm4fHFxMQdN0NiZM+Nv55+ixvkgyBaKbegi
eEeBcBfOU4C1VC54aSs5MzaCF4XtbrshHpoWILJH/yfqnyRX7koeNqqpkPmNMOyC
nqoB0gJ4y/ip4sOIoruStQ44kxozJHHXAaNpmmPeJenMV8HO5pjq41qUjsZdDg/V
uQQjzvO+RJzrGEPqCEYimcJEf6li8+MD3v2jN9eCBggyKIQWuAHlxl3z6EcxtBXE
qgJthg8jxqMAKkFaEbgboruifAaAL1NGJU9wmQZbokdixv18XAaU/ml3iKObdsJw
tmhaj8M5zz8pcMHEiukS9l64dIjxuAV230/mYkk8ySGfX7Pbf8dg85dWGygrRCKS
XU/Iek5aouI=
=uRv5
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Why isn't my app appearing in the admin?

2007-08-14 Thread Rob Hudson

OK, this is baffling.  Tonight I've been working locally adding a new
app to my project.  I got enough of it going and wanted to publish to
my server.  So I updated via SVN on my server, ran validate to check
for errors, then ran syncdb, the models got installed, I reloaded
Apache and logged into the admin and the new app and models aren't
showing up.

To troubleshoot, I've done all of the following:

* Check my settings.py to see that the app is listed there.
* Reload and restart Apache multiple times.
* Clear my browser cache.
* Try a different browser.
* Check validation again.
* Check database tables exist by using ./manage.py dbshell (it's
there)
* Use ./manage.py shell and import the app from the command line (it
works)
* Create a new record in the shell and save it (that worked too)
* Tested closing the shell, opening it again, and pulling out the
record I just added (that works)
* Tried going to where it should be "/admin/appname/modelname/" and
get a 404.

But for the life of me I can't figure out why the app isn't appearing
in the admin.  What's left to check?  What's the process Django goes
through to determine if something shows up in the admin?

(I have a feeling I'm missing something amazingly stupid.)

Thanks,
Rob


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---