I'm new to both Python and Django. I've been trying to run the
commands in the same terminal window where I ran the 'python manage.py
runserver'. When I run it in a separate window, it all works as
expected. The tables are created.
Sorry for taking up your time.
Until next time,
/Angelika
On Nov 2, 1:12 pm, Flavia Missi <flaviami...@gmail.com> wrote:
> You do not need to run syncdb before creating your first app, syncdb search
> for the apps in INSTALLED_APPS and sync their models with the database, so
> you can run it anytime. Note that if you just change an existing model
> syncdb won't sync anything, you'll need migrations for that.
>
> []'s
>
>
>
>
>
>
>
>
>
> On Wed, Nov 2, 2011 at 9:59 AM, angelika <angelika.ols...@gmail.com> wrote:
> > I'm following the tutorial on this page:
> >https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> > In it, the 'python manage.py syncdb' command is supposed to be run to
> > create tables for the apps in the INSTALLED_APPS setting, right? And
> > this bit seems to come before you start creating an app. Or have I
> > misunderstood it?
>
> > /Angelika
>
> > On Nov 2, 12:46 pm, kenneth gonsalves <law...@thenilgiris.com> wrote:
> > > On Wed, 2011-11-02 at 04:37 -0700, angelika wrote:
> > > > I'm new to both Python and Django. I'm doing the tutorial and I named
> > > > the site mysite, to keep it simple. Does that mean mysite is the name
> > > > of the app? And the command should be:
>
> > > you must have created an app under mysite - probably named 'polls' under
> > > which you have your models.py and views.py etc
>
> > > > from mysite import *
>
> > > go to the mysite directory and type
> > > python manage.py shell
>
> > > the python shell will appear. Then type:
>
> > > from polls import *
>
> > > (this assumes that you have an app named polls, and that you have
> > > populated your models.py)
>
> > > --
> > > regards
> > > Kenneth Gonsalves
>
> > --
> > 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.
>
> --
> Flávia Missi
> @flaviamissi <http://twitter.com/flaviamissi>
> flaviamissi.com.brhttps://github.com/flaviamissi
--
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.
No comments:
Post a Comment