Hey Scott, thanks for the reply!

I just figured that out the hard way actually, but I appreciate your
response.

My new directory structure now looks like:

/home/website/djangoprojects/mydjangoproject/
------------------------------------------------------------------- /
manage.py
------------------------------------------------------------------- /
settings.py
------------------------------------------------------------------- /
urls.py

/home/website/djangoapps/mydjangoapp/
---------------------------------------------------------- /models.py
---------------------------------------------------------- /admin.py
---------------------------------------------------------- /urls.py
---------------------------------------------------------- /view.py

My webserver (dreamhost) runs passenger, so I had to update my
passenger_wsgi.py file to include path of my projects (/home/website/
djangoprojects) as well as my apps (/home/website/djangoapps).

The tricky (at first) part came when I needed to fill the DB of my
project w/ tables required by my app(s).  To do this, I had to add the
same paths above to my manage.py file, so that when it was executed
the paths would be in there for the script to find and import the
model information.

Voila, I now have created an app that is independent of it's
surrounding project.  The only thing left is the fact that my app has
templates, which I understand is a no-no when making reusable apps.
I'll start working on that later, as I'm satisfied now with no strict
backwards dependencies.

Thanks again Scott.

I will be writing a blogpost about this shortly on how to create a
reusable django app on a shared webserver such as Dreamhost - in an
attempt to gather disparate information into one, easy to follow and
up to date post.  I will post back with the perma when it's done.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to