How do you write a urlpattern to match something like this:
/accounts/login/?next=/add_object/
?
I have this:
r'^accounts/login/\?next=(?P.*)$'
and it seems to match because my view function is called, but no next
parameter is passed in. Oh wait, it's actually matching the previous
urlpatter
On 11/18/05, Luke Plant <[EMAIL PROTECTED]> wrote:
> This evening I wrote an app and middleware to help me with
> development of my Django project. It validates all the HTML generated
> by your Django project, and logs any failures, including the original
> request object, the response object and
Hi all,
This evening I wrote an app and middleware to help me with
development of my Django project. It validates all the HTML generated
by your Django project, and logs any failures, including the original
request object, the response object and the errors. It's more useful
than a crawler becau
Inline.
"Richie Hindle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> [Luke]
>> I know some people want to use links (i.e. HTTP GET requests) which
>> have side effects, which is Bad.
>
> [Jacob]
>> if an app modifies
>> data based on a GET, then the app should be considered
On 11/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
The Web page isn't recognizing your CSS file. Django isn't intendedserve static media files -- such as CSS -- so you'll need to useanother server, such as Apache, to serve the CSS file. Alternatively,check out the
django.views.static.serve, w
On 11/18/05, PythonistL <[EMAIL PROTECTED]> wrote:
> it does NOT work( the text is not white and background is not black.
>
> But why? Where did I make a mistake?
The Web page isn't recognizing your CSS file. Django isn't intended
serve static media files -- such as CSS -- so you'll need to use
a
On Fri, Nov 18, 2005 at 01:32:34PM -0800, PythonistL wrote:
> But why? Where did I make a mistake?
because it's trying to serve the page like it's a view. For instance, if
your view is /foo/bar, go to /foo/style.css and you'll get a 404. But that's
where it's trying to load it.
You'll want to
I have a following problem with CSS file.
My template Test.html looks like this
##
TEST ONLY
###
where Test.css looks like this
###
body
{
background: #00;
color: #FF;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial
Unfortunately the whole thing seemed to cause the "User tampered with
cookie" error. I'm not sure why, or how, but storing the results
seemed to create the erorr.
O well.
On 11/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 11/16/05, Brant Harris <[EMAIL PROTECTED]> wrote:
> > Is
I'm particularly interested in this, but I havent been able to sit down
and mess around with it. It would be great if someone had already
done some stuff like this and would be willing to show us :)
ClintOn 11/18/05, David Ascher <[EMAIL PROTECTED]> wrote:
I've read the docs on the Django authent
I've read the docs on the Django authentication model, and it seems pretty good. What I'm looking for now is some pointers re: how to leverage the code that's used for the admin view in adding login/logout/registration/email password pages to my existing app (or similar contrib code).
How are peop
>
> That's awesome! Thanks for sharing. That does a good job, for me at
> least, showing off a lot of the little nicities django has to offer,
> like the generic view to do the page list, and the template filters.
> You should write this up and make a movie out of it! :-)
>
> Bryan
>
I agree. To
On 11/16/05, Brant Harris <[EMAIL PROTECTED]> wrote:
> Is it wise to store a large amount of data in an anonymous session?
> For instance, and most applicable to my design, if I store results of
> a search in a session like so:
> request.session['search_results'] = objects.get_list(name__icontains
On 11/18/05, Simon Willison <[EMAIL PROTECTED]> wrote:
Alternatively, we could just have CommonMiddleware throw a deliberateserver error if a POST is made to a IRL that doesn't have a trailingslash. That should make things abundantly clear :) POSTing to a URLthat CommonMiddleware wants to redirect
Right, I changed the slugfield into a charfield.
I cannot add a user with an username that contains an umlaut with the
default admin-interface, though. How could I change that?
best regards
On 18 Nov 2005, at 15:26, Robert Wittams wrote:
Hm, maybe when DEBUG is on, CommonMiddleware should put up an
interstitial page to tell the developer what is happening? It does
seem
to bite a lot of people.
Alternatively, we could just have CommonMiddleware throw a deliberate
server err
[EMAIL PROTECTED] wrote:
> Hi
>
> I've just defined a manytomany relationship in the following way
>
> class ItemType(meta.Model):
> name = meta.CharField(maxlength=100)
> descritpion = meta.CharField(maxlength=250)
>
> class PropertyType(meta.Model):
> name = meta.CharField(maxleng
David Ascher wrote:
> Stumbling blocks:
> * figuring out that I had to do "import
> django.contrib.markup.templatetags.markup" to get the markup filters
> registered was harder than it should have been.
Did {% load markup %} not work? Maybe this tag needs to be pointed out
more prominently - it is
Personally, I'd just run it on a using your scheduler of choice (cron,at,launchd,scheduled tasks).
ClintOn 11/18/05, Fat <[EMAIL PROTECTED]> wrote:
I start a project in django. It need to run some code on backgroudautomatic to handle some data.any good suggestion ,or just run it manual
On Nov 18, 2005, at 3:12 AM, David Ascher wrote:
After watching the TurboGears 20 minute wiki screencast today, I
figured I'd
try to build the equivalent code in Django to see what it's like.
Very cool -- I'm glad you had fun!
Stumbling blocks:
* figuring out that I had to do "import
djang
In order to quick create django model, I make some extension to
NewEdit(http://wiki.woodpecker.org.cn/moin/NewEdit), so you can create
django model in GUI method. I'v made a flash tutorial, you can see it
online or download it.
see online:
http://wiki.woodpecker.org.cn/moin/NewEditTutorial?actio
On 11/18/05, David Ascher <[EMAIL PROTECTED]> wrote:
> After watching the TurboGears 20 minute wiki screencast today, I figured I'd
> try to build the equivalent code in Django to see what it's like.
>
> It took me more than 20 minutes, but since this is my first non-tutorial
> Django app, I'm ok
Found an easier way. I can pass a list of class instances, and perform
a look on the class attributes.
On 18 Nov 2005, at 11:59, hugo wrote:
(I think this static view should be listed more prominently in the
documentation and tutorial, even though it's not meant to be used for
production use - the how-to-serve-static-files question is quite
common
with newbies, and all of them want to write
Perhaps I should have stated I'm using the new-admin branch
Hi
I've just defined a manytomany relationship in the following way
class ItemType(meta.Model):
name = meta.CharField(maxlength=100)
descritpion = meta.CharField(maxlength=250)
class PropertyType(meta.Model):
name = meta.CharField(maxlength=100)
itemtypes = meta.ManyToManyField(
> * I was stumped by the fact that I had to setup another web server to serve
>static files. It'd be nice if it was possible to serve static files with the
>development server. I'd consider sending in a patch if someone could throw
>suggestions my way on what approach would work best (or maybe it
On 18 Nov 2005, at 09:12, David Ascher wrote:
Specifically, I'd love feedback on the views ( http://
da.textdriven.com:8027/sydney/file/trunk/wiki/apps/pages/views.py)
and the template ( http://da.textdriven.com:8027/sydney/file/trunk/
wiki/templates/pages/page.html
You should do this in
On 11/17/05, James Bennett <[EMAIL PROTECTED]> wrote:
> I'm working on writing instructions for deploying Django at TextDrive,
> and so I'm using the Django/lighttpd_FCGI instructions here:
> https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgiLighttpd
Never mind, I was misinter
Jacob Kaplan-Moss wrote:
> On Nov 16, 2005, at 7:04 AM, Pash wrote:
> > i saw a Ticket about an Oracle Backend. When will it be implemented in
> > Django? :)
>
> IIRC there are a few pretty major differences between Oracle and
> other RDBMSes that are preventing a Oracle backend from being
> "eas
On Friday 18 Nov 2005 2:42 pm, David Ascher wrote:
> and the template (
> http://da.textdriven.com:8027/sydney/file/trunk/wiki/templates/pages/
>page.html).
where is the base template?
--
regards
kg
http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
After watching the TurboGears 20 minute wiki screencast today, I figured I'd try to build the equivalent code in Django to see what it's like.It took me more than 20 minutes, but since this is my first non-tutorial Django app, I'm ok with that.
If anyone is interested, I've put it up at: http://da.
32 matches
Mail list logo