views:

246

answers:

1

I'm currently moving from my development server to an Apache web production server.

I've tried doing the following just by copying it over and I can login to the admin panel but it doesn't show up.

My admin.py in my app looks like this:

    import models
    from django.contrib import admin

    admin.site.register(models.Organization)

And here is my models.py

from django.db import models

class Organization(models.Model):
    name = models.CharField(max_length=100)
    website = models.URLField()
    azon_code = models.CharField(max_length=50)
    gooe_code = models.CharField(max_length=50)
    cj_code = models.CharField(max_length=50)

I've resyned the database and restarted apache as well thinking that might do something.

+1  A: 

Aren't you supposed to import like:

from mysite.myapp.models import Organization
admin.site.register(Organization)
Andrei Serdeliuc
I tried that and it still didn't work for me. Let me try that again!
NoahClark
I just switched over to your model and still no go. I think your model is a better approuch anyway. It looks a lot cleaner and it is how I've seen it on other sites. Thanks for the attempt though!
NoahClark
as @lemonad suggested, you did add it to your settings.py?
Andrei Serdeliuc
Lemonad is a pimp! That fixed it.
NoahClark