i the database is created successfully, and i can sign in as a
super_user.
and in model documentation (http://localhost:8000/admin/doc/models/),
the 'Account' model can be found.
the problem is that, the on Site administration home page ,it is only
2 groups and their models: Auth, Sites. there is no 'myapp' group and
the model('Account') of 'myapp'.

here is my code:
1. myapp/models.py
        from django.db import models

        class Account(models.Model):
                email = models.EmailField()
                password = models.CharField(max_length=32)
                create_date = models.DateTimeField(auto_now=True)

                class Admin(object):
                        pass

                def __str__(self):
                        return self.name

2. modified INSTALLED_APPS to:
                INSTALLED_APPS = (
                'django.contrib.auth',
                'django.contrib.contenttypes',
                'django.contrib.sessions',
                'django.contrib.sites',
                'django.contrib.admindocs',
                'django.contrib.admin',

                'myproj.myapp'
        )

3. urls.py:
        from django.contrib import admin
        admin.autodiscover()

        urlpatterns = patterns('',
                # Example:
                # (r'^putee/', include('putee.foo.urls')),

                # Uncomment the admin/doc line below and add
'django.contrib.admindocs'
                # to INSTALLED_APPS to enable admin documentation:
                (r'^admin/doc/', include('django.contrib.admindocs.urls')),

                # Uncomment the next line to enable the admin:
                (r'^admin/(.*)', admin.site.root),
        )
4. run manage.py syncdb (successfully), manage.py runserver
(successfully)
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to