I have done this:
Added this to the settings.py:
INSTALLED_APPS = (
django.contrib.admin,
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
)
but when I try to run 'python mamage.py syncdb' I get this:
[dk90394@dk90394 smallappst]$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 4, in ?
import settings # Assumed to be in the same directory.
File "/Data/Projects/SmallAppsT/smallappst/settings.py", line 75,
in ?
INSTALLED_APPS = (
NameError: name 'django' is not defined
Can't it find django ?
I can access django from a python prompt:
>>> import django
>>> django.VERSION
(0, 96, None)
Does some one have a suggestion, to what I can do, to make the admin
stuff work ?
Regards Jørn Borup
jborup schrieb:
it's a very minor error ;)
you forgot to pass it as a string.
try
INSTALLED_APPS = (
'django.contrib.admin',#notice the ' here ;)
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
)
greetz Paul Rauch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iQIVAwUBRs0nYRG67lyyQrltAQLHug//eo5hYB+tB8+jklBEED3jGyv1I6p8XSze
hd+Ew5a76mKMTJpzuti6V/1dtJcZYfmDtu0EMU6508fXxqP+r7AcgbjQ6QLozkuJ
KD60QtLC2R225zgi6VUEVJdyiXJyHkAPT35uLAtZpyG6Hb1au73mPG6MwyBxgABe
KtVzOtxLeIiC0n+YzlLUkMNTFmZWdLBkhR+CgefAXpCnfg2XWY/SZvaIc8Qg0ist
/yE7m8QEE1QuOUkWPXup0t5EhrvEjRmYKywQP1Y21nfZ5ltprBXmSECXCq7SGYj8
nuUeTCJLgi08moaF7FSrMsVKmZ/ehdGOkRgGsmvYtjKxSfef+tKw+8fmZ+ha7+mS
vgS22Fbls1LBKFYEGkbtcqy6ikJ5LM82ZxV3OT4rb5hxDLyIKmXqH2EwYtn+8ASj
BBqcrrZgAcJI4pcYzc4GlxO5uaoj3EFofA5vc/jNFJDy0iY1OTekz9BHdZ5H6ljB
VGil/Q5i5RC1UI+nSyU6xHXDpmLHbuFu72CVKhGsmN+I1a627cnXU4ShXKX49VZ/
lWHHDsmi9Kek+qqKwAva0xOfnsnjoL8MJ/GIAyk5JSUqFUgI53xH2Oz4ggWilGED
j01Z6JJy+YvfnbX4fNGxQlSuFHvNcGgKaORgYphWJ9exfFVEvXHxEG2ADKrjuKLR
CfbkRMzg9sQ=
=R72R
-----END PGP SIGNATURE-----
Thank you.
Jørn Borup
On Aug 23, 8:21 am, Paul Rauch <light...@lightlan.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> jborup schrieb:
>
> > HI Django users,
> > New to python and django. I'm following thewww.djangobook.com, and
> > Regards J?rn Borup
>
> it's a very minor error ;)
> you forgot to pass it as a string.
> try
> INSTALLED_APPS = (
> 'django.contrib.admin',#notice the ' here ;)
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> )
>
> greetz Paul Rauch
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with SUSE -http://enigmail.mozdev.org