Re: Can't Syncdb

23 views
Skip to first unread message

Kelly Nicholes

unread,
Sep 8, 2012, 9:27:24 AM9/8/12
to django...@googlegroups.com
Did you add the app name in settings.py under the INSTALLED_APPS list?

On Friday, September 7, 2012 10:23:31 PM UTC-6, Kollin wrote:
I create a project. I create app by name "app" in the project. The app that :
app
    __init__.py
    models
        __init__.py
        a.py
        b.py
but I can't syncdb the app. I use django 1.4.
What error?
THX

Steven Elliott

unread,
Sep 8, 2012, 10:09:49 AM9/8/12
to django...@googlegroups.com

What's the error message you get specifically

On Sep 8, 2012 7:31 AM, "Kollin" <koll...@gmail.com> wrote:
I create a project. I create app by name "app" in the project. The app that :
app
    __init__.py
    models
        __init__.py
        a.py
        b.py
but I can't syncdb the app. I use django 1.4.
What error?
THX

--
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/-/o6fxby4Smw8J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Stephen Anto

unread,
Sep 9, 2012, 4:14:59 AM9/9/12
to django...@googlegroups.com
Hi have you added your app in django settings

Eg. settings.py in project root

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.admindocs',
    'your.app',
)

and your project app structure should be 

app
    __init__.py
    models.py
    a.py
    b.py

Pls visit http://www.f2finterview.com/web/Django/
--
Thanks & Regards
Stephen S



Blog:      blog.f2finterview.com

Reply all
Reply to author
Forward
0 new messages