login community faq

Hi all,

I'm working on a project where I want to duplicate a Django-driven app so I can play with the design without screwing up the main site (I'm not the programmer, and I'm a bit thick).

What I've tried to do is this:

  1. Create a new app with the Django preset,

  2. Copy the original app into the new app folders,

  3. Create a new database and copy the old database info into it,

  4. Manually change settings.py, manage.py, etc. in the new app to update the site URLs and DB pointers to the test site (test.foo.com, foo_tst.sql, etc.)

I've got the domain registered fine, everything seems to be pointing to the right places in the Webfaction control panel, but I keep getting this message:

1
2
3
4
5
6
7
It worked!
Congratulations on your first Django-powered page.

Of course, you haven't actually done any work yet. Here's what to do next:
If you plan to use a database, edit the DATABASES setting in myproject/settings.py.
Start your first app by running python myproject/manage.py startapp [appname].
You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!

It's true that DEBUG = True in the Django settings file, but DEBUG = True is also active in the working app. The settings file seems to be exactly the same as that for the working app, except that I have updated the database and URL information throughout.

Do I still need to run python myproject/manage.py startapp [foo] from the terminal? I'm afraid that if I try that, I might screw something up even worse.

asked Mar 18 '12 at 11:01

mattshepherd's gravatar image

mattshepherd
2719

edited Mar 18 '12 at 11:02


Hi,

Make sure that your apache httpd.conf file points to the correct WSGI file, and that your WSGI file loads the correct DJANGO_SETTINGS_MODULE.

If this is not the problem, please open a ticket so we can take a look at your app.

answered Mar 18 '12 at 11:32

todork's gravatar image

todork
10964

That did it -- the WSGI wasn't pointing in the right direction. Thanks!

(Mar 18 '12 at 11:50) mattshepherd mattshepherd's gravatar image

You are most welcome!

(Mar 18 '12 at 11:53) todork todork's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×652
×4
×4
×2
×1

Asked: Mar 18 '12 at 11:01

Seen: 371 times

Last updated: Mar 18 '12 at 11:53

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited