Basic Apps Installation Documentation

180 views
Skip to first unread message

deniskabistan

unread,
Nov 19, 2008, 7:49:10 AM11/19/08
to Django Basic Apps
I'm new to django but is there any documentation out there that really
helps in installing django-basic-apps. I'm somewhat stuck at ./
manage.py syncdb after downloading django-taggging and django-basic-
apps.

I've filled out the db requirements and INSTALLED_APPS as well in
settings.py but after running a "syncdb" I get the following error
"Error: No module named tagging". Yes I've included the directory into
my PYTHONPATH, but what else can be causing this ?

By the way guys I'm on Web Faction so setup is a tad bit different
than doing it yourself on your server:

<Location "/">
PythonHandler django.core.handlers.modpython
PythonPath "['/home/usr/webapps/blog','/home/usr/webapps/blog/
myproject/apps/basic/','/home/usr/webapps/blog/myproject/apps/tagging/
tagging/', '/home/usr/webapps/blog/lib/python2.5'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
SetHandler python-program
</Location>

Any ideas as to what's going on ?

goblue0311

unread,
Nov 19, 2008, 9:39:17 AM11/19/08
to Django Basic Apps
There doesn't appear to be a set of docs for the BasicApps, but the
Django tutorial can clarify a lot of things, including the steps you
need to take to get an app up and running. This is where I started:

http://docs.djangoproject.com/en/dev/intro/tutorial01/

Is your tagging module located inside a 'basic' folder, or just
straight 'tagging'? What does your INSTALLED_APPS field look like?

deniskabistan

unread,
Nov 19, 2008, 12:57:13 PM11/19/08
to Django Basic Apps
tagging module is located as follows:

/webapps/blog/myproject/apps/
-basic
-tagging

I've separated checkedout apps.


My INSTALLED_APPS is as follows:

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'tagging',
'basic.blog',

)

And my httpd.conf (mind you I'm using webfaction as my host.)

<Location "/">
PythonHandler django.core.handlers.modpython
PythonPath "['/home/usr/webapps/blog','/home/usr/webapps/blog/
myproject/apps/basic/','/home/usr/webapps/blog/myproject/apps/tagging/
tagging/', '/home/usr/webapps/blog/lib/python2.5'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
SetHandler python-program
</Location>

Any ideas ?

thanks !

goblue0311

unread,
Nov 19, 2008, 2:23:08 PM11/19/08
to Django Basic Apps
Your PythonPath may need to be modified to use 'apps/tagging/' instead
of 'apps/tagging/tagging/'

Alternative, you can search your application code for 'tagging' and
verify that none of your files or tempaltes are trying to include it
using 'django.tagging' or some other strange format.

-dan

deniskabistan

unread,
Nov 21, 2008, 1:47:56 AM11/21/08
to Django Basic Apps
So I managed to get the apps installed after getting dateutil added to
the PYTHONPATH. But somehow whenever I still do a syncdb

i get this error: Error: No module named basic

My settings.py are as follows:

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'tagging',
'basic.*',
)

and my httpd.conf are as follows:

<Location "/">
PythonHandler django.core.handlers.modpython
PythonPath "['/home/usr/webapps/blog','/home/usr/webapps/blog/
myproject/apps','/home/usr/webapps/blog/dateutil/', '/home/usr/webapps/
blog/lib/python2.5'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On
SetHandler python-program
</Location>

Any ideas why syncdb is not working. I know it's because I'm missing
basic but it's actually referenced in my pythonpath (as /home/usr/
webapps/blog/myproject/apps).
> > > > manage.pysyncdbafter downloading django-taggging and django-basic-

stjohn goldfinger

unread,
Nov 21, 2008, 3:39:50 AM11/21/08
to django-b...@googlegroups.com
Hi Denis,
I was in the same position as you a couple of months ago when I first
started to learn python and django. The problem is not with basic-apps
but with your django python setup and your basic knowledge of this. The
questions you are asking can be answered by going through the django
tutorials contained within the online django documentation. It will
really be worth your time to go through this and then come back to
setting up you first app. You will find you can answer all your own
questions then.

The error you are getting is because you are not referencing the 'basic'
module correctly from within your settings.py and thus will not be able
to do a 'syncdb'. Install ipython and then open a shell from within your
project:

python ./manage.py shell

Use this shell to discover the path to your various apps interactively
and then modify settings.py accordingly.

I hope this advice helped!

best regards,
John

goblue0311

unread,
Nov 24, 2008, 1:03:25 PM11/24/08
to Django Basic Apps
do you have a __init__.py file located in /webapps/blog/myproject/apps/
basic ?

Without this file, Python can't recognize the folder as a module, and
won't be able to recognize it in your INSTALLED_APPS.

-dan
Reply all
Reply to author
Forward
0 new messages