Hi, guys: I had followed the part 1 of Django Tutorial, and when I went to Part 2, I got this error: "DoesNotExist at /admin/", just like this one : https://groups.google.com/forum/?fromgroups=#!topic/django-users/o2Fp... The reason is that I should add in the table "django_site" of my database : domain and name, I did it : insert into django_site (domain, name) values ("ncegcolnx270", "mysite"); And it works. But this point, the Tutorial 1 doesn't say...... How can I perhaps help update the Tutorial 1 of Django? Thanks
> The reason is that I should add in the table "django_site" of
my database : domain and name, I did it : insert into django_site (domain,
name) values ("ncegcolnx270", "mysite"); And it works. But this point,
the Tutorial 1 doesn't say...... How can I perhaps help update the Tutorial
1 of Django?
Hi there,
this table should have been automatically created once you ran the
"manage.py syncdb" command. It is part of the 'django.contrib.sites'
application which is enabled by default in your settings.py.
Maybe you accidentally commented it out of your settings.py?
for admin access you also need to uncomment the lines in the installed apps
for Admin.
I agree with Jirka, it should be created by running syncdb. I have been
playing around with django for sometime now and the default tutorials work
like a charm.
V.
On Wed, Nov 14, 2012 at 3:24 AM, Jirka Vejrazka <jirka.vejra...@gmail.com>wrote:
> > The reason is that I should add in the table "django_site" of
> my database : domain and name, I did it : insert into django_site (domain,
> name) values ("ncegcolnx270", "mysite"); And it works. But this point,
> the Tutorial 1 doesn't say...... How can I perhaps help update the Tutorial
> 1 of Django?
> Hi there,
> this table should have been automatically created once you ran the
> "manage.py syncdb" command. It is part of the 'django.contrib.sites'
> application which is enabled by default in your settings.py.
> Maybe you accidentally commented it out of your settings.py?
> HTH
> Jirka
> --
> 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.
-- Simplicity is the ultimate sophistication. - Leonardo da Vinci
Life is really simple, but we insist on making it complicated. - Confucius
> > The reason is that I should add in the table "django_site" of > my database : domain and name, I did it : insert into django_site (domain, > name) values ("ncegcolnx270", "mysite"); And it works. But this point, > the Tutorial 1 doesn't say...... How can I perhaps help update the Tutorial > 1 of Django?
> Hi there,
> this table should have been automatically created once you ran the > "manage.py syncdb" command. It is part of the 'django.contrib.sites' > application which is enabled by default in your settings.py.
> Maybe you accidentally commented it out of your settings.py?
> But I had already run "python manage.py syncdb" before, bizarre.
> Thanks for your responses.
> Le mardi 13 novembre 2012 22:55:14 UTC+1, JirkaV a écrit :
>> > The reason is that I should add in the table "django_site" of
>> my database : domain and name, I did it : insert into django_site (domain,
>> name) values ("ncegcolnx270", "mysite"); And it works. But this point,
>> the Tutorial 1 doesn't say...... How can I perhaps help update the
>> Tutorial
>> 1 of Django?
>> Hi there,
>> this table should have been automatically created once you ran the
>> "manage.py syncdb" command. It is part of the 'django.contrib.sites'
>> application which is enabled by default in your settings.py.
>> Maybe you accidentally commented it out of your settings.py?
>> HTH
>> Jirka
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/lvP58o0ZvhQJ.
> 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.
> Why not manually drop the database for your project and syncdb again. > Also make sure you have the admin app included in your installed apps > settings
> On 11/14/12, XIE Enming <enm...@gmail.com <javascript:>> wrote: > > But I had already run "python manage.py syncdb" before, bizarre. > > Thanks for your responses.
> > Le mardi 13 novembre 2012 22:55:14 UTC+1, JirkaV a écrit :
> >> > The reason is that I should add in the table "django_site" > of
> >> my database : domain and name, I did it : insert into django_site > (domain,
> >> name) values ("ncegcolnx270", "mysite"); And it works. But this > point,
> >> the Tutorial 1 doesn't say...... How can I perhaps help update the > >> Tutorial > >> 1 of Django?
> >> Hi there,
> >> this table should have been automatically created once you ran the > >> "manage.py syncdb" command. It is part of the 'django.contrib.sites' > >> application which is enabled by default in your settings.py.
> >> Maybe you accidentally commented it out of your settings.py?
> >> HTH
> >> Jirka
> > -- > > You received this message because you are subscribed to the Google > Groups > > "Django users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/django-users/-/lvP58o0ZvhQJ. > > To post to this group, send email to django...@googlegroups.com<javascript:>.
> > To unsubscribe from this group, send email to > > django-users...@googlegroups.com <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en.