It says the last slash is optional.
On 11/1/07, cjl <[EMAIL PROTECTED]> wrote:
>
>
> Thanks all.
>
> What is the second '?' for...I don't have it in my regular expression,
> and it seems to be working fine.
> -cjl
>
>
> >
>
--~--~-~--~~~---~--~~
You received this
I'm just replying to the first post.
I would write it as follows:
r'^accounts/(?P[\w\-]+)/?$'
On 11/1/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
>
> On 31-Oct-07, at 9:08 PM, cjl wrote:
>
> > Will these two regular expressions match the same strings? The both
> > seem to work for me,
Sorry if I wasn't clear about what I was talking about. :-)
I'm using Darwin ports. They work similar to BSD ports (completely different
but the idea is probably from there). With that you can install alot of *nix
applications. The homepage for Darwin ports is http://darwinports.com/.
Darwin ports
That's too much of a hack when you can just install and update your python
version through ports and install everything you need from there, without
touching the MacOSX system itself. I guess you can use /usr/local without
destroying the OSX, but still... I think the ports way is better. :-)
Just
I'm sorry. I'm using version 1 of psycopg. If I fire up a python shell I can
import it as "import psycopg". Hope that helps.
On 10/25/07, Francis Lavoie <[EMAIL PROTECTED]> wrote:
>
>
> have you tried to import the module into python directly?
>
>
>
> Le 07-10-25 à 18:58, Frank a écrit :
>
> >
>
I recommend to use Darwin ports or fink to do that. I used Darwin ports on
my mac and it works perfectly.
On 10/25/07, Frank <[EMAIL PROTECTED]> wrote:
>
>
> All-
>
> Having a rough go getting database bindings in OS X.
>
> I've installed psycopg2 using the package here:
>
>
You should try installing Django manually. I did it on my Macbook and it has
always worked without any problems. Just get the development version through
subversion.
On 10/22/07, johannes <[EMAIL PROTECTED]> wrote:
>
>
> Well, which django revealed:
>
> no django in /opt/local/bin /opt/local/sbin
Are you in the root of your site? It seems like you're trying to run
manage.py from a location where manage.py doesn't exist.
On 10/22/07, johannes <[EMAIL PROTECTED]> wrote:
>
>
> Ok. Adding
> export PYTHONPATH=$PYTHONPATH:/opt/local/lib/python2.5/sitepackages/
> django/core
> to my .profile
It seems right. I didn't install Django through ports on my mac. Try
changing your pythonpath to the following:export
PYTHONPATH=$PYTHONPATH:/location/to/django
On 10/22/07, johannes <[EMAIL PROTECTED]> wrote:
>
>
> Hello Kristinn,
>
> On 22 Okt., 15:08, "Kristinn
Is the path for the python command you just installed through ports before
the path to the build-in python version?
On 10/22/07, johannes <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I'm a django-newbie and have problems in setting it up. I'm running a
> PPC Mac, so I installed django via
You need to use RequestContext when you finish your view functions.For
example:
from django.template import RequestContext
from django.shortcuts import render_to_response
def myview(request):
return render_to_response('base/index.html', {}, context_instance =
RequestContext(request))
You should take a look at the tutorials in the documentation.
On 10/17/07, Gigs_ <[EMAIL PROTECTED]> wrote:
>
>
> hI!
>
> I'm going to start my first website (with django).
>
> I need some guidelines what to do first, where to start etc.?
>
> Website will be for some tennis game tournament, so it
> I´m not too familiar with server-stuff, but I thought that kill only
> works with fastcgi.
> we´re using modpython (sorry, forgot to mention that before).
>
> I´m only to "restart" the server gracefully. I´ve tried that but it
> doesn´t work.
>
>
> On 8 Okt., 1
Have you tried to kill it with -9?
On 10/8/07, patrickk <[EMAIL PROTECTED]> wrote:
>
>
> I´ve started the devserver with one of our vhosts a couple of days
> ago. the devserver crashed and now, when I want to start the devserver
> for another user (= another vhost on our machine), it says that
14 matches
Mail list logo