Neat. I've been doing Django since the 0.9.6 days and have never written a
middleware. I guess there's a first time for everything.
Thanks!
========
Steven L Smith, Web Developer
Department of Information Technology Services
Nazareth College of Rochester
58
ead of having to patch the actual django database
backend code itself.
========
Steven L Smith, Web Developer
Department of Information Technology Services
Nazareth College of Rochester
585-389-2085 | ssmit...@naz.edu | KC2YTC
http://www.naz.edu/pub/~ssmith46
==
such should
always use GET, unless there's a truly compelling reason not to.
POST should only be used for things that change stuff on the server... a
contact form, a form that creates something in a database, etc...
Cheers!
-Steve
Steven L Smith
There's a great wrapper you can use to generate these in PIL using a
postscript library.
http://pypi.python.org/pypi/elaphe/
I did something similar with pyqrnative to generate QR Codes for a
conference, basically just create a URL that wraps the output of the
library in an HTTPResponse.
On Apr
a possible solution might be to have a "sub question" model
that lets the admin users specify a label and field type, but then,
where do I save the *answers* to the sub-questions?
What's the most Djangonic / Pythonic way to do this type of thing? It
seems like the kind of probl
For one of our apps, I'm using django-pyodbc to connect to an MS SQL
2005 database (not my choice...) This database contains, among other
things, rows for the Person model. I've written a function to connect
to "Lenel", an access-card system used by our campus security
department, which pulls the p
I've written a custom backend for Django auth to hook into our Active
Directory. It works great, but some users can't seem to figure out
that "username" does not equal "email address". Since our AD is kind
of borked, multiple users *might* have the same email addresses, so
simply changing it to als
t telling
the DBA
that we have to be slightly inconsistent in our naming schemes?
Thanks!
Steven L Smith, Web Developer
Department of Information Technology Services
Nazareth College of Rochester
585-389-2085 | ssmit...@naz.edu
http://www.naz.edu/pub/~ssmith46
==
ransition was complete, you could simply change "import newforms as forms" to
"import forms" and it would continue working.
So, yes, anytime you see "import newforms as forms" it is safe to replace it
with "import forms".
27;site2.example.com',
'site3.example.com']
return choice(media_urls)
register.simple_tag(media_url)
in some template
--
{% load random_media %}
{% media_url %}
========
Steven L Smith, Web Developer
Department of Information Tech
ter.simple_tag(media_url)
in some template
--
{% load random_media %}
{% media_url %}
========
Steven L Smith, Web Developer
Department of Information Technology Services
Nazareth College of Rochester
585-389-2085 | ssmit...@naz.e
dia(request):
return {'MEDIA_URL': choice(MEDIA_URLS)}
Then, in settings.py, include your custom context processor instead of the one
built-in to to Django.
-Steve
Steven L Smith, Web Developer
Department of Information Technology Services
Nazareth C
hese characters out? Some kind of way to replace weird characters with a
bright pink blinking exclamation point? Something else?
Thanks!
Steven L Smith
Web Developer
Nazareth College of Rochester
http://www.naz.edu/
--
You received this message because you are subscribed to the Google Groups
13 matches
Mail list logo