Wednesday, June 30, 2010

Re: Django on multiple servers? (Deployment Problem)

another problem: im running this app on top of another page, so say www.example.com is the site, it wont allow me to access just any other page if the app is at the root of the site (www.example.com/myapp would work, but www.example.com/siteinfo wouldnt (unless i suppose i wrote a url template for every other page on the site)). however, if i host the app say, at www.example.com/app/myapp, it works fine, except for when submitting, say vote data. where it is at example.com/app/myapp/poll/1 and you submit a vote, it tries to direct me to example.com/app/myapp/poll/1/app/myapp/poll/1/vote, which obviously doesnt exist.
anyway, sorry again, i am kinda flooding this thing.

On Wed, Jun 30, 2010 at 11:02 PM, Paul Gully <nano3.14@gmail.com> wrote:
Ok, again. i feel like a question whore, but i think this should be the last thing. I fixed the database problem for the main app, but the admin site isnt working at all, im getting an internal server error (500) when i try to access it. halp?


On Wed, Jun 30, 2010 at 10:24 PM, Paul Gully <nano3.14@gmail.com> wrote:
Oh wow. ok, so i solved that problem (it was just the sys.path thing in the wsgi file. easy fix) ,but now django is unable to open the database files to render the URLs. im using SQLite, so again, i assume the problem is that this project isn't 'native' to the computer, however that doesn't help me find a fix.


On Wed, Jun 30, 2010 at 8:40 PM, nano <nano3.14@gmail.com> wrote:
Ok, so i've written my Django app on computer A with the dev server,
and have pushed it to server B, running apache (implemented with
mod_wsgi). The server also has Django installed, but cannot find the
settings for some reason. what i've gathered is that because i've
never run the 'makeproject' command that the Django instance on the
server simply doesn't know the project exists. the project on the
server has a slightly different path than it did on the original
computer, however i have changed settings.py to reflect that.
Now, my assumption is that the fix will be to go into the django files
and edit whatever file notes what projects exist, however i dont even
know where to start looking. any help?



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

No comments:

Post a Comment