Hi,
If you use something like
r'^(?P.+)/$'
then a variable called page will get passed to your view. It will
contain the string that has been matched against the specified pattern
(in this case any character 1 or more times (.+))
I think django uses standard python regular expressions in its ur
Hi,
A quick search on google turned up the following:
http://trac-hacks.org/ticket/6321
It looks like it might be a similar issue. Was due to missing
dependencies - python-dev (among others)
Maybe if you use pip to install, it might take care of these
dependencies for you?
John
On Aug 4, 7:4
Hi,
I'd second that. PIP and virtual env have worked well for me too. You
could also combine it with fabric in order to automate the building of
different environments, so once you get a stable working environment
you can use pip's 'freeze' command to create a requirements file with
the exact vers
Hi Uwe,
You might be able to leverage the 'url' template tag which comes with
django?
e.g. For the 'add observation' example above, if you pass in the
country code as part of the context you return in your view(s), or
leverage middleware to automatically add it to every response based on
the requ
Hi Benedict,
>From what I have observed, if you are using django.contrib.auth for
your login/logout feature then you should be able to login once from
whichever app and then all subsequent requests from that browser
(unless you clear the cache/delete cookies) will be considered to have
been made f
Hi,
What does your admin.py look like?
You might need to add a media class to your admin classes e.g.
class Media:
js = ('/js/tiny_mce/tiny_mce.js', '/js/textareas.js')
I never tried to get tinymce working with the admin mind, I just
spotted it in the below tutorial:
ht
6 matches
Mail list logo