Re: Please help with django tutorial #2

2006-02-18 Thread ak

Sure that's what I used to solve the problem :)


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



Re: Please help with django tutorial #2

2006-02-17 Thread Luke Skibinski Holt

A shortcut to the 'print sql, copy sql, paste sql into db' route is
(for postgresql users anyway) piping it directly in:

python manage.py sqlall | psql dbname

means you won't miss data :)


Luke Skibinski Holt


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



Re: Please help with django tutorial #2

2006-02-17 Thread ak

Ohh thanks guys, my fault !

I've ran
python manage.py sqlall polls
and it has shown me that I missed some sql stuff that inserts records
into django admin tables

Thanks a lot!

p.s. really django rocks. I used to use my own python library to
develop sites that includes MVC stuff and OR-mapping for about one year
but when i found django I was really shocked because Django has almost
everything I planned to develop and it works right now. Excellent.


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



Re: Please help with django tutorial #2

2006-02-17 Thread Max Battcher

ak wrote:
> Thans for your answer Jason but I think you are wrong. As far as I know
> "python manage.py install polls" should create all tables in my DB. It
> was done and I can sucessfully load entities from database, modify them
> and save them back and I see all these tables and records in mysql.
> Even things from tutorial #3 work ok to me and i can create?modify
> templates and show things from DB on the site using django. Only admin
> stuff doesn't work. And only when I open edit screens, when I see list
> items screen everything's just fine.

There are three major DB-related steps to do:

``python manage.py init``
``python manage.py install admin``
``python manage.py install myapp`` for every myapp

The first two you only have to do the first time you initialize the 
database. Init in particular creates several key tables that are used by 
the admin and auth, including the Content Types table that is giving you 
your reported error message.

-- 
--Max Battcher--
http://www.worldmaker.net/
"History bleeds for tomorrow / for us to realize and never more follow 
blind" --Machinae Supremacy, Deus Ex Machinae, Title Track

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



Re: Please help with django tutorial #2

2006-02-17 Thread ak

Thans for your answer Jason but I think you are wrong. As far as I know
"python manage.py install polls" should create all tables in my DB. It
was done and I can sucessfully load entities from database, modify them
and save them back and I see all these tables and records in mysql.
Even things from tutorial #3 work ok to me and i can create?modify
templates and show things from DB on the site using django. Only admin
stuff doesn't work. And only when I open edit screens, when I see list
items screen everything's just fine.


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



Re: Please help with django tutorial #2

2006-02-16 Thread Jason Davies

Sounds like you haven't done `python manage.py install polls`

Regards,
Jason


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



Please help with django tutorial #2

2006-02-16 Thread ak

Hello guys

I have a problem with walking through the second official django
tutorial (http://www.djangoproject.com/documentation/tutorial2/). The
problem is as follows.
I have sucessfully logged in to the admin area, then clicked to the
Polls and see my polls list. But if I click to edit a poll or add a new
poll I see a long traceback message instead of editor. I tried many
different classes even my own but I get always the same.
Traceback says:
ContentTypeDoesNotExist at /admin/polls/polls/1/
ContentType does not exist for {'package__label__exact': 'polls',
'python_module_name__exact': 'polls'}
etc ...

If you carefully read the comments bellow the manual page you'd see
that I was not the only person who experienced the same problem.

Could anyone help me or at least point to the source of such problems ?


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