Re: how to configure database?
python manage.py sql appname just prints the create table sql
statements, but does not sync them with you DB.
user python manage.py syncdb
Michael.
On Nov 23, 2:47 pm, Reeti Pal <coldreetit...@gmail.com> wrote:
> i saw the tables getting created in the terminal by using python manage.py
> sql appname
> but when on entering the urlhttp://127.0.0.1:8000/admin/
> m getting dis error on the admin page
> AttributeError at /admin/
>
> 'str' object has no attribute '_meta'
>
> Request Method: GET Request URL:http://127.0.0.1:8000/admin/ Django
> Version: 1.3 pre-alpha SVN-14317 Exception Type: AttributeError Exception
> Value:
>
> 'str' object has no attribute '_meta'
>
> Exception Location:
> /usr/lib/python2.6/dist-packages/django/contrib/admin/validation.py
> in validate, line 21
> i have registered both the apps on admin.py
> i m not able to understand the error
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home