problem of resolving special characters in url

2009-01-04 Thread Chagel

We have a website made by Django. And we have no problems when access
similar url on local working environment:
http://site/tags/c%23/

"c%23" is urlencode of "c#", that works fine locally.
While we deployed on Bluehost(apache+fastcgi), it has been resolved to
a new address like this:
http://site/t/tags/c/

That's weird for me and i think maybe it's not a Django's problem, but
Apache url's rewrite.
I am not familiar with this part, so any suggestion will be
appreciated. Thank you.
Here is the .htaccess file under site foot:
--
AddHandler fcgid-script .fcgi
#AddHandler fastcgi-script .fcgi
#AddHandler application/cgi .fcgi
#AddHandler cgi-script .fcgi

RewriteEngine On
RewriteBase /
#static file setting
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(static/.*)$ - [L]
RewriteCond %{REQUEST_URI} !(dispatch.fcgi)
RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]
--

and the dispatch.fcgi file:
--
#!/home/***/python/bin/python
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/***/python")
sys.path.insert(0, "/home/***/working/Django-1.0")
os.chdir("/home/***/working/Django-1.0/project")
os.environ['DJANGO_SETTINGS_MODULE'] = "project.settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(["method=threaded", "daemonize=false"])
--

It that's necessary, i will attach my Django urlpatterns later.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Best IDE for Django and python?

2008-11-26 Thread Chagel

anyone know when NB has Django project support?

On Nov 25, 8:26 pm, bedros <[EMAIL PROTECTED]> wrote:
> I personally like Komodo Edit
>
> after trying komodo, I switched  from pydev and eclipse to komodo;
>
> On Nov 25, 10:56 am, "Antoni Aloy" <[EMAIL PROTECTED]> wrote:
>
>
>
> > 2008/11/25 Kurczak <[EMAIL PROTECTED]>:
>
> > > I wonder why no one mentioned Komodo IDE or Komodo Edit.
> > > They're my personal favorites for bigger projects. Both are well
> > > suited for dynamic languages and really lightweight compared to
> > > Bloatclipse with pydev (or aptana).
>
> > I have tested Komodo Edit and personally I like best vim + extensions,
> > Eric4, Eclipse + pyDev or actually Netbeans.
> > I you haven't tested yet give Netbeans a look. In my opinion this is
> > the way to go on Python development.
>
> > Eclipse+pyDev and Eric4 actually have more Python options, specially
> > on refactoring, but Netbeans interface is much clearer and the
> > combination of auto completion and documentation is really good. I
> > also like very much the svn diff tool with syntax highlight.
>
> > Eclipse and Eric4 have a more svn interface. From Netbeans I don't
> > like that the auto completion shows all the packages that are in the
> > project even if they aren't related to it, and that it shows the pyc.
> > But I have been testing it during the last days and even with this
> > lacks it's one of the best IDEs.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---