Click here to Skip to main content
16,020,111 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: problem assistance Pin
yiangos29-Apr-10 9:46
professionalyiangos29-Apr-10 9:46 
AnswerRe: problem assistance Pin
Stephen Hewitt10-Jun-10 21:52
Stephen Hewitt10-Jun-10 21:52 
GeneralRe: problem assistance Pin
DaveDn24-Nov-10 5:58
DaveDn24-Nov-10 5:58 
GeneralRe: problem assistance Pin
DaveDn27-Nov-10 23:27
DaveDn27-Nov-10 23:27 
GeneralRe: problem assistance [modified] Pin
Keith.Badeau22-Feb-11 12:49
Keith.Badeau22-Feb-11 12:49 
QuestionPERL reading .sql file? Pin
josephong21-Mar-10 23:07
josephong21-Mar-10 23:07 
AnswerRe: PERL reading .sql file? Pin
jschell6-Apr-10 10:56
jschell6-Apr-10 10:56 
QuestionDjango trouble Pin
rastaVnuce20-Mar-10 23:57
rastaVnuce20-Mar-10 23:57 
So, a while ago I wrote here about starting to experiment with Django, and now I have come to a stop...
I usually map my Django projects on the root, but this time I tried something different and failed very badly...

I tried to map it to http://foo.com/django and encountered two problems, I hope you guys can help me with...

Problem 1:
If I go to address http://foo.com/django (without trailing slash) I get an Internal Server Error.
Log shows this info:
File "/var/lib/python-support/python2.5/django/middleware/common.py", line 41, in process_request
 if settings.APPEND_SLASH and (old_url1-1 != '/') and ('.' not in old_url1.split('/')-1):
IndexError: string index out of range

If I include the trailing slash it works (at least it seems to).
APPEND_SLASH is (obviously) set to True.

Problem 2:
Let's go with urls.py that looks like this:
from django.conf.urls.defaults import *
from djangobook.views import hello

urlpatterns = patterns('',
    (r'^hello/$', hello),
)


Instead of going to http://foo.com/django/hello I get redirected to http://foo.com/hello. I presume I'm missing a setting or something to make it relative to the project's starting URL?
We are using Linux daily to UP our productivity - so UP yours!

AnswerRe: Django trouble Pin
Chris Austin23-Mar-10 4:28
Chris Austin23-Mar-10 4:28 
GeneralRe: Django trouble Pin
rastaVnuce23-Mar-10 4:41
rastaVnuce23-Mar-10 4:41 
GeneralRe: Django trouble Pin
Chris Austin23-Mar-10 4:47
Chris Austin23-Mar-10 4:47 
GeneralRe: Django trouble Pin
rastaVnuce23-Mar-10 5:00
rastaVnuce23-Mar-10 5:00 
Questioninfinite loop while using php's dir object..? Pin
cjoki19-Mar-10 11:31
cjoki19-Mar-10 11:31 
AnswerRe: infinite loop while using php's dir object..? Pin
chevu28-Mar-10 23:28
chevu28-Mar-10 23:28 
GeneralRe: infinite loop while using php's dir object..? Pin
cjoki29-Mar-10 4:53
cjoki29-Mar-10 4:53 
GeneralRe: infinite loop while using php's dir object..? Pin
chevu29-Mar-10 19:04
chevu29-Mar-10 19:04 
Questionquery help with table that has no primary keys Pin
scorpio2219-Mar-10 10:26
scorpio2219-Mar-10 10:26 
AnswerRe: query help with table that has no primary keys Pin
PHP_Guy22-Mar-10 11:01
PHP_Guy22-Mar-10 11:01 
QuestionCreating project setup Pin
sarang_k17-Mar-10 18:36
sarang_k17-Mar-10 18:36 
AnswerRe: Creating project setup Pin
PHP_Guy19-Mar-10 7:24
PHP_Guy19-Mar-10 7:24 
QuestionExporting HTML file to PDF format Pin
sarang_k11-Mar-10 22:47
sarang_k11-Mar-10 22:47 
AnswerRe: Exporting HTML file to PDF format Pin
Niall Barr11-Mar-10 23:07
professionalNiall Barr11-Mar-10 23:07 
QuestionUse PEAR's datagrid export to an excel sheet, but getting all unrecognized characters [modified] Pin
alexyxj11-Mar-10 8:44
alexyxj11-Mar-10 8:44 
QuestionStored Procedure with Php and MySQL Pin
scorpio2211-Mar-10 5:19
scorpio2211-Mar-10 5:19 
AnswerRe: Stored Procedure with Php and MySQL Pin
PHP_Guy19-Mar-10 7:46
PHP_Guy19-Mar-10 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.